.mmg-gallery-page {
    background: #fff;
    color: #17202a;
    margin: 0;
    max-width: none;
    min-height: 0;
    overflow-x: clip;
    padding: 0;
    width: 100%;
}

body.single-mm_gallery .mmg-gallery-page,
body.single-mm_gallery .mmg-gallery,
body.single-mm_gallery .mmg-slider-gallery {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.mmg-gallery {
    left: auto;
    margin-left: auto;
    margin-right: auto;
    max-width: 1180px;
    min-height: 0;
    padding: 0;
    position: relative;
    transform: none;
    width: min(100% - clamp(32px, 8vw, 160px), 1180px);
}

.mmg-mosaic {
    --mmg-gap: clamp(10px, 1.35vw, 24px);
    box-sizing: border-box;
    display: grid;
    gap: var(--mmg-gap);
    grid-auto-flow: dense;
    grid-auto-rows: clamp(150px, 13vw, 255px);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    margin: 0 auto;
    max-width: none;
    padding: 0;
    width: 100%;
}

.mmg-gallery__meta {
    align-items: center;
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    min-height: 0;
    padding: 0;
    text-align: right;
}

.mmg-tile {
    background: #f3f1ed;
    cursor: zoom-in;
    display: block;
    grid-column: span 4;
    grid-row: span 2;
    margin: 0;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.mmg-tile__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mmg-tile--intro {
    background: #0d1824;
    grid-column: span 4;
    grid-row: span 2;
}

.mmg-tile--intro::after {
    background: rgba(0, 0, 0, 0.1);
    content: "";
    inset: 0;
    position: absolute;
}

.mmg-tile__title-scrim {
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.1) 42%, rgba(0, 0, 0, 0.04) 72%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.14));
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.mmg-tile__overlay {
    align-items: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: center;
    padding: clamp(24px, 5vw, 76px);
    pointer-events: none;
    position: absolute;
    text-align: center;
    z-index: 2;
}

.mmg-lightbox {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    box-sizing: border-box;
    display: none;
    inset: 0;
    justify-content: center;
    padding: clamp(20px, 4vw, 56px);
    position: fixed;
    z-index: 999999;
}

.mmg-lightbox.is-open {
    display: flex;
}

.mmg-lightbox__image {
    display: block;
    max-height: calc(100vh - 112px);
    max-width: min(1200px, 100%);
    object-fit: contain;
}

.mmg-lightbox__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #17202a;
    cursor: pointer;
    display: inline-flex;
    font-size: 40px;
    height: 48px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: clamp(18px, 3vw, 40px);
    top: clamp(18px, 3vw, 40px);
    width: 48px;
}

.mmg-lightbox__nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 32, 42, 0.18);
    color: #17202a;
    cursor: pointer;
    display: inline-flex;
    font-size: clamp(44px, 6vw, 72px);
    height: clamp(56px, 8vw, 84px);
    justify-content: center;
    line-height: 1;
    padding: 0 0 6px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(44px, 7vw, 72px);
}

.mmg-lightbox__nav--prev {
    left: clamp(14px, 3vw, 42px);
}

.mmg-lightbox__nav--next {
    right: clamp(14px, 3vw, 42px);
}

.mmg-gallery__credit {
    align-items: center;
    color: #111;
    display: inline-flex;
    font-size: 18px;
    font-weight: 500;
    gap: 7px;
    line-height: 1.35;
    margin: 0;
    opacity: 0.9;
}

.mmg-gallery__credit-icon {
    display: block;
    fill: currentColor;
    height: 20px;
    width: 20px;
}

.mmg-gallery__title {
    box-sizing: border-box;
    color: #eee1d4 !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.52vw, 4.4rem);
    font-weight: 400;
    left: 50%;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    width: max-content;
}

.mmg-tile--2,
.mmg-tile--8 {
    grid-column: span 4;
    grid-row: span 4;
}

.mmg-tile--3,
.mmg-tile--7 {
    grid-column: span 4;
    grid-row: span 3;
}

.mmg-tile--4,
.mmg-tile--5,
.mmg-tile--9,
.mmg-tile--10 {
    grid-column: span 4;
    grid-row: span 3;
}

.mmg-tile--6 {
    grid-column: span 4;
    grid-row: span 2;
}

.mmg-gallery__description {
    color: #eee1d4;
    font-size: clamp(0.95rem, 1.25vw, 1.25rem);
    line-height: 1.5;
    margin: clamp(14px, 2vw, 24px) auto 0;
    max-width: min(720px, calc(100% - 48px));
    text-align: center;
    width: 100%;
}

.mmg-gallery__description> :first-child {
    margin-top: 0;
}

.mmg-gallery__description> :last-child {
    margin-bottom: 0;
}

.mmg-slider-gallery {
    left: 50%;
    margin: 0;
    max-width: none;
    min-height: 0;
    padding: 0;
    position: relative;
    transform: translateX(-50%);
    width: 100vw;
}

.mmg-slider-intro {
    color: #17202a;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.65;
    margin: 0 auto 25px;
    max-width: 820px;
    padding: clamp(34px, 6vw, 72px) 24px 0;
}

.mmg-slider-intro> :first-child {
    margin-top: 0;
}

.mmg-slider-intro> :last-child {
    margin-bottom: 0;
}

.mmg-slider {
    background: #0d0d0d;
    color: #fff;
    min-height: clamp(420px, 88vh, 720px);
    outline: none;
    position: relative;
    width: 100%;
}

