/*   Gallery page section gallery    */

.section__gallery {
    padding-top: 120px;
    padding-bottom: 120px;
}

.gallery__item {
    display: flex;
    justify-content: space-between;
}

.gallery__item-img-wrap img {
    height: 100%;
    object-fit: cover;
}

.gallery__item:not(:last-child) {
    margin-bottom: 200px;
}

.gallery__item:nth-child(odd) {
    flex-direction: row-reverse;
}

.gallery__item-type-first .gallery__item-descr {
    max-width: 50%;
    margin-right: 30px;
}

.gallery__item-type-first .gallery__item-img-wrap {
    max-width: 50%;
}

.gallery__item-type-second .gallery__item-descr {
    max-width: 35%;
}

.gallery__item-type-second .gallery__item-img-wrap {
    max-width: 50%;
}

.gallery__item-descr-plan-gallery {
    margin-top: 50px;
}

.gallery__item-descr-plan-gallery-download {
    max-width: 50px;
    display: block;
    margin-top: 15px;
}

.gallery__item-descr-plan-gallery-download-img {
    fill: var(--black);
    transition: all .3s;
}

.gallery__item-descr-plan-gallery-download:hover .gallery__item-descr-plan-gallery-download-img {
    fill: var(--grey);
    transition: all .3s;
}

/*   Gallery-second page section gallery    */

.gallery__item-descr-name {
    font-weight: 600;
    font-size: 30px;
    line-height: 30px;
    margin-bottom: 20px;
}

@media screen and (max-width: 1400px) {
    .gallery__item-descr {
        font-size: 18px;
        line-height: 26px;
    }
}

@media screen and (max-width: 1200px) {

    .gallery__item-descr {
        font-size: 16px;
        line-height: 24px;
    }


    .gallery__item-descr-info {
        font-size: 18px;
        line-height: 28px;
        margin-top: 15px;
    }

    .gallery__item-descr-name {
        font-size: 18px;
        line-height: 18px;
        margin-top: 30px;
    }

    .section__gallery {
        padding-top: 60px;
        padding-bottom: 60px;
    }


}

@media screen and (max-width: 992px) {
    .gallery__item:nth-child(n){
        flex-direction: column;
    }

    .gallery__item-type-first .gallery__item-descr,
    .gallery__item-type-second .gallery__item-descr {
        margin: 30px 0 0;
        max-width: 100%;
        font-size: 18px;
        line-height: 28px;
    }

    .gallery__item-type-first .gallery__item-img-wrap,
    .gallery__item-type-second .gallery__item-img-wrap {
        max-width: 100%;
    }

    .gallery__item:not(:last-child) {
        margin-bottom: 60px;
    }

    .gallery__item-descr-plan-gallery {
        font-size: 16px;
        line-height: 22px;
    }
}