/* Gallery Styles */
.gallery-section {
    padding: 60px 0;
    background: #F5F5F5;
    min-height: 80vh;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 15px;
}

.gallery-header p {
    font-size: 18px;
    color: #666;
}

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 15px 40px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    background: #FFFFFF;
    color: #2C2C2C;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    border-color: #5DADE2;
    color: #5DADE2;
}

.tab-btn.active {
    background: linear-gradient(135deg, #FFA726 0%, #FB8C00 100%);
    color: #FFFFFF;
    border-color: #FFA726;
}

.tab-btn i {
    font-size: 20px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Photo Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 16px;
    color: #E0E0E0;
    margin: 0;
}

/* Video Gallery Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.video-item {
    background: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 167, 38, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.video-item:hover .play-button {
    background: rgba(255, 167, 38, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
    font-size: 30px;
    color: #FFFFFF;
    margin-left: 5px;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 8px;
}

.video-info p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Image Lightbox Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
    overflow: auto;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    animation: zoomIn 0.3s;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #FFFFFF;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.image-modal-close:hover {
    color: #FFA726;
    background: rgba(255, 255, 255, 0.2);
}

.image-modal-title {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: #FFFFFF;
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 600;
    padding: 10px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Video Modal Styles (if not already defined) */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
    overflow: auto;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    animation: zoomIn 0.3s;
}

.video-modal-content iframe {
    width: 800px;
    height: 450px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #FFFFFF;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.video-modal-close:hover {
    color: #FFA726;
    background: rgba(255, 255, 255, 0.2);
}

.video-modal-content h2 {
    color: #FFFFFF;
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* Loading and Error States */
.loading-gallery,
.no-gallery,
.error-gallery {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-gallery i,
.no-gallery i,
.error-gallery i {
    font-size: 48px;
    color: #5DADE2;
    margin-bottom: 20px;
}

.loading-gallery h3,
.no-gallery h3,
.error-gallery h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1E3A5F;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 36px;
    }

    .gallery-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        justify-content: center;
    }

    .gallery-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .image-modal-content {
        max-width: 95%;
    }

    .image-modal-close {
        top: -50px;
        font-size: 30px;
    }

    .image-modal-title {
        font-size: 18px;
        bottom: -40px;
    }

    .video-modal-content iframe {
        width: 100%;
        height: 250px;
    }
}
