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

.jpc-gallery-section {
    padding: 80px 0;
    background: var(--light-2);
}

.jpc-gallery-heading {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.jpc-section-eyebrow {
    display: inline-block;
    margin-bottom: 10px;

    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.jpc-gallery-heading h2 {
    margin: 0 0 12px;

    color: var(--dark);
    font-size: 36px;
    line-height: 1.2;
}

.jpc-gallery-heading p {
    margin: 0;

    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   SLIDER
========================================================= */

.jpc-gallery-slider {
    margin: 0 -10px;
}

.jpc-gallery-slide {
    padding: 0 10px;
}

.jpc-gallery-slide a {
    display: block;
    overflow: hidden;

    border-radius: var(--radius);
    background: var(--white);

    box-shadow: var(--shadow);
}

.jpc-gallery-slide img {
    display: block;

    width: 100%;
    height: 280px;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.jpc-gallery-slide a:hover img {
    transform: scale(1.04);
}


/* =========================================================
   ARROWS
========================================================= */

.jpc-gallery-slider .slick-prev,
.jpc-gallery-slider .slick-next {
    z-index: 2;

    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 50%;

    background: var(--white);

    box-shadow: 0 5px 20px rgba(0, 64, 61, 0.15);
}

.jpc-gallery-slider .slick-prev {
    left: -5px;
}

.jpc-gallery-slider .slick-next {
    right: -5px;
}

.jpc-gallery-slider .slick-prev:before,
.jpc-gallery-slider .slick-next:before {
    color: var(--primary);
    font-size: 20px;
}


/* =========================================================
   DOTS
========================================================= */

.jpc-gallery-slider .slick-dots {
    position: relative;
    bottom: auto;

    margin-top: 25px;
}

.jpc-gallery-slider .slick-dots li button:before {
    color: var(--primary);
}

.jpc-gallery-slider .slick-dots li.slick-active button:before {
    color: var(--primary);
}


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

@media (max-width: 767px) {

    .jpc-gallery-section {
        padding: 55px 0;
    }

    .jpc-gallery-heading {
        margin-bottom: 25px;
    }

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

    .jpc-gallery-slide img {
        height: 230px;
    }

    .jpc-gallery-slider .slick-prev {
        left: 5px;
    }

    .jpc-gallery-slider .slick-next {
        right: 5px;
    }
}

.jpc-gallery-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 40, 38, 0.92);
}

.jpc-gallery-overlay img {
    max-width: 95%;
    max-height: 90vh;

    border-radius: 10px;
    object-fit: contain;
}

.jpc-gallery-close {
    position: absolute;
    top: 25px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: 0;
    border-radius: 50%;

    background: #fff;
    color: var(--dark);

    font-size: 30px;
    line-height: 40px;

    cursor: pointer;
}