/* BLOCK: Animated Image Gallery */

.block-animated-image-gallery .swiper {
    position: relative;
    overflow: visible;
    padding-right: var(--offset, 0px);
    margin-inline: calc(-1 * var(--offset));
    isolation: isolate;
}

.block-animated-image-gallery .swiper-slide {
    position: relative;
    isolation: isolate;
    aspect-ratio: 16 / 9;
    transition: 300ms ease-out;
    transition-property: opacity, transform;
    transform-origin: top left;
}

.block-animated-image-gallery .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(128.13deg, rgba(0, 0, 0, 0) 56.17%, rgba(0, 0, 0, 0.4) 96.73%);
    mix-blend-mode: multiply;
    background-blend-mode: multiply;
    z-index: 1;
}

.block-animated-image-gallery .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.4;
    transform: scale(0.925);
}

.block-animated-image-gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-animated-image-gallery .swiper-navigation {
    position: absolute;
    bottom: 1.4375rem;
    right: calc(var(--offset) + 1.75rem);
    z-index: 1;
}

.block-animated-image-gallery .swiper-pagination {
    margin-top: 1.75rem;
    justify-content: center;
    margin-right: calc(-1 * (var(--offset, 0px) + 2.8125rem));
    width: calc(100% + var(--offset, 0px) + 2.8125rem);
}

@media screen and (width <= 1300px) {
    .block-animated-image-gallery .swiper {
        padding-right: calc(var(--offset, 0px) + 2.8125rem);
    }
    .block-animated-image-gallery .swiper-navigation {
        right: calc(var(--offset) + 4.5625rem);
    }
}

@media screen and (width <= 620px) {
    .block-animated-image-gallery .swiper-slide {
        aspect-ratio: 0.715;
    }
    .block-animated-image-gallery .swiper-navigation {
        display: none;
    }
    .block-animated-image-gallery .swiper-slide:not(.swiper-slide-active) {
        transform: scale(0.95);
    }
}