@charset "utf-8";
/* CSS Document */

.vdo-photo-orchid { padding-top:60px; }
.vdo-photo-container {
    display: flex;
    width: 100%;
	padding: 0;
	height: calc(100vh - 60px); /* Desktop: สูงเต็มจอลบ 200px */
    overflow: hidden;
	flex-direction: row;
	background-color: var(--green05-color);
}
.panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.5s ease, height 0.5s ease;
    cursor:w-resize;
}
.panel img,
.panel video {
	width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: var(--white-color);
    font-size: 26px;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(40,68,60,0.7);
    opacity: 0;
    transition: opacity 0.5s ease;
}
  .panel.active .caption { opacity: 1; }

  /* Desktop behavior */
  .panel.active { flex: 3; }
  .panel:not(.active) { flex: 1; }

  /* Mobile: แบ่งสูงเท่ากัน (100vh / จำนวน panels) */
  @media (max-width: 768px) {
	.vdo-photo-container {
		flex-direction: column;
		width: 100%;
		height: 160vh; /* รวมเท่าจอพอดี */
    }
    .panel {
		flex: none;
		height: calc(100vh / 5); /* เริ่มต้นหารเฉลี่ย (กรณีมี 4 panels) */
    }
    .panel.active { height: 100vh; } /* panel ที่เลือก */ 
    .panel:not(.active) { height: calc((100vh - 50vh) / 5); } /* แบ่งส่วนที่เหลือให้ panels อื่น */
  }
