/*================================+*/
/* =========================
   MAIN SLIDER
========================= */

.image-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.image-slider {
    width: 100%;
    padding: 10px 5px 50px;
}

.image-slider .swiper-slide {
    height: auto;
}

.slider-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
}

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

.slider-image:hover img {
    transform: scale(1.06);
}


/* =========================
   MAIN SLIDER ARROWS
========================= */

.image-slider .swiper-button-prev,
.image-slider .swiper-button-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.image-slider .swiper-button-prev:after,
.image-slider .swiper-button-next:after {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}


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

.image-lightbox {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.92);

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

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 999999;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}


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

.lightbox-inner {
    width: 100%;
    height: 100%;

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

    position: relative;

    padding: 60px 90px;
}


/* =========================
   POPUP IMAGE
========================= */

.lightbox-image-wrapper {
    width: 100%;
    height: 100%;

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

.lightbox-image-wrapper img {
    max-width: 100%;
    max-height: 85vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 5px;

    user-select: none;
}


/* =========================
   CLOSE BUTTON
========================= */

.lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 48px;
    height: 48px;

    border: 0;
    border-radius: 50%;

    background: #fff;
    color: #000;

    font-size: 34px;
    line-height: 1;

    cursor: pointer;

    z-index: 10;

    transition: 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}


/* =========================
   PREVIOUS / NEXT
========================= */

.lightbox-prev,
.lightbox-next {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 52px;
    height: 52px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);
    color: #000;

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

    cursor: pointer;

    z-index: 10;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-prev:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.lightbox-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev span,
.lightbox-next span {
    font-size: 24px;
    line-height: 1;
}


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

@media (max-width: 991px) {

    .slider-image {
        height: 250px;
    }

    .lightbox-inner {
        padding: 60px 75px;
    }

}


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

@media (max-width: 767px) {

    .image-slider {
        padding-bottom: 40px;
    }

    .slider-image {
        height: 240px;
    }

    .image-slider .swiper-button-prev,
    .image-slider .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .image-slider .swiper-button-prev:after,
    .image-slider .swiper-button-next:after {
        font-size: 13px;
    }


    .lightbox-inner {
        padding: 60px 15px;
    }

    .lightbox-image-wrapper img {
        max-width: 100%;
        max-height: 75vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-prev span,
    .lightbox-next span {
        font-size: 18px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;

        top: 15px;
        right: 15px;

        font-size: 28px;
    }

}