.mmg-slider__track,
.mmg-slider__slide {
    inset: 0;
    position: absolute;
}

.mmg-slider__slide {
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 420ms ease;
}

.mmg-slider__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mmg-slider__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mmg-slider__caption {
    align-items: flex-end;
    color: #ede6d8;
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 3.6vw, 4.05rem);
    font-weight: 400;
    gap: clamp(12px, 1.7vw, 24px);
    left: clamp(22px, 5vw, 76px);
    letter-spacing: 0;
    line-height: 1;
    max-width: min(920px, calc(100% - 150px));
    position: absolute;
    text-align: left;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.58);
    text-transform: uppercase;
    bottom: clamp(34px, 6vw, 86px);
    width: auto;
    z-index: 2;
}

.mmg-slider__caption-icon {
    display: block;
    flex: 0 0 auto;
    height: clamp(54px, 7vw, 104px);
    object-fit: contain;
    width: clamp(54px, 7vw, 104px);
}

.mmg-slider__caption-title {
    display: block;
}

.mmg-slider__button {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: clamp(2rem, 4vw, 3.8rem);
    height: clamp(48px, 6vw, 76px);
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 180ms ease, border-color 180ms ease;
    width: clamp(48px, 6vw, 76px);
    z-index: 2;
}

.mmg-slider__button:hover,
.mmg-slider__button:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.65);
}

.mmg-slider__button--prev {
    left: clamp(16px, 3vw, 44px);
}

.mmg-slider__button--next {
    right: clamp(16px, 3vw, 44px);
}

.mmg-slider__counter {
    bottom: clamp(18px, 3vw, 38px);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    margin: 0;
    position: absolute;
    right: clamp(18px, 3vw, 42px);
    text-transform: uppercase;
    z-index: 2;
}

@media (max-width: 900px) {
    .mmg-mosaic {
        grid-auto-rows: clamp(130px, 24vw, 220px);
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .mmg-tile,
    .mmg-tile--intro,
    .mmg-tile--2,
    .mmg-tile--4,
    .mmg-tile--5,
    .mmg-tile--6,
    .mmg-tile--8,
    .mmg-tile--9,
    .mmg-tile--10 {
        grid-column: span 6;
        grid-row: span 2;
    }

    .mmg-tile--3,
    .mmg-tile--7 {
        grid-column: span 6;
        grid-row: span 2;
    }
}

@media (max-width: 560px) {
    .mmg-mosaic {
        --mmg-gap: 10px;
        grid-auto-rows: minmax(210px, auto);
        padding: 0;
    }

    .mmg-tile,
    .mmg-tile--intro,
    .mmg-tile--2,
    .mmg-tile--3,
    .mmg-tile--4,
    .mmg-tile--5,
    .mmg-tile--6,
    .mmg-tile--7,
    .mmg-tile--8,
    .mmg-tile--9,
    .mmg-tile--10 {
        aspect-ratio: 4 / 3;
        grid-column: span 6;
        grid-row: auto;
    }

    .mmg-tile--intro {
        aspect-ratio: 16 / 9;
    }

    .mmg-tile__overlay {
        padding: 22px;
    }

    .mmg-gallery__meta {
        padding: 0;
    }

    .mmg-gallery__credit {
        font-size: 16px;
    }

    .mmg-gallery__credit-icon {
        height: 18px;
        width: 18px;
    }

    .mmg-slider {
        min-height: 78vh;
    }

    .mmg-slider__caption {
        align-items: center;
        bottom: 28px;
        max-width: calc(100% - 44px);
    }

    .mmg-slider__caption-icon {
        height: 48px;
        width: 48px;
    }
}

@media (min-width: 901px) {
    .mmg-gallery .mmg-mosaic,
    body.single-mm_gallery .mmg-mosaic {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: none !important;
        width: 100% !important;
    }

    .mmg-gallery .mmg-tile,
    .mmg-gallery .mmg-tile--intro,
    .mmg-gallery .mmg-tile--2,
    .mmg-gallery .mmg-tile--3,
    .mmg-gallery .mmg-tile--4,
    .mmg-gallery .mmg-tile--5,
    .mmg-gallery .mmg-tile--6,
    .mmg-gallery .mmg-tile--7,
    .mmg-gallery .mmg-tile--8,
    .mmg-gallery .mmg-tile--9,
    .mmg-gallery .mmg-tile--10,
    body.single-mm_gallery .mmg-tile,
    body.single-mm_gallery .mmg-tile--intro,
    body.single-mm_gallery .mmg-tile--2,
    body.single-mm_gallery .mmg-tile--3,
    body.single-mm_gallery .mmg-tile--4,
    body.single-mm_gallery .mmg-tile--5,
    body.single-mm_gallery .mmg-tile--6,
    body.single-mm_gallery .mmg-tile--7,
    body.single-mm_gallery .mmg-tile--8,
    body.single-mm_gallery .mmg-tile--9,
    body.single-mm_gallery .mmg-tile--10 {
        flex-basis: auto !important;
        float: none !important;
        grid-column: auto !important;
        max-width: none !important;
        width: 100% !important;
    }

    .mmg-gallery .mmg-tile--intro,
    body.single-mm_gallery .mmg-tile--intro {
        aspect-ratio: auto;
        grid-column: auto !important;
        grid-row: span 1 !important;
        height: 100%;
        margin-bottom: 0;
    }
}
