/* Video Gallery Specific Styles */
.video-gallery {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.video-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    height: 280px !important;
    min-height: 220px;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100% !important;
    min-height: 100% !important;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    transition: background 0.3s ease;
}

.video-item:hover .video-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(197, 164, 119, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.play-button i {
    font-size: 24px;
    color: white;
    margin-left: 3px;
}

.video-item:hover .play-button {
    background: rgba(197, 164, 119, 1);
    transform: scale(1.1);
}

.video-overlay h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Video Modal */
.video-modal {
    display: none !important;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.video-modal.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.video-modal-content {
    position: relative;
    width: 95%;
    height: 95%;
    margin: auto;
    animation: zoomIn 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-title {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.video-player {
    width: 100%;
    height: 80vh;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.video-close:hover {
    color: #c5a477;
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .video-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }
    
    .video-item {
        height: 250px;
    }
    
    .video-modal-content {
        width: 98%;
        height: 98%;
    }
    
    .video-player {
        height: 75vh;
    }
}

@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .video-item {
        height: 220px;
    }
    
    .video-thumbnail {
        height: 100%;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button i {
        font-size: 20px;
    }
    
    .video-overlay h3 {
        font-size: 1rem;
    }
    
    .video-modal-content {
        width: 100%;
        height: 100%;
        padding: 10px;
    }
    
    .video-player {
        height: 70vh;
    }
}

@media (max-width: 480px) {
    .video-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .video-item {
        height: 200px;
    }
    
    .video-thumbnail {
        height: 100%;
    }
    
    .play-button {
        width: 45px;
        height: 45px;
    }
    
    .play-button i {
        font-size: 18px;
    }
    
    .video-overlay h3 {
        font-size: 0.9rem;
    }
    
    .video-modal-content {
        width: 100%;
        height: 100%;
        padding: 5px;
    }
    
    .video-player {
        height: 65vh;
    }
}
