/* Photo gallery page (site/gallery/). Uses the tokens from /styles.css. */
.gwrap { max-width: 1600px; margin: 0 auto; padding-inline: clamp(1rem, 3vw, 2.5rem); }

.ghero { color: var(--cream); background: radial-gradient(1000px 500px at 85% -10%, rgba(59, 130, 246, .3), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(198, 159, 80, .2), transparent 60%), var(--navy); padding: clamp(2.6rem, 7vw, 4.6rem) clamp(1rem, 5vw, 4rem); }
.ghero__in { max-width: 1120px; margin: 0 auto; }
.ghero h1 { color: var(--cream); font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: .8rem; }
.gdl { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.gdl .btn small { font-weight: 500; opacity: .75; margin-left: .25rem; }
.btn--line { background: transparent; color: var(--cream); border-color: rgba(253, 249, 246, .55); }
.btn--line:hover { background: var(--cream); color: var(--navy); }
.ghero__lead { font-size: 1.12rem; max-width: 60ch; color: var(--on-dark-soft); margin: 0; }

/* face finder */
.faces { background: var(--beige); padding: 1.6rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.faces__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.faces__head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.faces__more { background: none; border: 0; font: inherit; font-size: .9rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--gold); cursor: pointer; padding: 0; }
.faces__list { display: flex; flex-wrap: wrap; gap: .55rem; max-height: 158px; overflow: hidden; padding: 10px 8px; margin: -10px -8px; scrollbar-width: none; }   /* padding = room for the hover zoom, gold ring, × badge and focus ring */
.faces__list::-webkit-scrollbar { display: none; }
.faces__list.all { max-height: none; }
.face { width: 62px; height: 62px; border-radius: 50%; padding: 0; border: 2px solid transparent; background: var(--beige-2); cursor: pointer; position: relative; transition: transform .15s var(--ease), border-color .15s; }
.face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.face:hover { transform: scale(1.07); }
.face:focus { outline: none; }
.face:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.face[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198, 159, 80, .35); }
.face[aria-pressed="true"]::after { content: "×"; position: absolute; right: -4px; top: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--cream); font-size: .95rem; line-height: 21px; font-weight: 700; }
.face b { position: absolute; right: -4px; bottom: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--navy); color: var(--cream); font-size: .7rem; line-height: 22px; font-weight: 700; }
.faces__note { font-size: .82rem; margin: .9rem 0 0; max-width: 90ch; opacity: .85; }
@media (max-width: 640px) { .faces__list { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; max-height: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .faces__list.all { flex-wrap: wrap; } .face { flex: 0 0 auto; } }

/* sticky toolbar */
.gbar { position: sticky; top: 63px; z-index: 40; background: rgba(253, 249, 246, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.gbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .7rem; padding-bottom: .5rem; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--beige); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--navy); padding: .45rem .95rem; border-radius: 999px; cursor: pointer; }
.seg button small { font-weight: 500; opacity: .7; margin-left: .2rem; }
.seg button[aria-selected="true"] { background: var(--navy); color: var(--cream); }
.star { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.star input { width: 18px; height: 18px; accent-color: var(--gold); }
.chips { display: flex; gap: .45rem; overflow-x: auto; padding: .1rem 0 .7rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: 0 0 auto; text-decoration: none; font-size: .84rem; font-weight: 600; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; white-space: nowrap; }
.chips a:hover, .chips a.on { border-color: var(--gold); background: #fff8ea; }
.chips a span { opacity: .6; font-weight: 500; margin-left: .25rem; }
.person { background: var(--navy); color: var(--cream); }
.person__in { display: flex; align-items: center; gap: .8rem; padding-block: .55rem; font-weight: 600; font-size: .95rem; }
.person img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); }
.person .btn { margin-left: auto; padding: .4rem .9rem; color: var(--cream); border-color: var(--cream); font-size: .85rem; }
.person .btn:hover { background: var(--cream); color: var(--navy); }

