/* Floating photo viewer with the website visible behind it. */
dialog.sb-photo-lightbox{inset:0!important;margin:auto!important;width:calc(100vw - 64px)!important;max-width:900px!important;height:calc(100vh - 64px)!important;height:calc(100dvh - 64px)!important;max-height:850px!important;border-radius:18px!important;box-shadow:0 24px 90px #10192366!important}
dialog.sb-photo-lightbox::backdrop{background:rgba(17,25,35,.48)!important;backdrop-filter:none!important}
body:has(dialog.sb-photo-lightbox[open]) .modal-backdrop:has(.profile-dialog){visibility:hidden}
dialog.sb-photo-lightbox .sb-lightbox-header{height:66px;padding:10px 20px}
dialog.sb-photo-lightbox .sb-lightbox-stage{height:calc(100% - 66px);padding:8px 74px 22px}
@media(max-width:760px){dialog.sb-photo-lightbox{width:calc(100vw - 24px)!important;height:calc(100vh - 48px)!important;height:calc(100dvh - 48px)!important;border-radius:14px!important}dialog.sb-photo-lightbox .sb-lightbox-header{height:66px;padding:10px 14px}dialog.sb-photo-lightbox .sb-lightbox-stage{height:calc(100% - 66px);padding:4px 10px 76px}}
/* Full photographs inside the profile, as well as in the popup. */
.surbaby-page .profile-dialog .portrait.large.has-photo{height:auto!important;min-height:0!important;aspect-ratio:auto!important;display:block!important;background:#edf5fb}
.surbaby-page .profile-dialog .portrait.large.has-photo img.tidy-profile-photo{position:static!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;max-height:65vh!important;object-fit:contain!important;object-position:center!important}
.surbaby-page .profile-dialog .real-photo-gallery>button img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
