/* =========================================================
   ZIAJA PRODUCT GALLERY
========================================================= */

.ziaja-product-gallery {
    --zg-green: #1A5B1E;
    --zg-title: #182730;
    --zg-bg: #FCF7F1;
    --zg-border: rgba(26, 91, 30, .18);

    position: relative;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;
}


/* =========================================================
   MAIN
========================================================= */

.ziaja-gallery-main {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;

    background: var(--zg-bg);

    overflow: hidden;
}


/* =========================================================
   MAIN SLIDE
========================================================= */

.ziaja-gallery-main-slide {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: auto;

    overflow: hidden;
}


/* =========================================================
   MAIN MEDIA
========================================================= */

.ziaja-gallery-main-media {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    aspect-ratio: 1 / 1;

    margin: 0;
    padding: 0;

    background: var(--zg-bg);

    overflow: hidden;
}


/* =========================================================
   MAIN IMAGE
========================================================= */

.ziaja-gallery-main-image {
    display: block;

    width: 100%;
    height: 100% !important;

    max-width: 100%;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: center;

    user-select: none;

    transform:
        translate3d(
            0,
            0,
            0
        )
        scale(1);

    transition:
        transform
        .7s
        cubic-bezier(
            .2,
            .7,
            .2,
            1
        );
}


/* =========================================================
   IMAGE HOVER
========================================================= */

@media (hover: hover) {

    .ziaja-gallery-main-media:hover
    .ziaja-gallery-main-image {

        transform:
            translate3d(
                0,
                0,
                0
            )
            scale(1.025);
    }

}


/* =========================================================
   SHINE EFFECT
========================================================= */

.ziaja-gallery-main-media::after {
    content: "";

    position: absolute;

    top: -60%;
    left: -120%;

    width: 35%;
    height: 220%;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(
                255,
                255,
                255,
                .25
            ),
            transparent
        );

    transform:
        rotate(18deg);

    transition:
        left
        .8s
        cubic-bezier(
            .2,
            .7,
            .3,
            1
        );
}


@media (hover: hover) {

    .ziaja-gallery-main-media:hover::after {

        left: 150%;
    }

}


/* =========================================================
   MAIN ARROWS
========================================================= */

.ziaja-gallery-arrow {
    position: absolute;

    top: 50%;

    z-index: 30;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin: 0 !important;
    padding: 0 !important;

    border:
        1px solid
        var(--zg-border) !important;

    border-radius:
        50% !important;

    background:
        rgba(
            255,
            255,
            255,
            .94
        ) !important;

    color:
        var(--zg-green) !important;

    cursor: pointer;

    box-shadow:
        0
        7px
        22px
        rgba(
            24,
            39,
            48,
            .09
        );

    opacity: 0;

    transform:
        translateY(-50%)
        scale(.9);

    transition:
        opacity .3s ease,
        transform .3s ease,
        background .3s ease,
        color .3s ease,
        border-color .3s ease;
}


/* =========================================================
   SHOW ARROWS
========================================================= */

.ziaja-gallery-main:hover
.ziaja-gallery-arrow {

    opacity: 1;

    transform:
        translateY(-50%)
        scale(1);
}


/* =========================================================
   ARROW HOVER
========================================================= */

.ziaja-gallery-arrow:hover {

    border-color:
        var(--zg-green) !important;

    background:
        var(--zg-green) !important;

    color:
        #fff !important;
}


/* =========================================================
   ARROW SVG
========================================================= */

.ziaja-gallery-arrow svg {
    display: block;

    width: 18px;
    height: 18px;

    fill: none;

    stroke:
        currentColor;

    stroke-width:
        1.8;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


/* =========================================================
   PREV / NEXT
========================================================= */

.ziaja-gallery-prev {
    left: 14px;
}


.ziaja-gallery-next {
    right: 14px;
}


/* =========================================================
   THUMB SWIPER
========================================================= */

.ziaja-gallery-thumbs {
    position: relative;

    width: 100%;

    margin-top: 12px;

    padding: 0 24px;

    overflow: hidden;
}


/* =========================================================
   THUMB SLIDE
========================================================= */

.ziaja-gallery-thumb {
    position: relative;

    height: auto;

    cursor: pointer;

    transition:
        transform .35s ease,
        opacity .35s ease;
}


/* =========================================================
   THUMB BUTTON
========================================================= */

.ziaja-gallery-thumb-button {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    aspect-ratio: 1 / 1;

    margin: 0 !important;
    padding: 0 !important;

    border:
        1px solid
        rgba(
            24,
            39,
            48,
            .15
        ) !important;

    border-radius:
        0 !important;

    outline: none;

    background:
        var(--zg-bg) !important;

    box-shadow:
        none !important;

    cursor: pointer;

    overflow: hidden;

    transition:
        border-color .28s ease,
        box-shadow .28s ease,
        transform .28s ease;
}


/* =========================================================
   THUMB IMAGE
========================================================= */

.ziaja-gallery-thumb-image {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center;

    user-select: none;

    transform:
        scale(1);

    transition:
        transform
        .4s
        cubic-bezier(
            .2,
            .7,
            .2,
            1
        );
}


/* =========================================================
   THUMB HOVER
========================================================= */

@media (hover: hover) {

    .ziaja-gallery-thumb-button:hover {

        border-color:
            rgba(
                26,
                91,
                30,
                .65
            ) !important;

        box-shadow:
            0
            4px
            14px
            rgba(
                24,
                39,
                48,
                .08
            ) !important;
    }


    .ziaja-gallery-thumb-button:hover
    .ziaja-gallery-thumb-image {

        transform:
            scale(1.05);
    }

}


/* =========================================================
   ACTIVE THUMB
========================================================= */

.ziaja-gallery-thumb.is-active
.ziaja-gallery-thumb-button {

    border:
        2px solid
        var(--zg-green) !important;

    box-shadow:
        inset
        0
        0
        0
        1px
        rgba(
            255,
            255,
            255,
            .65
        ) !important;
}


/* =========================================================
   ACTIVE OVERLAY
========================================================= */

.ziaja-gallery-thumb.is-active
.ziaja-gallery-thumb-button::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        rgba(
            26,
            91,
            30,
            .035
        );
}


/* =========================================================
   ACTIVE ANIMATION
========================================================= */

.ziaja-gallery-thumb.is-active {

    animation:
        ziajaGalleryThumbActive
        .32s
        ease;
}


@keyframes ziajaGalleryThumbActive {

    0% {

        transform:
            scale(.96);

    }


    100% {

        transform:
            scale(1);

    }

}


/* =========================================================
   SWIPER OVERRIDES
========================================================= */

.ziaja-product-gallery
.swiper-slide {

    box-sizing: border-box;
}


.ziaja-product-gallery
.swiper-wrapper {

    box-sizing: border-box;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .ziaja-gallery-arrow {

        width: 38px;
        height: 38px;

    }


    .ziaja-gallery-prev {

        left: 10px;

    }


    .ziaja-gallery-next {

        right: 10px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .ziaja-gallery-thumbs {

        margin-top: 8px;

    }


    .ziaja-gallery-arrow {

        width: 34px;
        height: 34px;

        opacity: 1;

        transform:
            translateY(-50%)
            scale(1);

    }


    .ziaja-gallery-prev {

        left: 7px;

    }


    .ziaja-gallery-next {

        right: 7px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .ziaja-gallery-thumbs {

        margin-top: 7px;

    }


    .ziaja-gallery-arrow {

        width: 32px;
        height: 32px;

    }

}