.bungalow-gallery { min-width: 0; align-self: start; background: #e5dbcf; color: #382e28; padding-bottom: 12px; }
.bungalow-slides { display: block; width: 100%; overflow: hidden; touch-action: pan-y pinch-zoom; }
.bungalow-slide { width: 100%; min-width: 0; margin: 0; }
.bungalow-slide[hidden] { display: none; }
.bungalow-slide img { display: block; width: 100%; height: auto; object-fit: contain; filter: none; }
.bungalow-slide figcaption { padding: 12px 16px; text-align: center; font: 500 1rem/1.5 "DM Sans", sans-serif; }
.bungalow-gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; font-size: .875rem; }
.bungalow-gallery-controls button { min-height: 44px; padding: 8px 14px; border: 1px solid #807064; background: #faf7f2; color: #382e28; font: 500 .875rem/1.4 "DM Sans", sans-serif; cursor: pointer; border-radius: 3px; }
.bungalow-gallery-controls button:disabled { opacity: .45; cursor: default; }
.bungalow-gallery-dots { display: flex; justify-content: center; }
.bungalow-gallery-dots button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.bungalow-gallery-dots span { width: 8px; height: 8px; border-radius: 50%; background: #9a897a; }
.bungalow-gallery-dots [aria-current="true"] span { width: 22px; border-radius: 6px; background: #382e28; }
.bungalow-gallery :focus-visible { outline: 3px solid #805836; outline-offset: -3px; }
.bungalow-gallery-hint { margin: 0; text-align: center; font-size: .875rem; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .bungalow-slides { transition: none; } }

/* Portrait 3:4 frames match the vertical bungalow photographs. */
.double-gallery-frame { position: relative; }
#room-panel-sencillo .bungalow-slide img, #room-panel-especial .bungalow-slide img, #room-panel-king .bungalow-slide img, .double-gallery .bungalow-slide img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: #e5dbcf; }
.double-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 1px solid #ddd2c5; border-radius: 50%; background: rgba(255,253,249,.92); color: #382e28; font: 32px/1 sans-serif; cursor: pointer; }
.double-gallery-prev { left: 10px; }
.double-gallery-next { right: 10px; }
.double-gallery-arrow:disabled { opacity: .35; cursor: default; }
.double-gallery .bungalow-gallery-hint { padding-top: 12px; }

/* Reserve equal caption space so photo labels cannot move the bungalow controls. */
#room-panel-sencillo .bungalow-slide figcaption, #room-panel-especial .bungalow-slide figcaption { height: 6rem; padding: 8px 16px; display: flex; align-items: center; justify-content: center; }
