/**
 * MTIC Theme - Poster Lightbox.
 */

body.mtic-poster-lightbox-open {
    overflow: hidden;
}

.mtic-poster-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mtic-poster-lightbox[hidden] {
    display: none;
}

.mtic-poster-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 47, 60, 0.88);
    cursor: pointer;
}

.mtic-poster-lightbox__chrome {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    pointer-events: none;
}

.mtic-poster-lightbox__counter,
.mtic-poster-lightbox__close {
    pointer-events: auto;
}

.mtic-poster-lightbox__counter {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.mtic-poster-lightbox__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
    transition: opacity 0.2s ease;
}

.mtic-poster-lightbox__close:hover {
    opacity: 0.75;
}

.mtic-poster-lightbox__stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(520px, 78vw);
    max-height: min(85vh, 900px);
    margin: 0 4.5rem;
}

.mtic-poster-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: min(85vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.mtic-poster-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--mtic-white);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mtic-poster-lightbox__nav:hover {
    opacity: 0.75;
}

.mtic-poster-lightbox__nav--prev {
    left: 1.25rem;
}

.mtic-poster-lightbox__nav--next {
    right: 1.25rem;
}
