/* Gallery Section Styles */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600&display=swap');

/* Font Faces (from original CSS) */
@font-face {
  font-family: 'adieu';
  src: url('../fonts/adieu.otf') format('opentype'),
    url('../fonts/methn.woff') format('woff'),
    url('../fonts/methn.ttf') format('ttf');
}

@font-face {
  font-family: 'clsv';
  src: url('../fonts/clsv.otf') format('opentype'),
    url('../fonts/methn.woff') format('woff'),
    url('../fonts/methn.ttf') format('ttf');
}

/* Gallery Section */
.gallery-section {
    position: relative;
    background-color: #F3F0ED;
    padding: 80px 0 100px;
    overflow: hidden;
}

.gallery-title {
    color: #00201E;
    font-family: 'clsv', serif;
    font-size: 50px;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    margin-bottom: 15px;
}

.gallery-subtitle {
    color: #AE8D6C;
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    text-align: center;
    margin-bottom: 40px;
}

/* Featured Video Section */
.featured-video-container {
    position: relative;
    width: 100%;
    height: 70vh;
    max-height: 700px;
    overflow: hidden;
    margin-bottom: 60px;
}

.featured-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desktop-video {
    display: block;
}

.mobile-video {
    display: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 50px;
    text-align: center;
}

.video-overlay h3 {
    color: #ECE5DB;
    font-family: 'clsv', serif;
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 15px;
}

.video-overlay p {
    color: #ECE5DB;
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    font-weight: 300;
    max-width: 600px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    padding: 0 30px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 250px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    height: auto;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    padding: 20px;
    color: #ECE5DB;
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Mobile Gallery Carousel */
.mobile-gallery-carousel {
    display: none;
    padding: 0 20px;
    margin-bottom: 40px;
}

.carousel-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
}

.carousel-caption {
    color: #00201E;
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.carousel-prev, .carousel-next {
    font-size: 25px;
    height: 50px;
    width: 50px;
    border: 1px solid #AE8D6C;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #AE8D6C;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: #AE8D6C;
    color: #ECE5DB;
}

/* Decorative Elements */
.gallery-top-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.gallery-bottom-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.lightbox-caption {
    color: #ECE5DB;
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    margin-top: 20px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ECE5DB;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-title {
        font-size: 40px;
    }
    
    .video-overlay h3 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0 80px;
    }
    
    .featured-video-container {
        height: 50vh;
    }
    
    .desktop-video {
        display: none;
    }
    
    .mobile-video {
        display: block;
    }
    
    .video-overlay h3 {
        font-size: 30px;
    }
    
    .video-overlay p {
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    .gallery-section {
        padding: 40px 0 60px;
    }
    
    .gallery-title {
        font-size: 25px;
        margin-bottom: 10px;
    }
    
    .gallery-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .featured-video-container {
        height: 40vh;
        margin-bottom: 40px;
    }
    
    .video-overlay {
        padding-bottom: 30px;
    }
    
    .video-overlay h3 {
        font-size: 24px;
    }
    
    .video-overlay p {
        font-size: 14px;
    }
    
    .gallery-grid {
        /* display: none; */
    }
    
    .mobile-gallery-carousel {
        display: block;
    }
    
    .carousel-image {
        height: 250px;
    }
}