.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));gap:8px;margin:12px 0}.gallery-grid article{min-width:0;border:1px solid #dce4ea;border-radius:9px;background:white;overflow:hidden;padding:6px}.gallery-photo{display:block;border:0;padding:0;background:white;width:100%;text-align:left;cursor:pointer}.gallery-photo img{width:100%;height:160px;object-fit:cover;display:block;border-radius:5px}.gallery-photo span{display:block;font-size:12px;padding:5px;overflow-wrap:anywhere}.gallery-grid small{font-size:11px;color:#647b90}.gallery-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.gallery-toolbar label{max-width:100%;min-width:0}.gallery-toolbar select{max-width:100%;padding:7px}.gallery-toolbar button{font-size:12px}.gallery-dialog{width:min(850px,94vw);max-height:90dvh;overflow:auto;padding:14px}.gallery-dialog h2{font-size:18px}.gallery-dialog label{display:block;margin:10px 0}.gallery-dialog input:not([type=checkbox]),.gallery-dialog textarea,.gallery-dialog select{width:100%;padding:8px;box-sizing:border-box}.gallery-dialog button{margin:4px;font-size:13px}.gallery-full-photo{width:100%;max-height:60dvh;object-fit:contain;background:#f1f5f9}.gallery-comment{border-top:1px solid #dce4ea;padding:8px 0;overflow-wrap:anywhere}.gallery-comment p{white-space:pre-wrap}.gallery-select{font-size:11px}.gallery-dialog summary{padding:9px 0;cursor:pointer}.gallery-public-shell{max-width:1200px;margin:0 auto;padding:16px}.gallery-public-shell header{position:static;height:auto;padding:12px 0;gap:12px}.home-gallery-link{text-align:left;margin:3px 0}.gallery-dialog [role=status]{overflow-wrap:anywhere;white-space:pre-wrap}@media(max-width:500px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-photo img{height:135px}.gallery-toolbar select{width:100%}.gallery-dialog{padding:10px}.gallery-dialog .match-heading{gap:8px}}
.home-photo-gallery{min-width:0;max-width:100%;padding:8px!important}.home-photo-gallery .match-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;margin:0 0 6px}.home-photo-gallery h3{margin:0!important;font-size:15px!important}.home-photo-gallery .match-heading button{font-size:13px;padding:5px 8px}.home-photo-rail{display:flex;gap:8px;width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-bottom:4px}.home-photo-card{flex:0 0 210px;min-width:0;scroll-snap-align:start;border:1px solid #dce4ea;border-radius:8px;padding:6px;background:white;text-align:left;cursor:pointer;color:var(--ink)}.home-photo-card img{width:100%;height:135px;object-fit:cover;border-radius:5px;display:block}.home-photo-card span{display:block;font-size:12px;margin:5px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.home-photo-card small{display:block;color:#647b90;font-size:10px}@media(max-width:500px){.home-photo-card{flex-basis:180px}.home-photo-card img{height:120px}}
.home-gallery-tabs{display:flex;gap:5px;overflow-x:auto;max-width:100%;min-width:0;margin:4px 0 8px;overscroll-behavior-x:contain}.home-gallery-tabs button{flex-shrink:0;border:0;border-radius:16px;background:#f5f8fc;color:#285b7a;padding:6px 12px;font-size:12px}.home-gallery-tabs button.selected{background:#dceefa;color:#104f7a}.home-event-card{flex:0 0 290px;max-width:100%;min-width:0;background:white;border:1px solid #dce4ea;border-radius:9px;padding:8px;scroll-snap-align:start;box-sizing:border-box}.home-event-card h4{font-size:13px;line-height:1.35;margin:0 0 6px;overflow-wrap:anywhere}.home-event-photos{display:flex;min-width:0;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}.home-event-photos::-webkit-scrollbar{display:none}.home-event-photos .home-photo-card{flex:0 0 100%;box-sizing:border-box;max-width:100%;border:0;padding:0;scroll-snap-align:start}.home-event-photos .home-photo-card img{height:160px}.home-event-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}.home-event-controls button{font-size:17px;padding:4px 12px}.home-event-controls small{font-size:11px;color:#647b90}@media(max-width:500px){.home-event-card{flex-basis:270px}.home-event-photos .home-photo-card{flex-basis:100%}.home-event-photos .home-photo-card img{height:150px}}

.gallery-viewer-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:5px 0}.gallery-viewer-nav span{font-size:12px;color:#647b90}.gallery-full-photo{touch-action:pan-y pinch-zoom}.gallery-viewer-nav button:disabled{opacity:.4}

#galleryPhotoDialog{width:96vw;max-width:1600px;max-height:96dvh;box-sizing:border-box;padding:12px}#galleryPhotoDialog .gallery-full-photo{display:block;width:100%;height:76dvh;max-height:76dvh;object-fit:contain}#galleryPhotoDialog::backdrop{background:rgba(0,0,0,.78)}@media(max-width:600px){#galleryPhotoDialog{width:100vw;max-width:100vw;max-height:100dvh;padding:8px;margin:auto;border-radius:8px}#galleryPhotoDialog .gallery-full-photo{height:72dvh;max-height:72dvh}}
