.gallery-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.title-divider {
    width: 100px;
    height: 3px;
    background-color: #D4AF37;
}

.filter-buttons .btn-group {
    gap: 10px;
}

.filter-buttons .btn-outline-warning {
    border-color: #D4AF37;
    color: #8B0000;
}

.filter-buttons .btn-outline-warning:hover,
.filter-buttons .btn-outline-warning.active {
    background-color: #D4AF37;
    color: #8B0000;
    border-color: #D4AF37;
}

.gallery-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.2) !important;
}

.gallery-img-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    padding: 20px;
}

.gallery-caption {
    border-top: 3px solid #D4AF37;
}

.stats-section .stat-box {
    transition: transform 0.3s ease;
}

.stats-section .stat-box:hover {
    transform: translateY(-5px);
}

.video-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.2);
}

.video-thumbnail {
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.upload-section {
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.upload-section:hover {
    transform: translateY(-5px);
}

/* Modal styling */
.modal-content {
    border: 3px solid #D4AF37;
}

/* Gallery filter animation */
.gallery-item {
    animation: fadeIn 0.5s ease;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-buttons .btn-group {
        justify-content: center;
    }
    
    .filter-buttons .btn {
        margin-bottom: 5px;
        font-size: 0.9rem;
    }
    
    .gallery-img-container {
        height: 200px;
    }
    
    .video-thumbnail {
        height: 150px;
    }
}

/* Grid layout for gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}