/* sections + justified grid */
.gsec { padding: 2.2rem 0 .6rem; scroll-margin-top: 170px; }
.gsec__head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: .9rem; }
.gsec__head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; }
.gsec__meta { font-size: .85rem; font-weight: 600; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.gday { font-family: var(--head); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); margin: 2.6rem 0 0; padding-top: 1.2rem; border-top: 2px solid var(--gold); }
.gday small { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--ink); opacity: .7; margin-left: .6rem; }
.jg { --row: 230px; display: flex; flex-wrap: wrap; gap: 6px; }
.jg::after { content: ""; flex-grow: 1e4; }
.jg a { position: relative; display: block; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--row)); background: var(--beige-2); border-radius: 6px; overflow: hidden; }
.jg a i { display: block; padding-bottom: calc(100% / var(--r)); }
.jg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease), opacity .3s; }
.jg a:hover img { transform: scale(1.03); }
.jg a:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
@media (max-width: 900px) { .jg { --row: 160px; gap: 4px; } }
@media (max-width: 520px) { .jg { --row: 92px; gap: 3px; } .jg a { border-radius: 3px; } .gbar__in { flex-wrap: nowrap; gap: .5rem; padding-top: .55rem; padding-bottom: .4rem; } .seg button { padding: .36rem .62rem; font-size: .85rem; } .seg button small { display: none; } .star { font-size: .82rem; gap: .3rem; white-space: nowrap; } .star input { width: 16px; height: 16px; } .chips { padding-bottom: .55rem; } .gsec { padding-top: 1.6rem; scroll-margin-top: 150px; } .gsec__head { gap: .1rem .6rem; } .gday { margin-top: 1.6rem; } }
.gempty { text-align: center; padding: 3rem 1rem; }
.gempty .link { background: none; border: 0; border-bottom: 1px solid var(--gold); font: inherit; cursor: pointer; padding: 0; }

/* lightbox */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(1, 10, 28, .97); color: var(--cream); }
.lb::backdrop { background: rgba(1, 10, 28, .9); }
.lb[open] { display: flex; flex-direction: column; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; font-size: .9rem; gap: 1rem; }
.lb__actions { display: flex; gap: .4rem; }
.lb__btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: var(--cream); font-size: 1.35rem; text-decoration: none; cursor: pointer; line-height: 1; }
.lb__btn:hover { background: rgba(255, 255, 255, .16); }
.lb__fig { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 clamp(.5rem, 5vw, 4.5rem) 1rem; touch-action: pan-y; }
.lb__fig img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; touch-action: none; cursor: zoom-in; transform-origin: 50% 50%; will-change: transform; position: relative; z-index: 1; }
.lb__fig img.zoomed { cursor: grab; border-radius: 0; }
.lb__fig img.zoomed:active { cursor: grabbing; }
.lb { overflow: hidden; }
.lb__top, .lb__nav { z-index: 2; position: relative; }
.lb__nav { position: absolute; }
.lb__fig figcaption { font-size: .88rem; opacity: .8; margin-top: .6rem; text-align: center; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: var(--cream); font-size: 2rem; line-height: 1; cursor: pointer; }
.lb__nav:hover { background: rgba(255, 255, 255, .22); }
.lb__nav--prev { left: .8rem; } .lb__nav--next { right: .8rem; }
@media (max-width: 640px) { .lb__nav { display: none; } }

.totop { position: fixed; right: 1rem; bottom: 1rem; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--cream); display: grid; place-items: center; text-decoration: none; font-size: 1.2rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 30; }
.totop.show { opacity: 1; pointer-events: auto; }
@media (max-width: 520px) { .person__in { gap: .6rem; font-size: .88rem; padding-block: .45rem; } .person img { width: 34px; height: 34px; } .person .btn { padding: .32rem .7rem; font-size: .8rem; white-space: nowrap; } }
