/* CCE Cabin Event Gallery Lightbox Styles */

.cce-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.95);
    opacity: 0;
    transition: opacity 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
}

.cce-lightbox-modal.is-active {
    display: flex;
    opacity: 1;
}

/* Lightbox Themes */
.cce-lightbox-modal.theme-black {
    background: rgba(0, 0, 0, 0.98);
}

.cce-lightbox-modal.theme-glass {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Container */
.cce-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px 40px 40px;
    box-sizing: border-box;
}

/* Top Toolbar */
.cce-lightbox-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.cce-lightbox-counter {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cce-lightbox-close {
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.cce-lightbox-close:hover {
    background: rgba(220, 38, 38, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.1) !important;
}

.cce-lightbox-close svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 2.5 !important;
    stroke-linecap: round !important;
}

.cce-lightbox-close svg line {
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
}

/* Content Area */
.cce-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cce-lightbox-image {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.cce-lightbox-video-wrapper {
    position: relative;
    width: 80vw;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.cce-lightbox-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cce-lightbox-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Anti-Download Shield for Images */
.cce-lightbox-shield {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: transparent;
}

/* Navigation Buttons */
.cce-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.88) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 100 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
    padding: 0 !important;
}

.cce-lightbox-nav:hover {
    background: rgba(56, 81, 39, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.cce-lightbox-nav svg {
    display: block !important;
    width: 26px !important;
    height: 26px !important;
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 3 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

.cce-lightbox-nav svg polyline {
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 3 !important;
}

.cce-lightbox-prev {
    left: 20px;
}

.cce-lightbox-next {
    right: 20px;
}

/* Bottom Caption */
.cce-lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    text-align: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    pointer-events: none;
    min-height: 48px;
}

@media (max-width: 768px) {
    .cce-lightbox-nav {
        width: 40px;
        height: 40px;
    }
    .cce-lightbox-prev {
        left: 8px;
    }
    .cce-lightbox-next {
        right: 8px;
    }
    .cce-lightbox-container {
        padding: 50px 10px 30px 10px;
    }
    .cce-lightbox-video-wrapper {
        width: 95vw;
    }
}
