.nmf-fashion-gallery {
    --nmf-fashion-gallery-columns: 4;
    --nmf-fashion-gallery-gap: 18px;
    --nmf-fashion-gallery-row: 120px;
    --nmf-fashion-gallery-fit: cover;
    --nmf-fashion-gallery-tile-bg: #f4eeeb;
    --nmf-fashion-gallery-overlay: rgba(12, 10, 10, 0.18);
    position: relative;
}

.nmf-fashion-gallery__empty {
    padding: 28px;
    border: 1px solid rgba(18, 18, 18, 0.08);
    background: #f7f2ef;
    color: #1c1a1a;
}

.nmf-fashion-gallery__grid {
    display: grid;
    grid-template-columns: repeat(var(--nmf-fashion-gallery-columns), minmax(0, 1fr));
    grid-auto-rows: minmax(var(--nmf-fashion-gallery-row), auto);
    grid-auto-flow: dense;
    gap: var(--nmf-fashion-gallery-gap);
}

.nmf-fashion-gallery__item {
    position: relative;
    display: block;
    min-width: 0;
    min-height: calc(var(--nmf-fashion-gallery-row) * 2);
    background: var(--nmf-fashion-gallery-tile-bg);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    isolation: isolate;
}

.nmf-fashion-gallery__item:focus-visible {
    outline: 1px solid rgba(18, 18, 18, 0.75);
    outline-offset: 2px;
}

.nmf-fashion-gallery__media,
.nmf-fashion-gallery__hover {
    position: absolute;
    inset: 0;
}

.nmf-fashion-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--nmf-fashion-gallery-fit);
    transition: transform 0.55s ease;
}

.nmf-fashion-gallery__hover {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.18), transparent 55%), var(--nmf-fashion-gallery-overlay);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.nmf-fashion-gallery__item:hover .nmf-fashion-gallery__hover,
.nmf-fashion-gallery__item:focus-visible .nmf-fashion-gallery__hover {
    opacity: 1;
}

.nmf-fashion-gallery__item:hover .nmf-fashion-gallery__image,
.nmf-fashion-gallery__item:focus-visible .nmf-fashion-gallery__image {
    transform: scale(1.03);
}

