.gallery-container.on {
    left: calc(-50vw + (982px / 2));
    width: 100vw;
    z-index: 2;
}

.gallery-container {
    transition: all .3s ease-in-out;
    margin-bottom: 38px;
}

.gallery-container:not(.on) {
    left: 0;
    width: 100%;
    z-index: 2;
}

.gallery-container .image .overlay {
    position: absolute;
    inset: 0;
    background-color: rgb(0 0 0 / 48%);
}

.gallery-container .image .overlay-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.gallery-container .image .overlay-text,
.gallery-container .bot-area .swiper .card.swiper-slide-active .caption {
    opacity: 1;
    transition: all .3s ease-in-out;
}

.gallery-container:not(.on) .swiper .card.swiper-slide-active {
    width: 100% !important;
    margin: 0 !important;
}

.gallery-container:not(.on) .swiper-wrapper {
    transform: none !important; 
}

.gallery-container:not(.on) .slider .slide-btn {
    display: none !important;
    z-index: -1 !important;
}

.gallery-container:not(.on) .swiper {
    cursor: pointer;
}

.gallery-container .close {
    position: absolute;
    top: 10%;
    right: 6%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
    cursor: pointer;
}

.gallery-container .close .text {
    color: #FFF;
    text-align: center;
    font-family: "AeonikPro-Regular";
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 13.75px;
    letter-spacing: 0.55px;
}

.gallery-container .close .lines {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    position: relative;
}

.gallery-container .close .lines span {
    position: absolute;
    top: calc(50% - (1px / 2));
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #fff;
}

.gallery-container .close .lines span:nth-child(1) {
    transform: rotate(45deg);
}

.gallery-container .close .lines span:nth-child(2) {
    transform: rotate(-45deg);
}

.gallery-container .bot-area .swiper .card:not(.swiper-slide-active) .caption {
    opacity: 0;
}

.gallery-container.on .image .overlay-text,
.gallery-container:not(.on) .swiper .card.swiper-slide-active .caption,
.gallery-container:not(.on) .swiper .card:not(.swiper-slide-active),
.gallery-container:not(.on) .swiper .card.swiper-slide-active .caption {
    opacity: 0;
    transform: scale(0);
    width: 0 !important;
    z-index: -1;
    position: relative;
    height: 0 !important;
    margin: 0 !important;
}

.gallery-container .image .overlay-text .text {
    color: #FFF;
    text-align: center;
    font-family: "AeonikPro-Regular", sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 13.75px;
    letter-spacing: 0.55px;
}

.gallery-container.on {
    background-color: #000;
    padding: 250px 0;
}


.gallery-container .bot-area .swiper .card.swiper-slide-active .image {
    width: 100%;
}

.gallery-container .bot-area .swiper .card.swiper-slide-active .image {
    aspect-ratio: 16/9;
}

.gallery-container .bot-area .swiper .card:not(.swiper-slide-active) .image {
    margin-top: 5%;
    aspect-ratio: 19/9;
}


.gallery-container .bot-area .swiper .card .caption {
    display: flex;
    align-items: baseline;
    margin-top: 15px;
    max-width: 398px;
    margin-right: auto;
}

.gallery-container .bot-area .swiper .card .caption img {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

.gallery-container .bot-area .swiper .card .caption .text {
    color: #9C9C9C;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.32px;
    margin-left: 12px;
}

@media screen and (max-width: 1080px) {
    .gallery-container.on {
        left: -1rem;
        width: 100vw;
        z-index: 2;
    }
}

@media screen and (max-width: 768px) {
    .gallery-container.on {
        padding: 120px 0;
    }
}


