[data-lightbox],
[data-lightbox-container] img {
    cursor: zoom-in;
}

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

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 10, 6, 0.85);
}

.image-lightbox__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 72rem);
    max-height: calc(100vh - 2rem);
}

.image-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 4rem);
    object-fit: contain;
    border-radius: 0.375rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    user-select: none;
}

.image-lightbox__close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.image-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.image-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.image-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.image-lightbox__nav--prev {
    left: -3.5rem;
}

.image-lightbox__nav--next {
    right: -3.5rem;
}

.image-lightbox__nav[hidden] {
    display: none !important;
}

.image-lightbox__counter {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .image-lightbox__nav--prev {
        left: 0.25rem;
    }

    .image-lightbox__nav--next {
        right: 0.25rem;
    }

    .image-lightbox__close {
        top: 0.25rem;
        right: 0.25rem;
        background: rgba(0, 0, 0, 0.45);
    }
}
