.gallery-swiper .swiper-wrapper {
    margin-left: -16%;
}
.gallery-slide {
    cursor: pointer;
}
.gallery-swiper .slider-button-prev, 
.gallery-swiper .slider-button-next {
    width: 27px;
    height: auto;
    position: relative;
    flex: 0 1 auto;
    display: flex;
    cursor: pointer;
}
.gallery-swiper .slider_nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 40px 20px;
}
.slider-pagination {
    width: auto !important;
    flex: 0 1 auto;
    display: inline-flex;
}
.gallery-swiper .swiper-pagination-bullet,
.gallery_slider_modal .swiper-pagination-bullet {
    background: #cbd3dc;
    height: 2px;
    width: 40px;
    opacity: 1;
    border: none !important;
    border-image-width: 0px !important;
}
.gallery-swiper .swiper-pagination-bullet-active,
.gallery_slider_modal .swiper-pagination-bullet-active {
    background: var(--e-global-color-accent);
    opacity: 1;
}
.gallery-swiper .slider_nav svg {
    fill: #cbd4dc;
}
.gallery-swiper .slider_nav svg:hover {
    fill: var(--e-global-color-accent);
}
.gallery_slide_img {
    position: relative;
    overflow: hidden;
    height: 600px;
}
.gallery_slide_img:before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    opacity: 0;
    background-image: linear-gradient(to bottom, #303c49a3 0% 100%);
    background-repeat: repeat-x;
    transition: opacity .5s ease-in-out;
}
.gallery_slide_img:after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background-image: linear-gradient(to bottom, #0000, #000c);
    background-repeat: repeat-x;
}
.gallery_slide_img:hover:before {
    opacity: 1;
    bottom: 0;
}
.gallery_slide_img img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: 90%;
    transition: transform .5s ease-in-out, filter .5s ease-in-out;
}
.gallery_slide_img:hover img {
    transform: scale(1.05);
    filter: grayscale(100%);
}
.gallery_slide_content {
    position: absolute;
    bottom: 0;
    padding: 0 24px;
    z-index: 3;
}
.gallery_slide_content h4 {
    padding: 0 0 14px 12px;
    border-left: 2px solid var(--e-global-color-accent);
    margin: 48px 0 0;
    color: #fff;
}
.gallery_slide_icon {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    opacity: 0;
    transition: opacity .3s ease-in-out;
}
.gallery_slide_icon svg {
    width: 36px;
    height: 36px;
    fill: #fff;
}
.gallery-slide:hover .gallery_slide_icon {
    opacity: 1;
}



.gallery_slider_modal {
    position: fixed;
    transform: translateX(100%);
    transition: opacity .3s ease;
    transition-delay: .2s;
    height: 100dvh;
    width: 100%;
    background-color: #00000088;
    right: 0;
    top: 0;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
}
.gallery_slider_modal.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}
.swiper.modal_gallery-swiper {
    height: 100%;
}
.modal-swiper-pagination {
    bottom: 40px !important;
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.gallery_slider_close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    font-size: 60px;
    color: #fff;
    cursor: pointer;
}
.modal-swiper-button-prev {
    position: absolute;
    top: 50%;
    left: 60px;
    z-index: 3;
    transform: translateX(-50%);
}
.modal-swiper-button-next {
    position: absolute;
    top: 50%;
    right: 60px;
    z-index: 3;
    transform: translateX(50%);
}
.modal_slide_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 3;
    padding: 60px;
    color: #fff;
    flex-direction: column;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.modal-swiper-button-prev svg,
.modal-swiper-button-next svg {
    width: 96px;
    fill: #cbd3dc;
    cursor: pointer;
    transition: fill .3s ease-in-out;
}
.modal-swiper-button-prev svg:hover,
.modal-swiper-button-next svg:hover {
    fill: var(--e-global-color-accent);
}
.modal_slide_img {
    position: relative;
}
.modal_slide_img:after {
    content: "";
    background-image: linear-gradient(to bottom, #000c, #0000);
    background-repeat: repeat-x;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.modal_slide_img img {
    min-height: 100dvh;
    object-fit: cover;
}

@media(max-width: 767px) {
    .gallery_slide_img {
        height: 400px;
    }
    .gallery_slide_content {
        padding: 0 16px;
    }
    .gallery-swiper .swiper-wrapper {
        margin-left: 16%;
    }
    .modal-swiper-button-prev svg, .modal-swiper-button-next svg {
        display: none;
    }
    .modal_slide_content {
        padding: 48px 24px 24px;
    }
    .gallery_slider_close {
        font-size: 44px;
        line-height: 1;
    }
    .gallery-swiper .swiper-pagination-bullet, .gallery_slider_modal .swiper-pagination-bullet {
        width: 24px;
    }
}

@media(min-width: 768px) and (max-width: 1024px) {
    .gallery_slide_img {
        height: 500px;
    }
    .gallery-swiper .swiper-wrapper {
        margin-left: 25%;
    }
    .modal-swiper-button-prev svg, .modal-swiper-button-next svg {
        width: 48px;
    }
}