/* Gallery page: intro, filters, photo grid with placeholder tiles, lightbox */
.g-top{padding-top:calc(9rem + env(safe-area-inset-top,0px))}
.g-intro{display:flex;justify-content:space-between;align-items:end;gap:2rem;flex-wrap:wrap}
.g-intro .eyebrow{color:var(--orange-deep)}
.g-intro .h2{color:var(--navy);margin-top:1rem}
.g-intro p{max-width:46ch}

.g-filters{margin-block:clamp(2.5rem,5vw,3.5rem) 1.5rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.g-filters h2{font-size:1.4rem;font-weight:800;color:var(--navy);text-transform:uppercase}
.g-filters h2 small{font-size:var(--fs-sm);color:var(--muted);font-weight:600;text-transform:none;margin-left:.5rem}

.g-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:clamp(150px,17vw,250px);grid-auto-flow:dense;gap:1.25rem}
@media (max-width:1020px){.g-grid{grid-template-columns:repeat(3,1fr);grid-auto-rows:clamp(150px,24vw,240px)}}
@media (max-width:720px){.g-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:44vw;gap:.9rem}}
.g-tile{all:unset;box-sizing:border-box;cursor:pointer;position:relative;display:block;min-width:0;background:var(--peach);border-radius:var(--r);overflow:hidden;transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.g-tile.b{grid-column:span 2;grid-row:span 2}
.g-tile.t{grid-row:span 2}
.g-tile[hidden]{display:none!important}
.g-tile:hover{transform:translateY(-6px);box-shadow:0 24px 40px -24px rgba(255,102,0,.55)}
.g-tile:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.g-tile img{width:100%;height:100%;object-fit:cover;transition:transform 1s var(--ease)}
.g-tile:hover img{transform:scale(1.05)}
.g-cap{position:absolute;inset:auto 0 0;padding:2.5rem clamp(.8rem,1.6vw,1.2rem) clamp(.8rem,1.6vw,1.1rem);background:linear-gradient(0deg,rgba(5,7,46,.85),transparent);color:var(--white);font-weight:700;font-size:clamp(.85rem,1.15vw,1rem);line-height:1.25}

/* Placeholder art, used until a photo's src is filled in */
.g-ph{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;gap:.35rem;padding:clamp(.8rem,1.6vw,1.2rem)}
.g-ph svg.lines{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:currentColor;stroke-opacity:.16;stroke-width:2}
.g-ph .cam{position:absolute;top:clamp(.8rem,1.6vw,1.2rem);right:clamp(.8rem,1.6vw,1.2rem);width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.7}
.g-ph .k,.g-ph .c{position:relative}
.g-ph .k{font-size:var(--fs-xs);font-weight:700;letter-spacing:.14em;text-transform:uppercase;opacity:.7}
.g-ph .c{font-weight:800;line-height:1.15;font-size:clamp(.92rem,1.3vw,1.1rem);overflow-wrap:anywhere}
.tone-0{background:var(--navy);color:var(--white)}
.tone-1{background:var(--peach);color:var(--navy)}
.tone-2{background:var(--ink);color:var(--white)}
.tone-3{background:var(--white);color:var(--navy);box-shadow:inset 0 0 0 1px var(--line)}

.g-cta{margin-top:clamp(4rem,8vw,6rem)}
.g-cta .wrap{display:flex;justify-content:space-between;align-items:center;gap:2rem;flex-wrap:wrap;padding-block:clamp(3rem,6vw,4.5rem)}
.g-cta h2{font-size:var(--fs-h2);font-weight:800;text-transform:uppercase;letter-spacing:-.03em}
.g-cta h2 .o{color:var(--orange)}
.g-cta .acts{display:flex;gap:.75rem;flex-wrap:wrap}

/* lightbox */
dialog.lb{border:0;padding:0;border-radius:24px;width:min(1040px,calc(100vw - 32px));max-height:calc(100dvh - 32px);background:var(--ink);color:var(--white);box-shadow:0 40px 80px -20px rgba(5,7,46,.6);overflow:hidden}
dialog.lb::backdrop{background:rgba(5,7,46,.82);backdrop-filter:blur(4px)}
dialog.lb[open]{display:flex;flex-direction:column;animation:lbIn .4s var(--ease)}
@keyframes lbIn{from{opacity:0;transform:translateY(16px) scale(.98)}}
.lb-stage{position:relative;flex:1 1 auto;min-height:0;aspect-ratio:3/2;max-height:calc(100dvh - 140px);width:100%}
.lb-stage img{width:100%;height:100%;object-fit:contain;background:var(--ink)}
.lb-stage .g-cap{display:none}
.g-note{margin-top:.75rem;font-size:var(--fs-sm)}
.lb-stage .g-ph{padding:clamp(1.25rem,3vw,2rem)}
.lb-stage .g-ph .c{font-size:clamp(1.3rem,3vw,2rem)}
.lb-stage .g-ph .cam{width:30px;height:30px;top:auto;bottom:clamp(1.25rem,3vw,2rem)}
.lb-foot{flex:none;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.9rem clamp(1rem,2.4vw,1.5rem)}
.lb-cap{min-width:0;font-size:var(--fs-sm);color:rgba(255,255,255,.75)}
.lb-cap b{display:block;color:var(--white);font-size:1rem;font-weight:800}
.lb-nav{flex:none;display:flex;align-items:center;gap:.4rem}
.lb-count{font-size:var(--fs-sm);font-weight:700;color:rgba(255,255,255,.6);margin-right:.5rem;white-space:nowrap}
.lb-nav button,.lb-close{width:44px;height:44px;border-radius:50%;border:1.5px solid var(--line-dk);background:var(--ink);color:var(--white);font-size:1.05rem;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}
.lb-nav button:hover,.lb-close:hover{background:var(--orange);border-color:var(--orange)}
.lb-close{position:absolute;top:14px;left:14px;z-index:2}
/* Instagram: live feed on WordPress (plugin), sample tiles until connected */
.ig{margin-top:clamp(4.5rem,9vw,7rem)}
.ig-head{display:flex;justify-content:space-between;align-items:end;gap:1.5rem 2rem;flex-wrap:wrap;margin-bottom:1.75rem}
.ig-head .eyebrow{color:var(--orange-deep)}
.ig-head .h2{color:var(--navy);margin-top:1rem}
.ig-handle{display:inline-flex;align-items:center;gap:.5rem;margin-top:.9rem;font-weight:700;color:var(--muted)}
.ig-handle svg,.ig-tile .ov svg,.btn .ig-ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.ig-handle svg .dot,.ig-tile .ov svg .dot,.btn .ig-ic .dot{fill:currentColor;stroke:none}
.ig-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:.75rem}
.ig-tile{position:relative;display:block;aspect-ratio:1/1;border-radius:16px;overflow:hidden;background:var(--peach)}
.ig-tile img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.ig-tile .ov{position:absolute;inset:0;display:grid;place-items:center;background:rgba(5,7,46,.55);color:var(--white);opacity:0;transition:opacity .3s}
.ig-tile .ov svg{width:30px;height:30px}
.ig-tile:hover img{transform:scale(1.06)}
.ig-tile:hover .ov,.ig-tile:focus-visible .ov{opacity:1}
.ig-tile:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.ig-note{margin-top:.9rem;font-size:var(--fs-sm);color:var(--muted)}
.ig-live{min-height:120px}
@media (max-width:900px){.ig-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:520px){.ig-grid{gap:.4rem}.ig-tile{border-radius:10px}}
