/* Reference image: quiet introduction strip and asymmetric two-photo gallery. */
.reference-gallery{background:#f7f4ee;color:#292f28;padding:0 clamp(24px,4vw,64px) 54px}
.intro-ribbon{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:clamp(24px,4vw,56px);padding:42px 12px;border-bottom:1px solid #85877e}
.intro-ribbon h2{font-size:clamp(25px,2.65vw,38px);line-height:1.4;margin:0;letter-spacing:-.04em}
.intro-ribbon p{border-left:1px solid #85877e;padding-left:clamp(24px,4vw,48px);margin:0;font-size:clamp(15px,1.45vw,18px);line-height:1.8;color:#555a51}
.reference-gallery .text-link{display:inline-flex;align-items:center;gap:14px;min-height:44px;font-size:15px;white-space:nowrap;color:inherit;border-bottom:1px solid #85877e;text-decoration:none}
.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:48px 0 28px}
.gallery-heading h2{margin:0;font-size:clamp(26px,2.65vw,38px);line-height:1.4}
.gallery-pair{display:grid;grid-template-columns:1.58fr 1fr;gap:8px;align-items:start}
.gallery-pair figure{margin:0;min-width:0}.gallery-pair img{display:block;width:100%;height:clamp(300px,42vw,640px);object-fit:cover;object-position:center}
.gallery-pair figcaption{font-size:clamp(18px,2vw,25px);font-weight:700;line-height:1.5;padding:10px 2px 0}
/* Overlay navigation follows the photograph height, excluding captions. */
.gallery-stage{position:relative;--gallery-photo-height:clamp(300px,42vw,640px)}
.gallery-pair img{height:var(--gallery-photo-height)}
.gallery-side-controls{position:absolute;inset:0 0 auto;height:var(--gallery-photo-height);pointer-events:none;z-index:2}
.gallery-side-controls button{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:52px;height:64px;padding:0;border:1px solid #ffffff70;border-radius:3px;background:rgba(255,255,255,.64);color:#29382b;box-shadow:0 2px 12px #15221512;backdrop-filter:blur(4px);cursor:pointer;pointer-events:auto;transition:background .25s ease}
.gallery-side-controls button span{font:300 44px/1 Arial,sans-serif;transform:translateY(-2px)}
.gallery-side-controls #space-prev{left:14px}.gallery-side-controls #space-next{right:14px}
.gallery-side-controls button:hover{background:rgba(255,255,255,.9)}
.reference-gallery a:focus-visible,.gallery-side-controls button:focus-visible{outline:3px solid #41542a;outline-offset:3px}
@media(max-width:1000px){.intro-ribbon{grid-template-columns:1fr auto;padding:32px 0;gap:18px 24px}.intro-ribbon h2{grid-column:1/-1}.intro-ribbon p{border:0;padding:0}.gallery-heading{padding-top:36px}}
@media(max-width:660px){.reference-gallery{padding:0 20px 32px}.intro-ribbon h2{font-size:25px}.intro-ribbon p{font-size:15px}.reference-gallery .text-link{font-size:13px;gap:8px}.gallery-heading{align-items:flex-start;gap:16px;padding:30px 0 22px}.gallery-heading h2{font-size:25px;max-width:230px}.gallery-pair{grid-template-columns:1.3fr 1fr;gap:8px}.gallery-pair img{height:62vw;max-height:360px;min-height:220px}.gallery-pair figcaption{font-size:16px}.gallery-stage{--gallery-photo-height:clamp(220px,62vw,360px)}.gallery-side-controls button{width:44px;height:52px}.gallery-side-controls #space-prev{left:6px}.gallery-side-controls #space-next{right:6px}}

.gallery-pair img.portrait-photo{object-fit:contain;background:#eeeae1}

/* Give the room more space beside the portrait window photograph. */
.gallery-pair:has(.gallery-main img.portrait-photo){grid-template-columns:1fr 1.58fr}
@media(max-width:660px){.gallery-pair:has(.gallery-main img.portrait-photo){grid-template-columns:1fr 1.3fr}}

/* Video uses the same responsive frame as the facility photographs. */
.gallery-pair video{display:block;width:100%;height:var(--gallery-photo-height);object-fit:contain;background:#eeeae1}

/* A single room video spans the full gallery at its original 16:9 ratio. */
.gallery-single .gallery-pair{grid-template-columns:minmax(0,1fr)}
.gallery-single .gallery-pair video{height:auto;aspect-ratio:16/9;object-fit:contain}
.gallery-single .gallery-side-controls{height:auto;aspect-ratio:16/9}
