.recordari-gallery-expandable > .wp-block-image { cursor: zoom-in; }
.recordari-photo-viewer {
 position: fixed; inset: 0; width: 100%; height: 100dvh;
 max-width: none; max-height: none; margin: 0; border: 0;
 padding: clamp(3.5rem,7.5vh,5rem) clamp(3rem,8.5vw,10rem) 1.5rem;
 background: #fff; color: #111; overflow: hidden;
}
.recordari-photo-viewer:not([open]) { display: none; }
.recordari-photo-viewer[open] { display: grid; grid-template: minmax(0,1fr)/minmax(0,1fr); }
.recordari-photo-viewer::backdrop { background: #fff; }
.recordari-photo-viewer > .recordari-photo-full { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.recordari-photo-viewer button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.recordari-photo-close { top: 1rem; right: 1rem; }
.recordari-photo-close::before,.recordari-photo-close::after { content: ''; position: absolute; width: 20px; height: 1px; background: currentColor; transform: rotate(45deg); }
.recordari-photo-close::after { transform: rotate(-45deg); }
.recordari-photo-previous,.recordari-photo-next { top: calc(50% - 22px); font: 300 2rem/1 Georgia,serif; }
.recordari-photo-previous { left: 1rem; }
.recordari-photo-next { right: 1rem; }
.recordari-photo-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width:600px) {
 .recordari-photo-viewer { padding: 4rem 2.75rem 1rem; }
 .recordari-photo-previous { left: 0; }
 .recordari-photo-next { right: 0; }
 .recordari-photo-close { top: .5rem; right: .5rem; }
}
