/* Show every edge of the original photo; surrounding space is intentional. */
#galleryGrid .catchGalleryMain>img,#galleryGrid .catchGalleryThumbs img,#galleryGrid .galleryItem img,.memoryPhotoRow>img,.memoryCatchPhoto,.memoryGearPhoto,.catchPhoto{object-fit:contain!important;object-position:center;background:#03131d}
#galleryGrid .catchGalleryMain>img,#galleryGrid .catchGalleryThumbs img{aspect-ratio:1}
#galleryGrid .catchGalleryMain>span{position:static;display:inline-block;margin-top:5px}
#galleryGrid .galleryItem{display:flex;flex-direction:column;aspect-ratio:auto}#galleryGrid .galleryItem img{aspect-ratio:1;height:auto}#galleryGrid .galleryItem span{position:static;padding:8px 10px;background:#082331}
[data-full-photo-ready]{cursor:zoom-in}[data-full-photo-ready]:focus-visible{outline:3px solid #b4e932;outline-offset:3px}
dialog.catchPhotoViewer,dialog.catchPhotoViewer:fullscreen{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;padding:0;border:0;border-radius:0;background:#020a10;color:#f0f9ff;overflow:hidden;box-sizing:border-box}
dialog.catchPhotoViewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}dialog.catchPhotoViewer::backdrop{background:#000}
.catchPhotoViewer .photoViewerBar{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));background:#0b202c;min-width:0}.photoViewerTitle{font:600 14px/1.4 system-ui;overflow-wrap:anywhere;min-width:0}.catchPhotoViewer button{min-height:44px;padding:9px 14px;background:#163a49;color:#f2fbff;border:1px solid #538291;border-radius:10px;font:700 13px system-ui}.photoViewerClose{flex-shrink:0}
.catchPhotoViewer .photoViewerStage{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;padding:8px;overflow:hidden}.catchPhotoViewer .photoViewerStage>img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain!important;object-position:center;min-height:0;min-width:0;border-radius:0}.photoViewerMessage{position:absolute;left:12px;right:12px;bottom:8px;text-align:center;background:#071a26d9;border-radius:8px;font:13px/1.4 system-ui}.photoViewerMessage:empty{display:none}
.photoViewerNav{display:flex;align-items:center;justify-content:center;gap:14px;padding:10px max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#0b202c}.photoViewerCount{font:13px system-ui}.catchPhotoViewer [hidden]{display:none!important}.catchPhotoViewer :focus-visible{outline:3px solid #b4e932;outline-offset:3px}
@media(max-width:480px){.photoViewerTitle{font-size:12px}.catchPhotoViewer button{padding:9px 11px}.photoViewerNav{gap:10px}}
