.image-gallery {
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.image-gallery__wrap .fx-slider .fx-slide {
    display: inline-block;
}

.image-gallery__image {
    display: block;
}

.image-gallery__image > a:focus {
    border: 0;
    outline: 0;
}

.image-gallery__image > a {
    height: 220px;
    display: block;
    overflow: hidden;
    position: relative;
    text-decoration: none;

    &::before {
        content: '';
        background: rgba(0,0,0,0.45);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    img {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        object-fit: cover; 
        width: 100%;
        height: 100%;
    }

    &.image-gallery__video::after {
        content: "\e910";
        color: var(--white);
        font-family: 'hy-icon';
        position: absolute;
        font-size: 24px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 50px;
        width: 50px;
        background: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all .3s ease-in-out;
        text-indent: 8px;
        z-index: 1;
    }
}

.image-gallery-item {
    display: inline-block;
    width: 100%;
}

.image-gallery__wrap .swiper-slide {
    width: 100%;
}

.image-gallery__headlines {
    text-align: center;
    margin: 0 0 35px;
}

.image-gallery-slider {
    overflow: hidden;
}

.image-gallery__heading {
    margin: 0 0 12px;
}

.image-gallery__texture {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

.slider-navigation {
    position: relative;
    bottom: 0px;
    height: auto;
    justify-content: space-between;
    display: flex;
    margin: 12px 0 0;
    align-items: center;
    z-index: 9;
    width: 100%;
}

.slider-pagination {
    display: none;
}

.slider-scrollbar {
    width: 100%;
}

.slider-scrollbar .swiper-scrollbar {
    height: 10px;
    background-color: var(--border-color);
    border-radius: 0;
}

.slider-scrollbar .swiper-scrollbar-drag {
    height: 10px;
    top: 0;
    background-color: var(--primary-color);
    cursor: pointer;
}

.slider-nav__container {
    position: relative;
    width: 115px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bg-darkest + .bg-texture.bg-darkest {
    padding-top: var(--section-margins);
}

@media(min-width: 600px) {
    .image-gallery__image > a {
        height: 280px;
    }
}

@media(min-width: 768px) {
    .slider-navigation {
        margin: 20px 0 0;
    }

    .image-gallery__image > a {
        height: 336px;
    }
}

@media(min-width: 1200px) {
    .slider-navigation {
        margin: 32px 0 0;
    }
}

@media(min-width: 768px) {
    .image-gallery__wrap .swiper-slide {
        width: 506px;
    }

    .image-gallery__heading {
        margin: 0 0 20px;
    }

    .image-gallery-slider {
        margin: 0 -52px 0 0;
    }
}


@media(min-width: 1200px) {
    .image-gallery-slider {
        margin: 0;
        overflow: unset;
    }

    .image-gallery__heading {
        margin: 0 0 32px;
    }

    .image-gallery__image > a:hover {
        &::before {
            opacity: 1;
        }

        img {
            transform: scale(1.05);
        }
    }

    .image-gallery__image > a.image-gallery__video::after {
        height: 72px;
        width: 72px;
        font-size: 32px;
    }

    .image-gallery__image > a.image-gallery__video:hover::after {
        height: 65px;
        width: 65px;
        font-size: 28px;
    }
}