.gallery-heading{padding:64px var(--gutter) 36px}.gallery-heading h1{font-size:clamp(52px,6vw,86px)}.gallery-heading p{font-size:20px;color:var(--secondary);margin:20px 0 0}
.gallery-collection{padding:0 var(--gutter) 64px}.gallery-toolbar{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px;font-size:13px;color:var(--secondary)}.gallery-controls{display:flex;gap:24px}.gallery-controls label{display:flex;align-items:center;gap:12px}.gallery-controls label[hidden]{display:none}.gallery-controls select{font:inherit;color:var(--text);background:transparent;border:0;border-bottom:1px solid #62685f55;border-radius:0;padding:10px 20px 10px 0;max-width:100%}.gallery-controls select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;align-items:start}.gallery-item{min-width:0;margin:0}.gallery-item button{width:100%;display:block;padding:0;border:0;background:none;text-align:left}.gallery-item img{display:block;width:100%;height:auto;background:var(--surface)}.gallery-caption{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-top:12px;font-size:14px}.gallery-caption small{font-size:11px;color:var(--secondary)}.gallery-item button:hover .gallery-caption{color:var(--accent)}.gallery-item button:focus-visible{outline-offset:6px}.gallery-media-placeholder{display:grid;place-items:center;aspect-ratio:4/3;background:var(--surface);font-size:20px}
#gallery-viewer{width:min(1100px,calc(100% - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:24px;background:var(--background);border:0}#gallery-viewer::backdrop{background:#222622bb}.gallery-viewer-bar{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:20px}.gallery-viewer-bar h2{font-size:22px}.gallery-viewer-bar button{background:none;border:0;padding:10px;color:var(--text);font-size:13px}#gallery-media img,#gallery-media video{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 160px);margin:auto;object-fit:contain}#gallery-media audio{display:block;width:100%;margin:40px 0}#gallery-description{font-size:15px;color:var(--secondary)}body:has(#gallery-viewer[open]){overflow:hidden}
@media(max-width:1050px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.gallery-heading{padding-top:40px}.gallery-heading p{font-size:18px}.gallery-grid{grid-template-columns:1fr}.gallery-toolbar{align-items:flex-start;gap:16px;flex-wrap:wrap}.gallery-controls{gap:16px;flex-wrap:wrap}.gallery-controls label{gap:8px}.gallery-collection{padding-bottom:40px}#gallery-viewer{width:calc(100% - 24px);padding:16px;max-height:calc(100dvh - 24px)}#gallery-media img,#gallery-media video{max-height:calc(100dvh - 130px)}}
