/**
 * Global Media Lightbox Styles
 * Styles for image gallery and video lightboxes
 */

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox-content {
    position: relative;
    width: 80vw;
    height: 80vh;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.lightbox-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.lightbox-slide.active {
    display: block;
}

.lightbox-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 80vh;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 10;
}

.lightbox-video {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.lightbox-video iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    max-height: 85vh;
}

/* Media Icons */
.media-gallery-btn,
.media-video-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.media-gallery-btn:hover {
    transform: scale(1.05);
}

.media-video-btn:hover {
    transform: scale(1.05);
}

.media-gallery-btn svg,
.media-video-btn svg {
    width: 36px;
    height: 36px;
}

/* Tooltips */
.media-gallery-btn::after,
.media-video-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    margin-bottom: 5px;
}

.media-gallery-btn:hover::after,
.media-video-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .lightbox-content {
        width: 90vw;
        height: 90vh;
    }
    
    .lightbox-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .lightbox-video iframe {
        min-height: 400px;
    }
    
    .media-gallery-btn,
    .media-video-btn {
        width: 28px;
        height: 28px;
    }
    
    .media-gallery-btn svg,
    .media-video-btn svg {
        width: 24px;
        height: 24px;
    }
} 