/* =========================================================
   GALLERY SECTION
========================================================= */

.gallery-section {
    position: relative;

    overflow: hidden;

    background: #f7faf7;
}


/* =========================================================
   GALLERY CONTAINER
========================================================= */

.gallery-container {
    position: relative;

    max-width: 1440px;

    margin: 0 auto;

    padding: 70px 40px;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.gallery-header {
    margin-bottom: 35px;

    text-align: center;
}

.gallery-section-label {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 14px;

    border: 1px solid rgba(22, 163, 74, 0.15);

    border-radius: 999px;

    color: #15803d;

    background: #f0fdf4;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}

.gallery-header h2 {
    margin-top: 14px;

    color: #17231b;

    font-size: 38px;

    font-weight: 800;

    line-height: 1.2;
}

.gallery-header p {
    max-width: 680px;

    margin: 12px auto 0;

    color: #66736b;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   GALLERY TABS
========================================================= */

.gallery-switcher {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-bottom: 35px;
}

.gallery-tab {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 12px 24px;

    border: 1px solid #dce7df;

    border-radius: 999px;

    color: #526057;

    background: #ffffff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.3s ease;
}

.gallery-tab:hover {
    transform: translateY(-2px);

    border-color: #86c92d;

    color: #15803d;

    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.08);
}

.gallery-tab.active {
    border-color: #16a34a;

    color: #ffffff;

    background: linear-gradient(135deg, #16a34a, #65a30d);

    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.20);
}


/* =========================================================
   GALLERY CONTENT
========================================================= */

.gallery-tab-content {
    display: block;

    animation: galleryFade 0.45s ease;
}

.gallery-tab-content.hidden {
    display: none;
}


/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}


/* =========================================================
   PHOTO CARD
========================================================= */

.photo-card {
    position: relative;

    height: 300px;

    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, 0.05);

    border-radius: 18px;

    background: #ffffff;

    cursor: pointer;

    box-shadow: 0 8px 25px rgba(22, 40, 28, 0.08);

    transition: all 0.4s ease;
}

.photo-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 20px 40px rgba(22, 40, 28, 0.16);
}

.photo-card img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.7s ease;
}

.photo-card:hover img {
    transform: scale(1.08);
}


/* =========================================================
   PHOTO OVERLAY
========================================================= */

.photo-card-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 24px;

    color: #ffffff;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.15),
        transparent
    );

    opacity: 0;

    transition: opacity 0.4s ease;
}

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

.photo-card-overlay span {
    margin-bottom: 5px;

    color: #bef264;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.photo-card-overlay h3 {
    color: #ffffff;

    font-size: 20px;

    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   VIDEO CARD
========================================================= */

.video-card {
    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, 0.05);

    border-radius: 18px;

    background: #ffffff;

    cursor: pointer;

    box-shadow: 0 8px 25px rgba(22, 40, 28, 0.08);

    transition: all 0.4s ease;
}

.video-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 20px 40px rgba(22, 40, 28, 0.16);
}


/* =========================================================
   VIDEO THUMBNAIL
========================================================= */

.video-thumbnail {
    position: relative;

    height: 235px;

    overflow: hidden;

    background: #e5e7eb;
}

.video-thumbnail img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.7s ease;
}

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


/* =========================================================
   VIDEO PLAY BUTTON
========================================================= */

.play-icon {
    position: absolute;

    top: 50%;

    left: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 64px;

    height: 64px;

    padding-left: 3px;

    border-radius: 50%;

    color: #16a34a;

    background: #ffffff;

    font-size: 21px;

    transform: translate(-50%, -50%);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

    transition: all 0.3s ease;
}

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


/* =========================================================
   VIDEO DETAILS
========================================================= */

.video-details {
    padding: 20px;
}

.video-details span {
    color: #65a30d;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.video-details h3 {
    margin-top: 7px;

    color: #1f2937;

    font-size: 19px;

    font-weight: 700;

    line-height: 1.4;
}

.video-details p {
    margin-top: 7px;

    color: #6b7280;

    font-size: 14px;
}


/* =========================================================
   GALLERY MODAL
========================================================= */

.gallery-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;

    background: rgba(4, 12, 7, 0.94);

    backdrop-filter: blur(8px);

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;
}

.gallery-modal.show {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   MODAL CONTENT
========================================================= */

.gallery-modal-content {
    width: calc(100% - 120px);

    max-width: 1100px;

    text-align: center;
}

.gallery-modal-content img {
    max-width: 100%;

    max-height: 75vh;

    border-radius: 14px;

    object-fit: contain;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

    animation: galleryModalZoom 0.35s ease;
}

.gallery-modal-content iframe {
    width: 100%;

    height: 600px;

    border: 0;

    border-radius: 14px;

    background: #000000;

    animation: galleryModalZoom 0.35s ease;
}

.gallery-modal-content h3 {
    margin-top: 18px;

    color: #ffffff;

    font-size: 20px;

    font-weight: 700;
}


/* =========================================================
   MODAL BUTTONS
========================================================= */

.gallery-modal-close,
.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 48px;

    height: 48px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 50%;

    color: #ffffff;

    background: rgba(255, 255, 255, 0.10);

    font-size: 30px;

    cursor: pointer;

    backdrop-filter: blur(8px);

    transition: all 0.3s ease;
}

.gallery-modal-close:hover,
.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    color: #17210f;

    background: #84cc16;

    transform: scale(1.08);
}

.gallery-modal-close {
    top: 25px;

    right: 25px;
}

.gallery-modal-prev {
    top: 50%;

    left: 25px;

    transform: translateY(-50%);
}

.gallery-modal-next {
    top: 50%;

    right: 25px;

    transform: translateY(-50%);
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes galleryFade {
    from {
        opacity: 0;

        transform: translateY(15px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

@keyframes galleryModalZoom {
    from {
        opacity: 0;

        transform: scale(0.94);
    }

    to {
        opacity: 1;

        transform: scale(1);
    }
}


/* =========================================================
   TABLET RESPONSIVE
========================================================= */

@media (max-width: 992px) {
    .gallery-container {
        padding: 60px 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-header h2 {
        font-size: 34px;
    }

    .gallery-modal-content iframe {
        height: 480px;
    }
}


/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 640px) {
    .gallery-container {
        padding: 50px 18px;
    }

    .gallery-header h2 {
        font-size: 28px;
    }

    .gallery-header p {
        font-size: 14px;
    }

    .gallery-switcher {
        gap: 8px;
    }

    .gallery-tab {
        padding: 10px 17px;

        font-size: 13px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .photo-card {
        height: 250px;
    }

    .video-thumbnail {
        height: 210px;
    }

    .gallery-modal {
        padding: 15px;
    }

    .gallery-modal-content {
        width: 100%;
    }

    .gallery-modal-content iframe {
        height: 280px;
    }

    .gallery-modal-close,
    .gallery-modal-prev,
    .gallery-modal-next {
        width: 40px;

        height: 40px;

        font-size: 25px;
    }

    .gallery-modal-close {
        top: 12px;

        right: 12px;
    }

    .gallery-modal-prev {
        left: 8px;
    }

    .gallery-modal-next {
        right: 8px;
    }
}