/* Picture carousel lightbox widget */

.carouselLightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 600;
    align-items: center;
    justify-content: center;
}

.carouselLightbox--open {
    display: flex;
}

.carouselLightbox__img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.carouselLightbox__close {
    position: fixed;
    top: 14px;
    right: 18px;
    color: white;
    font-size: 2.2em;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 4px 8px;
}

.carouselLightbox__close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.carouselLightbox__btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: rgba(255, 255, 255, 0.12);
    font-size: 2.5em;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

.carouselLightbox__btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.carouselLightbox__btn--prev {
    left: 8px;
}

.carouselLightbox__btn--next {
    right: 8px;
}

/* Clickable hint on body images */
.carouselThumb {
    cursor: pointer;
}

.carouselThumb:hover {
    opacity: 0.88;
}
