.entry-content .fsv-restored-gallery,
.fsv-restored-gallery.wp-block-gallery {
display: grid !important;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)) !important;
gap: 12px !important;
width: 100%;
margin: 24px 0;
align-items: stretch;
}
.fsv-restored-gallery.wp-block-gallery > figure.wp-block-image,
.fsv-restored-gallery.wp-block-gallery > .wp-block-image {
display: block !important;
width: 100% !important;
max-width: none !important;
min-width: 0 !important;
margin: 0 !important;
padding: 0 !important;
float: none !important;
aspect-ratio: 4 / 3;
overflow: hidden;
border-radius: 10px;
background: #f2f2f2;
}
.fsv-restored-gallery.wp-block-gallery > figure > a {
width: 100%; height: 100%; display: block; cursor: zoom-in;
}
.fsv-restored-gallery.wp-block-gallery > figure img {
width: 100% !important;
height: 100% !important;
max-width: none !important;
object-fit: cover !important;
display: block !important;
transition: transform .2s ease;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
.fsv-restored-gallery.wp-block-gallery > figure:hover img { transform: scale(1.035); }
}
@media(max-width:640px) {
.entry-content .fsv-restored-gallery,
.fsv-restored-gallery.wp-block-gallery { grid-template-columns:repeat(2, minmax(0,1fr)) !important; gap:8px !important; }
.fsv-restored-gallery.wp-block-gallery > figure.wp-block-image { border-radius:7px; }
}
@media(max-width:360px) {
.entry-content .fsv-restored-gallery,
.fsv-restored-gallery.wp-block-gallery { grid-template-columns:repeat(1, minmax(0,1fr)) !important; }
}
.fsv-photo-viewer { position:fixed; inset:0; z-index:999999; background:rgba(0,0,0,.94); display:none; align-items:center; justify-content:center; padding:55px 55px 42px; box-sizing:border-box; }
.fsv-photo-viewer.is-open { display:flex; }
.fsv-photo-viewer img { max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
.fsv-photo-viewer button { position:absolute; border:0; border-radius:8px; background:rgba(255,255,255,.15); color:white; font-size:30px; cursor:pointer; padding:5px 12px; line-height:1.3; }
.fsv-photo-viewer button:focus-visible { outline:3px solid white; }
.fsv-photo-viewer .fsv-close { top:12px; right:16px; }
.fsv-photo-viewer .fsv-prev { left:9px; top:50%; transform:translateY(-50%); }
.fsv-photo-viewer .fsv-next { right:9px; top:50%; transform:translateY(-50%); }
.fsv-photo-viewer .fsv-photo-counter { position:absolute; bottom:9px; left:0; right:0; text-align:center; font-size:13px; color:white; }
@media(max-width:640px) { .fsv-photo-viewer {padding:55px 36px 42px;} .fsv-photo-viewer button {font-size:24px;} }