.nmf-fashion-gallery__caption {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: block;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.nmf-fashion-gallery__item:hover .nmf-fashion-gallery__caption,
.nmf-fashion-gallery__item:focus-visible .nmf-fashion-gallery__caption {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.nmf-fashion-gallery[data-layout="editorial"] .nmf-fashion-gallery__item:nth-child(8n + 1) {
    grid-column: span 2;
    grid-row: span 3;
}

.nmf-fashion-gallery[data-layout="editorial"] .nmf-fashion-gallery__item:nth-child(8n + 2) {
    grid-column: span 1;
    grid-row: span 2;
}

.nmf-fashion-gallery[data-layout="editorial"] .nmf-fashion-gallery__item:nth-child(8n + 3) {
    grid-column: span 1;
    grid-row: span 1;
}

.nmf-fashion-gallery[data-layout="editorial"] .nmf-fashion-gallery__item:nth-child(8n + 4) {
    grid-column: span 2;
    grid-row: span 2;
}

.nmf-fashion-gallery[data-layout="editorial"] .nmf-fashion-gallery__item:nth-child(8n + 5) {
    grid-column: span 1;
    grid-row: span 2;
}

.nmf-fashion-gallery[data-layout="editorial"] .nmf-fashion-gallery__item:nth-child(8n + 6) {
    grid-column: span 1;
    grid-row: span 2;
}

.nmf-fashion-gallery[data-layout="editorial"] .nmf-fashion-gallery__item:nth-child(8n + 7) {
    grid-column: span 2;
    grid-row: span 2;
}

.nmf-fashion-gallery[data-layout="editorial"] .nmf-fashion-gallery__item:nth-child(8n + 8) {
    grid-column: span 1;
    grid-row: span 1;
}

.nmf-fashion-gallery[data-layout="runway"] .nmf-fashion-gallery__item:nth-child(6n + 1),
.nmf-fashion-gallery[data-layout="runway"] .nmf-fashion-gallery__item:nth-child(6n + 6) {
    grid-column: span 2;
    grid-row: span 3;
}

.nmf-fashion-gallery[data-layout="runway"] .nmf-fashion-gallery__item:nth-child(6n + 2),
.nmf-fashion-gallery[data-layout="runway"] .nmf-fashion-gallery__item:nth-child(6n + 3),
.nmf-fashion-gallery[data-layout="runway"] .nmf-fashion-gallery__item:nth-child(6n + 4),
.nmf-fashion-gallery[data-layout="runway"] .nmf-fashion-gallery__item:nth-child(6n + 5) {
    grid-column: span 1;
    grid-row: span 2;
}

.nmf-fashion-gallery[data-layout="mosaic"] .nmf-fashion-gallery__item:nth-child(10n + 1),
.nmf-fashion-gallery[data-layout="mosaic"] .nmf-fashion-gallery__item:nth-child(10n + 6) {
    grid-column: span 2;
    grid-row: span 2;
}

.nmf-fashion-gallery[data-layout="mosaic"] .nmf-fashion-gallery__item:nth-child(10n + 2),
.nmf-fashion-gallery[data-layout="mosaic"] .nmf-fashion-gallery__item:nth-child(10n + 3),
.nmf-fashion-gallery[data-layout="mosaic"] .nmf-fashion-gallery__item:nth-child(10n + 4),
.nmf-fashion-gallery[data-layout="mosaic"] .nmf-fashion-gallery__item:nth-child(10n + 5),
.nmf-fashion-gallery[data-layout="mosaic"] .nmf-fashion-gallery__item:nth-child(10n + 7),
.nmf-fashion-gallery[data-layout="mosaic"] .nmf-fashion-gallery__item:nth-child(10n + 8),
.nmf-fashion-gallery[data-layout="mosaic"] .nmf-fashion-gallery__item:nth-child(10n + 9),
.nmf-fashion-gallery[data-layout="mosaic"] .nmf-fashion-gallery__item:nth-child(10n + 10) {
    grid-column: span 1;
    grid-row: span 2;
}


.nmf-fashion-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: none !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    isolation: isolate !important;
}

.nmf-fashion-lightbox *,
.nmf-fashion-lightbox *::before,
.nmf-fashion-lightbox *::after {
    box-sizing: border-box !important;
}

.nmf-fashion-lightbox.is-open {
    display: block !important;
}

.nmf-fashion-lightbox__backdrop {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(10, 9, 9, 0.86) !important;
    border: 0 !important;
}

.nmf-fashion-lightbox__viewport {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: clamp(28px, 5vw, 68px) !important;
    margin: 0 !important;
    pointer-events: none !important;
}

.nmf-fashion-lightbox__panel {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(86vw, 1180px) !important;
    height: auto !important;
    max-width: 1180px !important;
    max-height: calc(100vh - 110px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    pointer-events: auto !important;
    transform: none !important;
}

.nmf-fashion-lightbox__glow {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    z-index: 1 !important;
    width: min(66vw, 760px) !important;
    height: min(66vw, 760px) !important;
    transform: translate3d(-50%, -50%, 0) !important;
    border-radius: 999px !important;
    background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.13) 30%, rgba(255,255,255,0.04) 58%, rgba(255,255,255,0) 76%) !important;
    filter: blur(22px) !important;
    pointer-events: none !important;
}

