/**
 * Kwik Trip Carousel — Lightbox styles
 * @package KwikTripCarousel
 */

/* Dialog reset */
.kt-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    z-index: 99999;
    overflow: hidden;
}

.kt-lightbox::backdrop {
    background: transparent;
}

/* Semi-transparent overlay */
.kt-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

/* Main container — centers image with nav on sides */
.kt-lightbox__container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.kt-lightbox__container > * {
    pointer-events: auto;
}

/* Close button */
.kt-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.kt-lightbox__close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Prev / Next buttons */
.kt-lightbox__prev,
.kt-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.kt-lightbox__prev { left: 16px; }
.kt-lightbox__next { right: 16px; }
.kt-lightbox__prev:hover,
.kt-lightbox__next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Image wrapper */
.kt-lightbox__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 80vh;
    padding: 0 64px;
}

.kt-lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    user-select: none;
}

/* Footer: caption + link */
.kt-lightbox__footer {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 80vw;
    text-align: center;
}

.kt-lightbox__caption {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.kt-lightbox__link {
    display: inline-block;
    padding: 6px 20px;
    background: #c8102e;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.kt-lightbox__link:hover {
    background: #a00d24;
    color: #fff;
}

/* Counter (e.g. "3 / 10") */
.kt-lightbox__counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Responsive: smaller screens get full-width image */
@media (max-width: 640px) {
    .kt-lightbox__image-wrap {
        padding: 0 16px;
        max-width: 100vw;
    }
    .kt-lightbox__prev { left: 4px; width: 36px; height: 36px; }
    .kt-lightbox__next { right: 4px; width: 36px; height: 36px; }
    .kt-lightbox__close { top: 8px; right: 8px; width: 36px; height: 36px; }
    .kt-lightbox__footer { bottom: 12px; max-width: 90vw; }
}
