/* Last-loaded, versioned photo surfaces: independent of cached theme rules. */
#photo-dialog,#guest-photo-view-dialog{background:#ffffff!important;color:#583c48!important;box-shadow:0 10px 36px #8b425914}
#photo-dialog::backdrop,#guest-photo-view-dialog::backdrop{background:#fff3f8f5!important}
#photo-dialog-close,#guest-photo-view-close{background:#ffffff!important;color:#8b4259!important}
#photo-dialog .photo-controls button,#guest-photo-view-dialog .photo-controls button{color:#8b4259!important;background:#ffffff!important;border-color:#d9afbf}
#photo-dialog .photo-controls span,#guest-photo-view-dialog .photo-controls span{color:#785665!important}
#photo-dialog-caption,#guest-photo-view-caption,.photo-dialog .photo-view-policy{display:none!important}
#photo-dialog>img{max-height:calc(100svh - 160px)}

/* Nine preview cuts; the complete album opens in the fixed photo viewer. */
#wedding-gallery{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:0 8px;overflow:visible;scroll-snap-type:none;touch-action:pan-y}
#wedding-gallery .gallery-photo{width:100%;height:auto;max-width:100%;aspect-ratio:2/3;scroll-snap-align:none;touch-action:pan-y}
#wedding-gallery .gallery-photo[hidden]{display:none!important}
#wedding-gallery .gallery-photo img{display:block;width:100%;height:100%;object-fit:cover;touch-action:pan-y}
#photo-dialog-image{cursor:pointer;touch-action:pan-y;user-select:none;-webkit-user-drag:none}
#photo-dialog-image:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
