.mmc-gallery {
width: 100%;
} .mmc-gallery__strip {
--mmc-thumb: clamp(64px, 9vw, 92px);
--mmc-gap: 10px;
display: flex;
flex-wrap: wrap;
gap: var(--mmc-gap);
padding: 6px 2px;
user-select: none;
} .mmc-gallery__thumb {
appearance: none;
border: 0;
background: transparent;
padding: 0;
line-height: 0;
flex: 0 0 auto;
overflow: hidden;
outline: none;
cursor: pointer;
}
.mmc-gallery__thumb img {
display: block;
width: var(--mmc-thumb);
height: var(--mmc-thumb);
aspect-ratio: 1 / 1;
object-fit: cover;
}
.mmc-gallery__thumb:focus-visible {
outline: 2px solid rgba(0,0,0,.6);
outline-offset: 2px;
} .mmc-lightbox {
position: fixed;
inset: 0;
z-index: 99999;
display: none;
}
.mmc-lightbox.is-open {
display: block;
}
.mmc-lightbox__backdrop {
position: absolute;
inset: 0;
background: rgba(0,0,0,.75);
}
.mmc-lightbox__panel {
position: absolute;
inset: 4vh 3vw;
background: rgba(12,12,12,.98);
border-radius: 18px;
box-shadow: 0 20px 60px rgba(0,0,0,.6);
overflow: hidden;
display: flex;
flex-direction: column;
}
@media (max-width: 640px) {
.mmc-lightbox__panel {
inset: 0;
border-radius: 0;
}
}
.mmc-lightbox__close {
position: absolute;
top: 12px;
right: 12px;
width: 42px;
height: 42px;
border-radius: 999px;
border: 0;
background: rgba(255,255,255,.12);
color: #fff;
font-size: 26px;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
line-height: 1;
cursor: pointer;
z-index: 10;
}
.mmc-lightbox__close:hover {
background: rgba(255,255,255,.18);
}
.mmc-lightbox__topbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 58px 12px 16px;
gap: 10px;
color: #fff;
font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
border-bottom: 1px solid rgba(255,255,255,.08);
position: relative;
z-index: 6;
}
.mmc-lightbox__counter {
opacity: .9;
font-size: 14px;
}
.mmc-lightbox__nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 6;
width: 46px;
height: 64px;
border: 0;
border-radius: 14px;
background: rgba(255,255,255,.10);
color: #fff;
font-size: 40px;
line-height: 0;
cursor: pointer;
display: grid;
place-items: center;
}
.mmc-lightbox__nav:hover {
background: rgba(255,255,255,.16);
}
.mmc-lightbox__nav--prev { left: 12px; }
.mmc-lightbox__nav--next { right: 12px; }
@media (max-width: 640px) {
.mmc-lightbox__nav {
width: 44px;
height: 58px;
border-radius: 12px;
}
.mmc-lightbox__nav--prev { left: 8px; }
.mmc-lightbox__nav--next { right: 8px; }
} .mmc-lightbox__stage {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
overflow: hidden; position: relative;
z-index: 1;
touch-action: none;
} .mmc-lightbox__img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
transform-origin: 50% 50%;
will-change: transform;
user-select: none;
-webkit-user-drag: none;
cursor: default;
} .mmc-lightbox__stage {
position: relative;
}
.mmc-lightbox__loader {
position: absolute;
inset: 0;
display: none;
align-items: center;
justify-content: center;
color: rgba(255,255,255,.75);
font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
font-size: 14px;
pointer-events: none;
}
.mmc-lightbox.is-loading .mmc-lightbox__loader {
display: flex;
}
.mmc-lightbox.is-loading .mmc-lightbox__img {
opacity: 0;
}
.mmc-lightbox__img {
transition: opacity 160ms linear;
}