/* Media Viewer Modal Styles */
.media-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-viewer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.media-viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-viewer-close {
    position: fixed;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.media-viewer-close:hover {
    background: rgba(255, 88, 93, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(255, 88, 93, 0.4);
}

.media-viewer-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-viewer-image,
.media-viewer-video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .media-viewer-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .media-viewer-close {
        top: -35px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
    
    .media-viewer-image,
    .media-viewer-video {
        max-height: 85vh;
    }
}

/* Single Media Container Styles */
.single-media-container {
    width: 100%;
    display: block;
}

.single-media-item {
    width: 100%;
    display: block;
    position: relative;
}

.single-media-image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}

.single-media-image:hover {
    transform: scale(1.02);
}

.single-media-item .video-play-overlay {
    pointer-events: auto;
}

/* Media viewer trigger styles */
.media-viewer-trigger {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.media-viewer-trigger:hover {
    opacity: 0.9;
}
