/* Editorial presentation for the club's real photographs. */
.gallery.section{position:relative;overflow:hidden;background:#0b080c;padding-bottom:clamp(92px,10vw,164px)}
.gallery.section::before{content:"";position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,#a85268 45%,transparent);opacity:.55;pointer-events:none}
.gallery .section-top{position:relative;z-index:1;margin-bottom:clamp(34px,5vw,74px)}
.gallery .section-top>p{max-width:270px}
.gallery-grid{position:relative;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:clamp(64px,8.3vw,135px);grid-auto-flow:dense;gap:clamp(5px,.7vw,10px);background:transparent}
.gallery-grid button,.gallery-grid button:nth-child(7n+1),.gallery-grid button:nth-child(7n+5){position:relative;grid-column:span 3;grid-row:span 2;height:100%;min-height:0;isolation:isolate;overflow:hidden;background:#20121b;cursor:zoom-in;box-shadow:0 16px 35px #0004}
.gallery-grid button:nth-child(12n+1){grid-column:span 6;grid-row:span 4}
.gallery-grid button:nth-child(12n+4){grid-column:span 6;grid-row:span 2}
.gallery-grid button:nth-child(12n+5){grid-column:span 6;grid-row:span 3}
.gallery-grid button:nth-child(12n+6),.gallery-grid button:nth-child(12n+7){grid-row:span 3}
.gallery-grid button:nth-child(12n+12){grid-column:span 6}
.gallery-grid img,.gallery-grid button:nth-child(7n+1) img,.gallery-grid button:nth-child(7n+5) img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.98) contrast(1.035);transform:scale(1);transition:transform .9s cubic-bezier(.2,.7,.2,1),filter .65s ease}
.gallery-grid button::before{content:"";position:absolute;z-index:1;inset:52% 0 0;background:linear-gradient(180deg,transparent,#09060ab8);opacity:.75;pointer-events:none;transition:opacity .45s ease}
.gallery-grid button::after{content:"";position:absolute;z-index:3;inset:0;border:1px solid transparent;border-radius:0;pointer-events:none;opacity:1;transform:none;transition:border-color .4s ease;box-shadow:none;background:none;width:auto;height:auto}
.gallery-grid button:hover::after,.gallery-grid button:focus-visible::after{border-color:#e6a7b3aa}
.gallery-grid button:hover img,.gallery-grid button:focus-visible img{filter:saturate(1.08) contrast(1.04);transform:scale(1.055)}
.gallery-grid button:hover::before,.gallery-grid button:focus-visible::before{opacity:1}
.gallery-grid button:focus-visible{outline:2px solid #f6a2b2;outline-offset:3px}
.gallery-frame-meta{position:absolute;z-index:2;left:clamp(14px,2vw,31px);bottom:clamp(15px,2vw,30px);display:flex;align-items:center;gap:12px;color:#f9e9e9;font-size:clamp(9px,.85vw,11px);font-weight:700;letter-spacing:.19em;text-align:left;text-shadow:0 2px 12px #000}
.gallery-frame-meta::before{content:"";width:23px;height:1px;background:#e89aaa}
.gallery-frame-action{position:absolute;z-index:2;right:clamp(13px,1.8vw,25px);bottom:clamp(12px,1.7vw,22px);display:grid;place-items:center;width:clamp(30px,3vw,45px);height:clamp(30px,3vw,45px);border:1px solid #f5d9dd8c;border-radius:50%;color:#fff0f1;background:#10090e80;transition:background .4s,border-color .4s,transform .4s}
.gallery-frame-action svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.gallery-grid button:hover .gallery-frame-action,.gallery-grid button:focus-visible .gallery-frame-action{background:#b83d5d;border-color:#efa0b0;transform:translate(2px,-2px)}
.gallery-more{max-width:530px;margin-top:clamp(36px,4vw,60px);padding:20px 0;font-size:12px;letter-spacing:.18em;transition:color .3s,border-color .3s}
.gallery-more:hover,.gallery-more:focus-visible{color:#fff;border-color:#f4a5b4}
.gallery-more:focus-visible{outline:2px solid #f4a5b4;outline-offset:5px}

/* The existing image dialog also serves event posters. */
#lightbox.photo-viewer{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:clamp(16px,3vw,36px);border:0;background:#09070bec;color:#f7e9e9;overflow:hidden;box-sizing:border-box}
#lightbox.photo-viewer::backdrop{background:#000e;backdrop-filter:blur(17px)}
#lightbox.photo-viewer[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
#lightbox.photo-viewer>img{display:block;max-width:min(1200px,calc(100vw - 120px));width:auto;height:auto;max-height:calc(100dvh - 140px);object-fit:contain;margin:auto;box-shadow:0 24px 90px #000a}
#lightbox.photo-viewer>.photo-viewer-close{position:absolute;z-index:5;top:clamp(14px,2.4vw,30px);right:clamp(14px,2.4vw,30px);display:grid;place-items:center;width:43px;height:43px;padding:0;margin:0;border:1px solid #f2d3da66;border-radius:50%;background:#1a0c15bb;color:#fff;font:300 29px/1 Arial,sans-serif;cursor:pointer}
.photo-viewer-nav{position:absolute;z-index:4;inset:50% clamp(10px,3vw,38px) auto;display:flex;justify-content:space-between;transform:translateY(-50%);pointer-events:none}
.photo-viewer-nav button{display:grid;place-items:center;width:clamp(39px,4vw,56px);height:clamp(39px,4vw,56px);padding:0;margin:0;border:1px solid #f2d3da66;border-radius:50%;background:#1a0c15c9;color:#fff;cursor:pointer;pointer-events:auto;transition:background .3s,border-color .3s}
.photo-viewer-nav button:hover,.photo-viewer-nav button:focus-visible,#lightbox.photo-viewer>.photo-viewer-close:hover,#lightbox.photo-viewer>.photo-viewer-close:focus-visible{background:#ad3858;border-color:#f4b3bf}
.photo-viewer-nav button:focus-visible,#lightbox.photo-viewer>.photo-viewer-close:focus-visible{outline:2px solid #f7aabb;outline-offset:4px}
.photo-viewer-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.photo-viewer-foot{position:absolute;z-index:4;right:clamp(16px,3vw,36px);bottom:clamp(17px,2.8vw,33px);left:clamp(16px,3vw,36px);display:flex;justify-content:space-between;gap:20px;align-items:center;color:#f2dadd;font-size:10px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;pointer-events:none}
.photo-viewer-foot::before{content:"";position:absolute;top:-14px;left:0;right:0;height:1px;background:linear-gradient(90deg,#ffffff24,#f19aaa8c,#ffffff24)}
.photo-viewer-foot span:last-child{color:#f0a5b3}
.photo-viewer-nav[hidden],.photo-viewer-foot[hidden]{display:none}

@media(max-width:960px){.gallery-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:clamp(62px,12vw,112px)}.gallery-grid button,.gallery-grid button:nth-child(7n+1),.gallery-grid button:nth-child(7n+5){grid-column:span 3;grid-row:span 2}.gallery-grid button:nth-child(12n+1),.gallery-grid button:nth-child(12n+4),.gallery-grid button:nth-child(12n+5),.gallery-grid button:nth-child(12n+12){grid-column:span 6;grid-row:span 3}.gallery-grid button:nth-child(12n+6),.gallery-grid button:nth-child(12n+7){grid-row:span 2}}
@media(max-width:560px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(132px,42vw,190px);gap:6px}.gallery-grid button,.gallery-grid button:nth-child(7n+1),.gallery-grid button:nth-child(7n+5),.gallery-grid button:nth-child(12n+6),.gallery-grid button:nth-child(12n+7){grid-column:span 1;grid-row:span 1}.gallery-grid button:nth-child(12n+1),.gallery-grid button:nth-child(12n+5){grid-column:span 2;grid-row:span 2}.gallery-grid button:nth-child(12n+4),.gallery-grid button:nth-child(12n+12){grid-column:span 2;grid-row:span 1}.gallery-frame-meta{left:13px;bottom:14px;font-size:8px;letter-spacing:.13em;gap:6px}.gallery-frame-meta::before{width:11px}.gallery-frame-action{right:9px;bottom:9px;width:29px;height:29px}.gallery-frame-action svg{width:13px;height:13px}#lightbox.photo-viewer{padding:14px}#lightbox.photo-viewer>img{max-width:calc(100vw - 28px);max-height:calc(100dvh - 180px)}.photo-viewer-nav{inset:auto 14px 70px;transform:none}.photo-viewer-nav button{width:42px;height:42px}.photo-viewer-foot{bottom:22px;left:68px;right:68px;justify-content:center}.photo-viewer-foot span:first-child{display:none}}
@media(prefers-reduced-motion:reduce){.gallery-grid img,.gallery-grid button::before,.gallery-frame-action,.gallery-more,.photo-viewer-nav button{transition:none!important;transform:none!important}}