.nmf-fashion-lightbox__figure {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.nmf-fashion-lightbox__image {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(84vw, 1080px) !important;
    max-height: calc(100vh - 155px) !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.nmf-fashion-lightbox__caption,
.nmf-fashion-lightbox__counter {
    position: relative !important;
    z-index: 4 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: rgba(255,255,255,0.88) !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    font-family: inherit !important;
}

.nmf-fashion-lightbox__counter {
    position: fixed !important;
    top: 18px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    min-width: 56px !important;
    padding: 8px 14px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nmf-fashion-lightbox__close,
.nmf-fashion-lightbox__nav {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: fixed !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    cursor: pointer !important;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease !important;
}

.nmf-fashion-lightbox__close::before,
.nmf-fashion-lightbox__close::after,
.nmf-fashion-lightbox__nav::before,
.nmf-fashion-lightbox__nav::after {
    content: none !important;
    display: none !important;
}

.nmf-fashion-lightbox__close:hover,
.nmf-fashion-lightbox__close:focus-visible,
.nmf-fashion-lightbox__nav:hover,
.nmf-fashion-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
    outline: none !important;
}

.nmf-fashion-lightbox__close {
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    font-size: 25px !important;
}

.nmf-fashion-lightbox__close:hover,
.nmf-fashion-lightbox__close:focus-visible {
    transform: translateY(-1px) !important;
}

.nmf-fashion-lightbox__nav--prev {
    left: 18px !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

.nmf-fashion-lightbox__nav--next {
    right: 18px !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

.nmf-fashion-lightbox__nav--prev:hover,
.nmf-fashion-lightbox__nav--prev:focus-visible,
.nmf-fashion-lightbox__nav--next:hover,
.nmf-fashion-lightbox__nav--next:focus-visible {
    transform: translateY(calc(-50% - 1px)) !important;
}

.nmf-fashion-lightbox.nmf-fashion-lightbox--single .nmf-fashion-lightbox__nav {
    display: none !important;
}

body.nmf-fashion-lightbox-open {
    overflow: hidden !important;
}

@media (max-width: 1024px) {
    .nmf-fashion-gallery[data-layout] .nmf-fashion-gallery__item {
        min-height: calc(var(--nmf-fashion-gallery-row) * 2);
    }

    .nmf-fashion-gallery[data-layout="editorial"] .nmf-fashion-gallery__item:nth-child(8n + 1),
    .nmf-fashion-gallery[data-layout="editorial"] .nmf-fashion-gallery__item:nth-child(8n + 4),
    .nmf-fashion-gallery[data-layout="editorial"] .nmf-fashion-gallery__item:nth-child(8n + 7),
    .nmf-fashion-gallery[data-layout="runway"] .nmf-fashion-gallery__item:nth-child(6n + 1),
    .nmf-fashion-gallery[data-layout="runway"] .nmf-fashion-gallery__item:nth-child(6n + 6),
    .nmf-fashion-gallery[data-layout="mosaic"] .nmf-fashion-gallery__item:nth-child(10n + 1),
    .nmf-fashion-gallery[data-layout="mosaic"] .nmf-fashion-gallery__item:nth-child(10n + 6) {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 767px) {
    .nmf-fashion-gallery__item {
        min-height: calc(var(--nmf-fashion-gallery-row) * 1.8);
    }

    .nmf-fashion-gallery[data-layout] .nmf-fashion-gallery__item {
        grid-column: span 1 !important;
        grid-row: span 2 !important;
    }

    .nmf-fashion-gallery[data-layout] .nmf-fashion-gallery__item:nth-child(5n + 1) {
        grid-column: span 2 !important;
    }

    .nmf-fashion-lightbox__viewport {
        padding: 28px 16px;
    }

    .nmf-fashion-lightbox__panel {
        width: min(92vw, 1080px);
        max-height: calc(100vh - 56px);
    }

    .nmf-fashion-lightbox__image {
        max-width: 90vw;
        max-height: calc(100vh - 145px);
    }

    .nmf-fashion-lightbox__close,
    .nmf-fashion-lightbox__nav {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }

    .nmf-fashion-lightbox__close {
        top: 10px !important;
        right: 10px !important;
    }

    .nmf-fashion-lightbox__nav--prev {
        left: 10px !important;
    }

    .nmf-fashion-lightbox__nav--next {
        right: 10px !important;
    }
}
