/* Jednolity lightbox: blog + atrakcje (vanilla) — styl „kartowy”, złoto jak w witrynie */
.mm-pub-lb {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    box-sizing: border-box;
}

.mm-pub-lb[hidden] {
    display: none !important;
}

.mm-pub-lb__backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(28, 24, 18, 0.55) 0%, rgba(8, 6, 4, 0.92) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mm-pub-lb__stage {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1180px);
    max-height: min(90vh, 920px);
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    /* Klik w „pustkę” wokół karty ma trafiać w backdrop (zamykanie), a nie w pełnej szerokości stage */
    pointer-events: none;
}

.mm-pub-lb__img-wrap {
    position: relative;
    pointer-events: auto;
    max-width: 100%;
    max-height: min(80vh, 840px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(40, 36, 30, 0.65) 0%, rgba(18, 16, 14, 0.9) 100%);
    box-shadow:
        0 8px 0 rgba(201, 165, 74, 0.12),
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 248, 235, 0.14) inset,
        0 0 48px rgba(201, 165, 74, 0.08);
}

.mm-pub-lb__img {
    display: block;
    max-width: 100%;
    max-height: min(80vh, 840px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.mm-pub-lb__caption {
    pointer-events: none;
    margin: 0;
    max-width: 40rem;
    text-align: center;
    color: #faf6ec;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
    padding: 0 0.5rem;
}

.mm-pub-lb__caption:not([hidden])::before {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    margin: 0 auto 0.65rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(201, 165, 74, 0.85), rgba(240, 216, 160, 0.95), rgba(201, 165, 74, 0.85), transparent);
}

.mm-pub-lb__counter {
    pointer-events: none;
    margin: 0;
    color: rgba(232, 201, 106, 0.95);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mm-pub-lb__btn {
    position: absolute;
    z-index: 6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(160deg, rgba(255, 253, 248, 0.98) 0%, rgba(232, 207, 150, 0.55) 45%, rgba(201, 165, 74, 0.35) 100%);
    color: #3d3010;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.75) inset,
        0 6px 22px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mm-pub-lb__btn:hover,
.mm-pub-lb__btn:focus-visible {
    transform: scale(1.06);
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.85) inset,
        0 8px 28px rgba(168, 131, 42, 0.5);
    outline: 2px solid rgba(201, 165, 74, 0.7);
    outline-offset: 2px;
}

.mm-pub-lb__close {
    top: 10px;
    right: 10px;
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 700;
}

.mm-pub-lb__prev,
.mm-pub-lb__next {
    top: 50%;
    transform: translateY(-50%);
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.4rem;
    line-height: 1;
}

.mm-pub-lb__prev {
    left: 10px;
}

.mm-pub-lb__next {
    right: 10px;
}

.mm-pub-lb__prev:hover,
.mm-pub-lb__prev:focus-visible,
.mm-pub-lb__next:hover,
.mm-pub-lb__next:focus-visible {
    transform: translateY(-50%) scale(1.06);
}

/* Serduszko — ten sam charakter co na miniaturach (mm_site_engagement), pozycja w rogu zdjęcia */
.mm-pub-lb__img-wrap .mm-insp-pill.mm-pub-lb__inspire {
    position: absolute;
    left: auto;
    top: auto;
    right: 12px;
    bottom: 12px;
    transform: none;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px 4px 8px;
    font-size: 12px;
    line-height: 1.35;
    border: 0;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.mm-pub-lb__img-wrap .mm-insp-pill.mm-pub-lb__inspire:hover,
.mm-pub-lb__img-wrap .mm-insp-pill.mm-pub-lb__inspire:focus-visible {
    transform: scale(1.03);
    background: rgba(30, 28, 24, 0.78);
    outline: 2px solid rgba(232, 201, 106, 0.55);
    outline-offset: 2px;
}

.mm-pub-lb__img-wrap .mm-insp-pill.mm-pub-lb__inspire.mm-insp-pill--on {
    background: rgba(180, 48, 68, 0.88);
}

.mm-pub-lb__img-wrap .mm-insp-pill__cnt {
    font-weight: 700;
    min-width: 1ch;
}

.mm-pub-lb__img-wrap .mm-insp-pill__label {
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .mm-pub-lb__prev {
        left: 6px;
    }

    .mm-pub-lb__next {
        right: 6px;
    }

    .mm-pub-lb__close {
        top: 6px;
        right: 6px;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.35rem;
    }

    .mm-pub-lb__img-wrap .mm-insp-pill.mm-pub-lb__inspire {
        right: 8px;
        bottom: 8px;
        font-size: 10px;
        padding: 3px 8px 3px 6px;
        gap: 4px;
    }

    .mm-pub-lb__img-wrap .mm-insp-pill__label {
        max-width: 7.5rem;
        white-space: normal;
        line-height: 1.2;
        text-align: start;
    }
}

html.mm-pub-lb-open,
html.mm-pub-lb-open body {
    overflow: hidden !important;
}

/* Bootstrap ~1055; .mm-pub-lb ma 100060 — bez tego modal logowania jest POD zdjęciem */
html.mm-pub-lb-open .modal-backdrop {
    z-index: 100065 !important;
}

html.mm-pub-lb-open #mmLoginModal,
html.mm-pub-lb-open #mmSearchModal {
    z-index: 100066 !important;
}
