.gallery-page-top{padding-bottom:0}
.gallery-page-top .lead{margin-bottom:0}
.ssc-gallery.section{padding-top:24px}
.ssc-gallery [hidden]{display:none!important}
.gallery-filters{display:grid;grid-template-columns:minmax(180px,1.6fr) minmax(140px,1.1fr) minmax(140px,1fr) minmax(130px,.8fr);gap:18px;padding:24px;border:1px solid var(--line);border-radius:14px;background:#fff9;margin-bottom:40px}
.gallery-filter{min-width:0}.gallery-filter label{display:block;font-size:.8rem;font-weight:700;margin-bottom:8px}
.gallery-filter input,.gallery-filter select{width:100%;min-width:0;max-width:100%;font:inherit;font-size:.9rem;color:var(--ink);border:1px solid #cbd6d5;border-radius:8px;padding:12px;background:#fff;min-height:46px}
.gallery-filter input:focus,.gallery-filter select:focus{outline:2px solid #008e88;outline-offset:2px}
.gallery-filter-status{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:.85rem;color:var(--muted)}
.gallery-filter-status p{margin:0}.gallery-filter-status button{font:inherit;font-weight:600;color:#00746f;border:0;background:none;cursor:pointer;padding:2px 0}
.gallery-filter-status button span{font-size:1.2rem;margin-left:8px}.gallery-filter-status button:hover{text-decoration:underline}
.gallery-empty{padding:40px 0}.ssc-gallery .gallery-empty h2{font-size:1.5rem;margin-bottom:12px}
.gallery-album{margin-bottom:64px;padding-bottom:56px;border-bottom:1px solid #dce4e5}
.gallery-album:last-child{border-bottom:0;margin-bottom:0}
.gallery-album-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:26px}
.ssc-gallery .gallery-album-title{font-size:clamp(1.8rem,4vw,3rem);line-height:1.12;margin:14px 0 0;overflow-wrap:anywhere}
.gallery-album-count{color:var(--muted);font-size:.9rem;white-space:nowrap}
.ssc-gallery .photo-grid{gap:24px;align-items:start}
.ssc-gallery .gallery-photo{margin:0;min-width:0}
.gallery-photo-open{display:block;position:relative;overflow:hidden;border-radius:12px;background:#071e2b;cursor:zoom-in}
.ssc-gallery .gallery-photo-open img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;transition:transform .35s ease,filter .35s ease}
.gallery-photo-open:hover img{transform:scale(1.035);filter:brightness(.92)}
.gallery-photo-open:focus-visible{outline:3px solid #008e88;outline-offset:5px}
.gallery-photo-view{position:absolute;right:14px;top:14px;display:flex;align-items:center;gap:12px;padding:9px 13px;background:#071e2bdc;border:1px solid #ffffff40;border-radius:30px;color:#fff;font-size:.75rem;backdrop-filter:blur(8px);transition:background .2s}
.gallery-photo-open:hover .gallery-photo-view{background:#008e88}
.gallery-photo-view>span{font-size:1.1rem}
.gallery-photo figcaption{margin-top:12px;line-height:1.6;overflow-wrap:anywhere;color:var(--muted);font-size:.9rem}
.gallery-photo-download{display:inline-flex;align-items:center;gap:12px;font-size:.85rem;font-weight:600;margin-top:10px;color:#00746f}
.gallery-photo-download:hover{text-decoration:underline}
.gallery-members{padding:28px;background:#eaf2f1;border-radius:12px}
.gallery-members p{margin-bottom:20px}
body.ssc-gallery-viewing{overflow:hidden}
.gallery-viewer{padding:0;border:1px solid #ffffff24;border-radius:16px;width:min(1180px,calc(100vw - 40px));max-width:none;height:min(900px,calc(100dvh - 40px));max-height:none;background:#071722;color:#fff;overflow:hidden;box-shadow:0 24px 90px #0008}
.gallery-viewer::backdrop{background:#020d14ee;backdrop-filter:blur(8px)}
.gallery-viewer [hidden]{display:none!important}
.gallery-viewer-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.gallery-viewer-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 26px;border-bottom:1px solid #ffffff16}
.gallery-viewer-heading-text{min-width:0}
.gallery-viewer-heading p{font-size:.65rem;letter-spacing:.16em;color:#6fd2ca;margin:0 0 6px}
.gallery-viewer-heading h2{font-size:1.1rem;line-height:1.4;letter-spacing:0;margin:0;font-weight:600;overflow-wrap:anywhere}
.gallery-viewer-tools{display:flex;gap:8px;flex-shrink:0}
.gallery-viewer button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:50%;background:#ffffff0d;color:white;border:1px solid #ffffff25;cursor:pointer;padding:10px;transition:background .2s}
.gallery-viewer button:hover{background:#008e88}
.gallery-viewer button:disabled{opacity:.35;cursor:default}
.gallery-viewer button:focus-visible,.gallery-viewer a:focus-visible{outline:3px solid #6fd2ca;outline-offset:4px}
.gallery-viewer svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gallery-viewer-body{position:relative;min-height:0;overflow:hidden}
.gallery-stage{position:absolute;inset:0;overflow:hidden;touch-action:pan-y}
.gallery-canvas{display:flex;min-width:100%;min-height:100%;width:max-content;height:max-content;padding:12px}
.gallery-canvas img{display:block;flex-shrink:0;margin:auto;max-width:none;max-height:none;object-fit:contain;cursor:zoom-in;opacity:0;transition:opacity .18s}
.gallery-stage.loaded img{opacity:1}
.gallery-stage.zoomed{overflow:auto;touch-action:auto;cursor:grab}
.gallery-stage.zoomed img{cursor:grab}
.gallery-stage.dragging,.gallery-stage.dragging img{cursor:grabbing}
#gallery-image-status{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;padding:16px;line-height:1.6;text-align:center;color:#a3b9c2;font-size:.9rem;width:min(300px,80%);pointer-events:none}
.gallery-viewer .gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);background:#071722d9;box-shadow:0 3px 16px #0003}
.gallery-arrow.previous{left:18px}.gallery-arrow.next{right:18px}
.gallery-viewer-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 26px;border-top:1px solid #ffffff16;background:#091c28}
#gallery-counter{font-size:.85rem;font-weight:600;letter-spacing:.06em;color:#72d5cc;margin:0}
#gallery-viewer-caption{font-size:.9rem;color:#eef5f5;line-height:1.5;overflow-wrap:anywhere;max-width:700px;margin:7px 0 0}
.gallery-viewer-help{font-size:.7rem;color:#94aab4;margin:7px 0 0}
.gallery-viewer-download{display:inline-flex;gap:14px;align-items:center;flex-shrink:0;padding:10px 15px;border:1px solid #ffffff30;border-radius:8px;color:#fff;font-size:.8rem;font-weight:600}
.gallery-viewer-download:hover{background:#008e88}
@media(max-width:760px){.gallery-filters{grid-template-columns:1fr 1fr;gap:16px;padding:18px}.gallery-filter.search{grid-column:1/-1}.gallery-album{margin-bottom:40px;padding-bottom:36px}.gallery-album-heading{align-items:start;flex-direction:column;gap:14px}.ssc-gallery .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gallery-photo-view{right:8px;top:8px;padding:6px 9px;font-size:.65rem;gap:6px}.gallery-photo-view>span{font-size:.9rem}.gallery-viewer{width:100vw;height:100dvh;border:0;border-radius:0;margin:0}.gallery-viewer-heading{padding:16px;gap:12px}.gallery-viewer-heading h2{font-size:.95rem}.gallery-viewer-heading p{font-size:.6rem}.gallery-viewer-tools{gap:6px}.gallery-viewer button{width:40px;height:40px;padding:8px}.gallery-viewer .gallery-arrow{width:36px;height:36px}.gallery-arrow.previous{left:8px}.gallery-arrow.next{right:8px}.gallery-viewer-footer{padding:16px;gap:12px;flex-wrap:wrap}.gallery-viewer-download{padding:8px 11px;font-size:.75rem}.gallery-canvas{padding:8px}}
@media(max-width:420px){.ssc-gallery .photo-grid{grid-template-columns:1fr}.gallery-photo-view{right:12px;top:12px;padding:8px 12px;font-size:.75rem}.gallery-filter-status{gap:10px}}
@media(prefers-reduced-motion:reduce){.gallery-photo-open img,.gallery-canvas img,.gallery-photo-view{transition:none}}
