/* Scoped gallery: six curated previews, then six photos per request. */
#gallery .gallery-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
#gallery .gallery-photo{grid-column:span 3;position:relative;display:block;min-width:0;padding:0;overflow:hidden;aspect-ratio:3/2;border:1px solid rgba(255,255,255,.11);border-radius:18px;background:#100c17;line-height:0;cursor:pointer;box-shadow:0 14px 38px rgba(0,0,0,.24);transition:border-color .25s,box-shadow .25s}
#gallery .gallery-photo:nth-child(-n+2){grid-column:span 6}
#gallery .gallery-photo:nth-child(n+7){grid-column:span 4}
#gallery .gallery-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
#gallery .gallery-photo:hover{border-color:rgba(232,67,147,.55);box-shadow:0 18px 46px rgba(0,0,0,.32)}
#gallery .gallery-photo:hover img{transform:scale(1.025)}
#gallery .gallery-photo:focus-visible,#gallery .gallery-control:focus-visible,#gallery-lightbox button:focus-visible{outline:2px solid #e7bf4f;outline-offset:4px}
#gallery .gallery-zoom{position:absolute;right:13px;bottom:13px;width:32px;height:32px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(9,7,15,.62);color:white;backdrop-filter:blur(6px);opacity:.8}
#gallery .gallery-zoom svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.5}
#gallery .gallery-controls{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin:30px auto 0}
#gallery .gallery-control{font-family:inherit;font-size:.82rem;font-weight:500;line-height:1.4;letter-spacing:.05em;border-radius:999px;padding:13px 27px;border:1px solid rgba(232,67,147,.38);background:linear-gradient(110deg,rgba(108,63,160,.27),rgba(232,67,147,.16));color:#f7eaf2;cursor:pointer;transition:background .2s,border-color .2s}
#gallery .gallery-control:hover{border-color:rgba(232,67,147,.75);background:rgba(232,67,147,.22)}
#gallery .gallery-control-secondary{background:transparent;border-color:rgba(255,255,255,.13);color:var(--muted)}
#gallery .gallery-progress{width:100%;margin:5px 0 0;color:var(--muted);font-size:.72rem;letter-spacing:.15em}
#gallery [hidden],#gallery-lightbox [hidden]{display:none!important}
#gallery-lightbox{position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:rgba(6,5,11,.98);color:#fff;overflow:hidden}
#gallery-lightbox::backdrop{background:rgba(6,5,11,.94)}
#gallery-lightbox[open]{display:grid;grid-template-rows:72px minmax(0,1fr)64px}
#gallery-lightbox .gallery-lightbox-header{display:flex;align-items:center;justify-content:center;position:relative;padding:16px 70px;font-family:inherit;font-size:.76rem;letter-spacing:.2em;text-transform:uppercase;color:#e7bf4f}
#gallery-lightbox .gallery-lightbox-close{position:absolute;right:24px;top:16px}
#gallery-lightbox button{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(255,255,255,.05);color:white;cursor:pointer}
#gallery-lightbox button:disabled{opacity:.2;cursor:default}
#gallery-lightbox button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}
#gallery-lightbox .gallery-lightbox-stage{display:grid;grid-template-columns:44px minmax(0,1fr)44px;align-items:center;gap:24px;min-height:0;width:min(1500px,100%);padding:0 28px;margin:0 auto}
#gallery-lightbox .gallery-lightbox-image-wrap{display:grid;place-items:center;height:100%;min-height:0;position:relative}
#gallery-lightbox .gallery-lightbox-image{width:100%;height:100%;min-height:0;object-fit:contain;transition:opacity .15s}
#gallery-lightbox .gallery-lightbox-image.is-loading{opacity:0}
#gallery-lightbox .gallery-lightbox-error{position:absolute;padding:20px;text-align:center;color:#bdb3c9;font-size:.9rem}
#gallery-lightbox .gallery-lightbox-counter{display:flex;align-items:center;justify-content:center;font-family:inherit;font-size:.8rem;font-weight:500;line-height:1.5;letter-spacing:.15em;color:#bdb3c9}
@media(max-width:1000px){#gallery .gallery-grid{grid-template-columns:repeat(6,minmax(0,1fr))}#gallery .gallery-photo,#gallery .gallery-photo:nth-child(-n+2),#gallery .gallery-photo:nth-child(n+7){grid-column:span 3}}
@media(max-width:600px){#gallery .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#gallery .gallery-photo,#gallery .gallery-photo:nth-child(-n+2),#gallery .gallery-photo:nth-child(n+7){grid-column:span 1;border-radius:12px}#gallery .gallery-zoom{right:7px;bottom:7px;width:25px;height:25px}#gallery .gallery-zoom svg{width:12px;height:12px}#gallery .gallery-controls{margin-top:23px;gap:10px}#gallery .gallery-control{padding:11px 19px;font-size:.76rem}#gallery-lightbox[open]{grid-template-rows:64px minmax(0,1fr)56px}#gallery-lightbox .gallery-lightbox-stage{grid-template-columns:32px minmax(0,1fr)32px;gap:4px;padding:0 6px}#gallery-lightbox button{width:32px;height:32px}#gallery-lightbox .gallery-lightbox-close{right:16px;top:15px}#gallery-lightbox .gallery-lightbox-header{font-size:.7rem}}
@media(prefers-reduced-motion:reduce){#gallery .gallery-photo,#gallery .gallery-photo img,#gallery-lightbox .gallery-lightbox-image{transition:none}}
