.gallery__container {
    display: flex;
    max-width: 1382px;
    padding: 0 16px;
    margin: 0 auto;
}

.gallery__active {
    flex: 1 1 calc(70% - 10px);
    margin-right: 20px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    max-height: 500px;
}

.gallery__active-img {
    object-fit: cover;
}

.gallery__items {
    flex: 1 1 calc(30% - 10px);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    max-height: 500px;
    overflow: auto;
}

.gallery__item {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    width: calc(50% - 10px);
}

.gallery__item:nth-child(2n) {
    margin-right: 0;
}

.gallery__item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .gallery__container {
        flex-wrap: wrap;
    }

    .gallery__active {
        flex: 1 1 calc(50% - 10px);
        max-height: 60vw;
    }

    .gallery__items {
        display: block;
        flex: 1 1 calc(10% - 10px);
        max-height: 60vw;
        overflow-y: auto;
    }

    .gallery__item {
        width: 100%;
    }

    .gallery__item:not(:last-child) {
        margin-bottom: 16px;
    }
}

@media (max-width: 575px) {
    .promo__title {
        font-size: 36px;
        line-height: 90%;
    }

    .gallery__container {
        flex-direction: column;
    }

    .gallery__active {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .gallery__items {
        display: flex;
        overflow-x: auto;
        max-width: 100%;
        flex-wrap: nowrap;
    }

    .gallery__item {
        min-width: 22vw;
        max-width: 22vw;
        display: block;
    }

    .gallery__item:not(:last-child) {
        margin-bottom: 0;
        margin-right: 16px;
    }
}