/* V5: real room galleries and new hotel photographs. */
.hero-media,.g-frame {overflow:hidden}
.room-photo-grid>li {min-width:0;list-style:none}
.room-photo-grid .g-item {width:100%;height:auto;aspect-ratio:3/2;min-height:0;display:block;grid-column:auto}
.room-photo-grid .room-photo-slot {aspect-ratio:3/2;height:100%}
.room-photo-grid .g-meta {opacity:1;transform:none}
.room-photo-grid .g-cat {display:none}
.room-photo-grid .g-name {font-size:.9rem;line-height:1.4}
/* Existing screenshots retain their pixels; display crops hide captured controls. */
.hero-media img.screenshot-photo,.g-item .g-frame img.screenshot-photo,.room-image img.screenshot-photo {transform:scale(1.25);transform-origin:50% 50%}
.g-item:hover .g-frame img.screenshot-photo,.room-image:hover img.screenshot-photo {transform:scale(1.28)}
.lb-image-viewport {overflow:hidden;max-width:100%;display:flex;justify-content:center;align-items:center}
.lb-image-viewport img {display:block}
.lb-image-viewport.is-screenshot {width:min(900px,82vw,97.5vh);aspect-ratio:3/2;flex-shrink:0}
.lb-image-viewport.is-screenshot img {width:100%;height:100%;max-height:none;object-fit:cover}
.lightbox.is-open .lb-image-viewport.is-screenshot img {transform:scale(1.25);transform-origin:center}
.v5-hotel-gallery .gallery-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem}
.v5-hotel-gallery .g-item:nth-child(n) {grid-column:auto;aspect-ratio:3/2;min-height:0}
.v5-hotel-gallery .g-meta {opacity:1;transform:none}
@media(max-width:767px){
 .room-photo-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .room-photo-grid .g-name {font-size:.7rem}
 .room-photo-grid .g-meta {padding:.6rem}
 .v5-hotel-gallery .gallery-grid {grid-template-columns:1fr}
 .lb-image-viewport.is-screenshot {width:min(82vw,90vh)}
}
@media(prefers-reduced-motion:reduce){.g-frame img,.room-image img {transition:none}}

.room-photo-grid .g-item::after,.v5-hotel-gallery .g-item::after {opacity:1}
.v5-hotel-gallery .gallery-grid {grid-auto-rows:auto}
.v5-hotel-gallery .g-item {height:auto}
