.gallery {
    text-align: center;
}

.gallery__inner {
    gap: 4rem;
    align-items: center;
}

.gallery__header {
    align-items: center;
    gap: 1.6rem;
}

.gallery__title {
    font-weight: 600;
}

.gallery__media {
    width: 92.8rem;
    max-width: 100%;
    gap: 2rem;
}

.gallery__images {
    width: 100%;
    padding-inline: 10rem;
    position: relative;
}

.gallery__images-inner {
    width: 72rem;
    max-width: 100%;
    margin-inline: auto;
}

.gallery__images .slider-nav {
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 2;
    translate: 0 -50%;
}

.gallery__image {
    aspect-ratio: 720/515;
    width: 100%;
    border-radius: 5rem;
    overflow: hidden;
}

.gallery__thumbs {
    width: 46rem;
    max-width: 100%;
    margin-inline: auto;
}

.gallery__thumb {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 1.6rem;
    overflow: hidden;
    transition: 0.6s ease-out;
}

.swiper-slide-thumb-active .gallery__thumb {
    border-radius: 100%;
}

.swiper-slide:not(.swiper-slide-thumb-active) .gallery__thumb {
    cursor: pointer;
}


.swiper-slide:not(.swiper-slide-thumb-active) .gallery__thumb:hover {
    opacity: 0.7;
    scale: 0.9;
}

@media screen and (max-width: 1024.9px) {
    .gallery__images {
        padding-inline: 0;
    }
}

@media screen and (max-width: 575.9px) {
    .gallery .swiper-slide {
        width: auto;
    }

    .gallery__thumbs .swiper-wrapper {
        justify-content: center;
    }

    .gallery__thumb {
        width: 6.4rem;
    }
}