/* Video Modal Styles */
.video-modal-wrapper {
    display: block;
    text-align: center;
    margin: 20px auto;
}

.video-modal-trigger {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.video-modal-trigger:hover {
    opacity: 0.8;
}

.video-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2147483647 !important;
    justify-content: center;
    align-items: center;
}

.video-modal-overlay.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

.video-modal-player {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.video-modal-close:hover {
    color: #ff0000;
}

/* Responsive styles */
@media (max-width: 768px) {
    .video-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .video-modal-close {
        font-size: 30px;
        top: -35px;
    }
}
