/* Gallery Page Specific Styles */

/* Hero Section */
.gallery-hero {
    min-height: 50vh;
    width: 100%;
    background-image: url('images/second.png'); /* Using an existing image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 50px 0;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.gallery-hero .content-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Main Gallery Content */
.gallery-content {
    padding: 80px 30px;
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(135deg, 
                #4b2510 0%,    /* Dark brown */
                #8B4513 30%,   /* Medium brown */
                #e8e2d6 70%,   /* Off-white/cream */
                #ffffff 100%); /* Pure white */
    background-attachment: fixed;
}

.gallery-content section {
    max-width: 1200px;
    margin: 0 auto 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.gallery-content h3 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'EB Garamond', serif;
    color: #333;
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
    padding-bottom: 15px;
}

/* Gallery Grid Layout */
.gallery-grid {
    display: grid;
    gap: 25px;
}

.photos {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.videos {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Video Items */
.video-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.gallery-video {
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
    display: block;
    aspect-ratio: 16/9;
}

.video-item h4 {
    font-size: 1.2rem;
    padding: 15px;
    margin: 0;
    font-family: 'EB Garamond', serif;
    color: #333;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Featured Section */
.featured-section {
    text-align: center;
}

.featured-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.featured-item {
    max-width: 700px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.featured-item h4 {
    font-size: 1.5rem;
    margin: 15px 0 10px;
    font-family: 'EB Garamond', serif;
    color: #333;
}

.featured-item p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: 'EB Garamond', serif;
    color: #555;
}

.featured-item iframe {
    max-width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
}

/* YouTube Logo Container */
.youtube-link {
    text-decoration: none;
    display: block;
}

.youtube-logo-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.youtube-logo-container:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.youtube-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.youtube-play-icon {
    position: absolute;
    font-size: 4rem;
    color: #FF0000;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.youtube-logo-container:hover .youtube-play-icon {
    transform: scale(1.2);
    opacity: 1;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.6s;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

@keyframes zoom {
    from {transform: scale(0); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .gallery-hero {
        min-height: 40vh;
    }
    
    .gallery-content {
        padding: 60px 20px;
    }
    
    .gallery-content section {
        padding: 25px;
    }
    
    .gallery-grid {
        gap: 20px;
    }
    
    .videos {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .youtube-logo-container {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        background-attachment: scroll;
    }
    
    .gallery-content {
        padding: 40px 15px;
    }
    
    .gallery-content h3 {
        font-size: 2.2rem;
    }
    
    .gallery-content section {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    .videos {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .featured-item h4 {
        font-size: 1.3rem;
    }
    
    .featured-item p {
        font-size: 1rem;
    }
    
    .youtube-play-icon {
        font-size: 3.5rem;
    }
}

@media (max-width: 576px) {
    .gallery-content {
        padding: 30px 10px;
    }
    
    .gallery-content section {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .gallery-content h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .gallery-grid {
        gap: 15px;
    }
    
    .photos {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .videos {
        grid-template-columns: 1fr;
    }
    
    .gallery-img {
        height: 180px;
    }
    
    .video-item h4 {
        font-size: 1.1rem;
        padding: 10px;
    }
    
    .featured-item {
        padding: 15px;
    }
    
    .featured-item h4 {
        font-size: 1.2rem;
        margin: 10px 0 5px;
    }
    
    .featured-item p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .youtube-logo-container {
        max-width: 200px;
        padding: 20px;
    }
    
    .youtube-play-icon {
        font-size: 3rem;
    }
}

@media (max-width: 380px) {
    .gallery-content h3 {
        font-size: 1.6rem;
    }
    
    .photos {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .gallery-img {
        height: 150px;
    }
    
    .video-item h4 {
        font-size: 1rem;
    }
    
    .youtube-logo-container {
        padding: 15px;
    }
    
    .youtube-play-icon {
        font-size: 2.5rem;
    }
}