/* Gallery Page Styles */

/* Gallery Hero Banner - Plain image, no overlay */
.gallery-hero-banner {
    width: 100%;
    overflow: hidden;
}

.gallery-hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery Section */
.gallery-section {
    padding: 3rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.gallery-section:last-of-type {
    border-bottom: none;
}

/* Section Header - Two-line style */
.gallery-section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.gallery-section-label {
    font-size: 0.9rem;
    color: #1E3C72;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.gallery-section-title {
    font-size: 1.75rem;
    color: #1E3C72;
    font-weight: 600;
    margin: 0;
}

.gallery-section-desc {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

/* Gallery Carousel */
.gallery-carousel {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 1rem;
}

/* Main Image Container */
.gallery-main-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

/* Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
    fill: #1E3C72;
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

/* Thumbnail Navigation */
.gallery-thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 5px 15px;
}


.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #1E3C72;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-nav svg {
        width: 20px;
        height: 20px;
    }

    .gallery-thumb {
        width: 70px;
        height: 52px;
    }
}

@media (max-width: 768px) {
    .gallery-section-title {
        font-size: 1.4rem;
    }

    .gallery-section-label {
        font-size: 0.8rem;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
    }

    .gallery-nav svg {
        width: 18px;
        height: 18px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-thumb {
        width: 60px;
        height: 45px;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 2rem 0;
    }

    .gallery-nav {
        width: 32px;
        height: 32px;
    }

    .gallery-nav svg {
        width: 16px;
        height: 16px;
    }

    .gallery-thumb {
        width: 50px;
        height: 38px;
    }

    .cta-section {
        padding: 3rem 0;
    }
}

/* Video Gallery Styles */
.gallery-header {
    padding: 3rem 0 2rem;
    text-align: center;
}

.gallery-header h1 {
    color: #1E3C72;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-header p {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
}

.video-gallery-section {
    padding: 4rem 0;
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.video-card .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-card .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card-content {
    padding: 1.25rem;
    background: #fff;
}

.video-card-content h4 {
    color: #1E3C72;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Video Gallery */
@media (max-width: 1024px) {
    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .gallery-header h1 {
        font-size: 2rem;
    }

    .video-card-content h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .video-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-header {
        padding: 2rem 0 1.5rem;
    }

    .gallery-header h1 {
        font-size: 1.75rem;
    }

    .gallery-header p {
        font-size: 1rem;
    }

    .video-gallery-section {
        padding: 3rem 0;
    }

    .video-card-content {
        padding: 1rem;
    }

    .video-card-content h4 {
        font-size: 0.85rem;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .gallery-header h1 {
        font-size: 1.5rem;
    }

    .video-gallery-section {
        padding: 2rem 0;
    }

    .video-card-content h4 {
        font-size: 0.8rem;
        min-height: auto;
    }
}
