/* ==========================================================
   CUSTOMER TESTIMONIALS PAGE
========================================================== */

.page-header {
    padding: 90px 0 60px;
    background: #f8f6ef;
    text-align: center;
}

.page-header .container {
    max-width: 900px;
    margin: 0 auto;
}

.page-header .section-badge {
    display: inline-block;
    padding: 10px 24px;
    background: #214d25;
    color: #f2c94c;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 3rem;
    color: #17361e;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-header p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
}


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

.testimonials-gallery {
    padding: 20px 0 90px;
    background: #f8f6ef;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.gallery-item {
    background: #ffffff;
    border-radius: 24px;
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.14);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    transition: transform 0.45s ease;
}

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


/* ==========================================================
   LIGHTBOX
========================================================== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 40px;
    backdrop-filter: blur(4px);
}

/*
   When JavaScript changes display to flex,
   the lightbox receives a smooth entrance animation.
*/
.lightbox[style*="display: flex"] {
    animation: lightboxFadeIn 0.25s ease forwards;
}

.lightbox-image {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
    animation: lightboxImageIn 0.3s ease forwards;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.lightbox-close:hover {
    background: #d4a017;
    color: #17361e;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #d4a017;
    color: #17361e;
}

.lightbox-prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

.lightbox-next:hover {
    transform: translateY(-50%) translateX(3px);
}

.lightbox-prev {
    left: 35px;
}

.lightbox-next {
    right: 35px;
}


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

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes lightboxImageIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


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

@media (max-width: 992px) {

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

    .lightbox-image {
        max-width: 82%;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

}


@media (max-width: 768px) {

    .page-header {
        padding: 70px 20px 50px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

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

    .testimonials-gallery {
        padding: 20px 20px 70px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gallery-item {
        border-radius: 18px;
    }

    .lightbox {
        padding: 70px 15px 30px;
    }

    .lightbox-image {
        max-width: 92%;
        max-height: 82vh;
        border-radius: 12px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 46px;
        height: 46px;
        font-size: 32px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

}


@media (max-width: 480px) {

    .page-header h1 {
        font-size: 1.85rem;
    }

    .page-header .section-badge {
        padding: 8px 18px;
        font-size: 0.75rem;
    }

    .gallery-grid {
        gap: 20px;
    }

    .lightbox {
        padding-left: 8px;
        padding-right: 8px;
    }

    .lightbox-image {
        max-width: 94%;
        max-height: 78vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 6px;
    }

    .lightbox-next {
        right: 6px;
    }

}