.modmora-gallery {
    display: grid;
    grid-template-columns: repeat(var(--mmg-columns, 6), minmax(0, 1fr));
    gap: var(--mmg-gap, 12px);
    width: 100%;
    margin: 18px 0;
}
.modmora-gallery__item {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 5;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--mmg-radius, 6px);
    background: #111;
    cursor: zoom-in;
}
.modmora-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.modmora-gallery__item:hover img {
    transform: scale(1.04);
}
@media (max-width: 900px) {
    .modmora-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .modmora-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mmg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.9);
}
.mmg-lightbox.is-open { display: flex; }
.mmg-lightbox img {
    display: block;
    max-width: min(94vw, 1100px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,.45);
}
.mmg-lightbox__close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.15);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
body.mmg-no-scroll { overflow: hidden; }
