.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin-block: 1.25rem 2rem; }
.gallery figure { min-width: 0; margin: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: .55rem; overflow: hidden; }
.gallery figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figure:nth-child(2) img { object-position: 50% 35%; }
.gallery figcaption { padding: .8rem; }
.gallery figcaption > strong { display: block; }
.gallery figcaption > a { display: inline-flex; min-height: 2.75rem; align-items: center; }
.gallery > figure a:focus-visible { outline-offset: -4px; }
.lightbox { color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: .6rem; max-inline-size: min(58rem, 94vw); padding: .75rem; }
.lightbox::backdrop { background: #071224e8; }
.lightbox img { display: block; max-inline-size: 100%; max-block-size: 73vh; width: auto; height: auto; margin-inline: auto; }
.lightbox h2 { margin: .65rem 0 .25rem; }
.lightbox form { display: flex; justify-content: flex-end; }
.lightbox button { min-height: 2.75rem; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: .3rem; padding-inline: .65rem; font: inherit; cursor: pointer; }
.gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); grid-auto-rows: 1rem; align-items: stretch; }
.gallery figure img { aspect-ratio: auto; height: 100%; }
.gallery .shot { grid-row: span 16; }
.gallery .shot-tall { grid-row: span 22; }
.gallery .shot-wide { grid-row: span 13; }
.gallery .shot a { display: block; flex: 1; min-height: 0; }
.gallery figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .75rem; padding: .6rem .8rem .7rem; font-size: .92rem; }
.gallery figcaption > a { min-height: 2rem; font-size: .82rem; }
.gallery-intro { max-width: 46ch; }
.gallery-jumps { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin-block: 1rem .5rem; }
.gallery-jumps a { display: inline-flex; align-items: center; min-height: 2.5rem; padding-inline: .8rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--card); font-weight: 650; text-decoration: none; }
.gallery-jumps a:hover { border-color: currentColor; text-decoration: underline; }
.gallery-group { margin-block: 2.25rem .25rem; }
.gallery-group h2 { margin-bottom: .2rem; }
.gallery-group p { margin: 0; color: var(--muted); }
.gallery-cta { margin-block: 2rem 3rem; }
.gallery-cta .button { display: inline-block; background: #12356d; color: #f4f7ff; border-radius: .35rem; padding: .72rem 1.15rem; font-weight: 800; text-decoration: none; }
.gallery-cta .button { background: #0a6190; }
.gallery-jumps a:hover { border-color: #018fd7; }

/* The gallery opens on a room, not a heading */
.shots-hero { position: relative; isolation: isolate; color: #fff; background: #06142c; padding-block: clamp(3rem, 9vw, 6rem); margin-block-end: clamp(1.5rem, 4vw, 2.5rem); }
.shots-hero-photo { position: absolute; inset: 0; z-index: -2; }
.shots-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.shots-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, #06142cf2 0%, #06142ce0 44%, #06142c99 100%), linear-gradient(to top, #06142cd4 0%, transparent 48%); }
.shots-hero h1 { margin: 0 0 .7rem; color: #fff; }
.shots-hero .eyebrow { margin: 0 0 .5rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: #6ecbfa; }
.shots-hero p:last-child { margin: 0; max-width: 46ch; color: #dde8f8; }
.shots-hero + main > .gallery-intro { margin-block-start: 0; }
@media (forced-colors: active) { .shots-hero-photo, .shots-hero::after { display: none; } }
@media print { .shots-hero-photo, .shots-hero::after { display: none !important; } .shots-hero { color: #171717; padding-block: 0; } .shots-hero h1 { color: #171717; } }

/* Reading a photo full size */
.lightbox-caption { margin: .2rem 0 .6rem; color: var(--muted, #5a6676); }
.lightbox-caption[hidden] { display: none; }
.lightbox-hint { margin: .6rem 0 0; font-size: .85rem; color: var(--muted, #5a6676); }
