body.rebel-lightbox-open {
    overflow: hidden;
}

.rebel-lightbox[hidden] {
    display: none !important;
}

.rebel-lightbox {
    align-items: center;
    background: rgba(8, 8, 10, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 3.5rem 5rem 2.5rem;
    position: fixed;
    z-index: 100000;
}

.rebel-lightbox__stage {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 100%;
    max-width: min(94rem, 100%);
    min-height: 0;
    min-width: 0;
    position: relative;
}

.rebel-lightbox__image {
    background: #151518;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
    display: block;
    height: auto;
    max-height: calc(100vh - 9.5rem);
    max-width: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 140ms ease;
    width: auto;
}

.rebel-lightbox.is-loading .rebel-lightbox__image {
    opacity: 0.3;
}

.rebel-lightbox__caption {
    color: #c7c7ce;
    font-family: "Muli", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.7rem auto 0;
    max-width: 54rem;
    min-height: 1.35rem;
    text-align: center;
}

.rebel-lightbox__count {
    color: #a2a2ab;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    left: 1.25rem;
    letter-spacing: 0.08em;
    position: absolute;
    text-transform: uppercase;
    top: 1.2rem;
}

.rebel-lightbox__button {
    align-items: center;
    appearance: none;
    background: rgba(29, 29, 33, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 7px;
    color: #e8e8ec;
    cursor: pointer;
    display: inline-flex;
    font-family: system-ui, sans-serif;
    height: 2.75rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
    width: 2.75rem;
}

.rebel-lightbox__button[hidden] {
    display: none !important;
}

.rebel-lightbox__button:hover,
.rebel-lightbox__button:focus-visible {
    background: #29292f;
    border-color: rgba(205, 54, 54, 0.72);
    color: #fff;
    outline: none;
}

.rebel-lightbox__button:focus-visible {
    box-shadow: 0 0 0 3px rgba(205, 54, 54, 0.24);
}

.rebel-lightbox__close {
    font-size: 1.75rem;
    right: 1.1rem;
    top: 1rem;
}

.rebel-lightbox__previous,
.rebel-lightbox__next {
    font-size: 1.7rem;
    top: 50%;
    transform: translateY(-50%);
}

.rebel-lightbox__previous:hover,
.rebel-lightbox__previous:focus-visible,
.rebel-lightbox__next:hover,
.rebel-lightbox__next:focus-visible {
    transform: translateY(-50%) scale(1.04);
}

.rebel-lightbox__previous {
    left: 1.1rem;
}

.rebel-lightbox__next {
    right: 1.1rem;
}

.entry-content a[data-rebel-lightbox] img {
    cursor: zoom-in;
}

@media (max-width: 767px) {
    .rebel-lightbox {
        padding: 4.2rem 0.75rem 4rem;
    }

    .rebel-lightbox__image {
        max-height: calc(100vh - 10.5rem);
    }

    .rebel-lightbox__close {
        right: 0.75rem;
        top: 0.7rem;
    }

    .rebel-lightbox__count {
        left: 0.85rem;
        top: 1rem;
    }

    .rebel-lightbox__previous,
    .rebel-lightbox__next {
        bottom: 0.75rem;
        top: auto;
        transform: none;
    }

    .rebel-lightbox__previous:hover,
    .rebel-lightbox__previous:focus-visible,
    .rebel-lightbox__next:hover,
    .rebel-lightbox__next:focus-visible {
        transform: scale(1.04);
    }

    .rebel-lightbox__previous {
        left: calc(50% - 3.2rem);
    }

    .rebel-lightbox__next {
        right: calc(50% - 3.2rem);
    }

    .rebel-lightbox__caption {
        font-size: 0.82rem;
        margin-top: 0.55rem;
        max-width: calc(100vw - 2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rebel-lightbox__image,
    .rebel-lightbox__button {
        transition: none;
    }
}
