/* Gallery. */

.gallery {
    position: relative;
}

.gallery-main {
    pointer-events: none;
    position: relative;

    max-width: 544px;
    margin-inline: auto;
    padding-block: var(--i1);
    z-index: 2;
}

.gallery-main img {
    aspect-ratio: 544/646;
    object-fit: cover;
    object-position: center;
}

.gallery-main .swiper-wrapper {
    pointer-events: visible;
}

.gallery-bg {
    position: absolute;
    inset: 0;
}

.gallery-bg img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-bg .container {
    position: absolute;
    inset: 0;

    margin-top: var(--i1);
    margin-bottom: calc(var(--i1) - var(--btn-height));
}

.gallery-bg .swiper-wrapper {
    position: relative;

    z-index: -2;
}

.gallery-bg:before {
    content: '';
    position: absolute;
    inset: 0;

    background-color: var(--black);
    opacity: .5;
    z-index: -1;
}

.gallery-bg .swiper-button {
    position: absolute;
    right: var(--container-padding);
    bottom: 0;
}

.gallery-bg .swiper-pagination {
    position: absolute;
    top: 0;
    left: auto;
    right: var(--container-padding);
    bottom: auto;
}

/* Gallery. */

@media only screen and (max-width: 1199px){
    .gallery-bg .container {
        margin-top: 90px;
        margin-bottom: 60px;
    }
}

@media only screen and (max-width: 767px){
    .gallery-bg .swiper-button {
        justify-content: space-between;
        left: var(--container-padding);
    }
}