/* .cards4__item-upper{
   height: 100%;

   max-width: 565px;
}
 */


.card-hover{
    bottom: auto;
    top: 0;

    /* height: calc(100% - 4px); */
}

.inst-feeds{
    display: flex;
    justify-content: center;
}

.inst-feeds__container{
    padding-left: 40px;
    padding-right: 40px;

    width: 100%;
}

.inst-feeds__title{
    font-size: 35px;
    font-weight: 400;
    line-height: 42.36px;
    text-align: left;

    text-transform: uppercase;
}

.inst-feeds__upper{
    display: flex;
    justify-content: space-between;

    width: 100%;

    margin-top: 63px;
}

.inst-feeds__text{
    font-size: 14px;
    font-weight: 400;
    line-height: 16.94px;
    text-align: left;

    width: 100%;
    max-width: 679px;
}

.inst-feeds__gallery{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    column-gap: 24px;
    row-gap: 24px;

    margin-top: 87px;
}

.inst-feeds__img{
    width: 100%;

    transition: .3s linear;
}

.inst-feeds__gallery a{
    height: 100%;
    display: inline-block;
    line-height: 100%;
}



.inst-feeds__img-outer{
    height: 100%;
    width: 100%;
    position: relative;

    overflow: hidden;

    cursor: pointer;
}

.inst-feeds__img-hover{
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100%;
    width: 100%;

    position: absolute;

    transition: .3s linear;

    background: rgba(0, 0, 0, 0.6);

    opacity: 0;


    z-index: 3;

}

.inst-feeds__img-hover-text{
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    color: #fff;
}

.inst-feeds__img-outer:hover .inst-feeds__img-hover{
    opacity: 1;
}

.inst-feeds__img-outer:hover .inst-feeds__img{
    transform: scale(1.2);
}





/* .inst-feeds-popup */
/*
.cards4__item {
    height: 100%;
}

.cards4__item-upper{

}

.cards4__item-img{
    position: absolute;
    left: 0;
    top: 0;
} */

.cards4__item-img{

    height: calc(100% + 4px);
}

.inst-feeds-popup{
    display: none;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.6);

    width: 100%;
    height: 100vh;

    top: 0;
    left: 0;

    position: fixed;

    z-index: 9;
}

.inst-feeds-popup-block{
    width: 100%;
    max-width: 947px;
}

.inst-feeds-popup-block-upper{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    padding-top: 25px;
    padding-bottom: 26px;

    background:  #F2F3F4;
}

.inst-feeds-popup-block-upper-logo{

}

.inst-feeds-popup-block-upper-closer{
    position: absolute;

    right: 60px;

    cursor: pointer;
}

.inst-feeds-popup-block-lower{
    width: 100%;

    background:  #FFFFFF;

    padding: 60px;

    display: grid;
    column-gap: 10px;

    grid-template-columns: 565fr 360fr;

}

.inst-feeds-popup-inst-outer{
    display: flex;
    flex-direction: column;
    align-items: center;

}

.inst-feeds-popup-inst-outer a{
    width: 100%;
}

.inst-feeds-popup-inst-img{
    width: 100%;
    object-fit: scale-down;
    aspect-ratio: 1 / 1 !important;
}

.inst-feeds-popup-inst-text{
    margin-top: 16px;

    text-align: center;

    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}



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

    .inst-feeds__upper{
        flex-direction: column;
    }

    .inst-feeds__title{
        font-size: 24px;
        font-weight: 500;
        line-height: 29.05px;
        text-align: left;

    }

    .inst-feeds__text{
        margin-top: 24px;
        font-size: 14px;
        font-weight: 400;
        line-height: 16.94px;

    }

    .inst-feeds__gallery{
        column-gap: 5px;
        row-gap: 5px;
    }
}

@media screen and (max-width: 991px){
    .inst-feeds-popup-block-lower{
        padding: 30px 0;

    }

    .inst-feeds-popup-block-upper-closer{
        right: 30px;
    }

    .inst-feeds-popup-block-upper{
        padding-top: 12px;
        padding-bottom: 13px;
    }

    .inst-feeds-popup-block-upper-logo{
        max-width: 102.58px;
    }
}



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

    .inst-feeds__gallery{
        grid-template-columns: 1fr 1fr;
    }

    .inst-feeds__container{
        padding-left: 0;
        padding-right: 0;
    }

    .inst-feeds__upper{
        padding-left: 20px;
        padding-right: 20px;
    }

    .inst-feeds__gallery{
        margin-top: 60px;
    }
}

@media screen and (max-width: 600px){
    .inst-feeds-popup-block-lower{
        flex-direction: column;
        display: flex;
        align-items: center;

        overflow-y: scroll;
        max-height: 500px;
    }

    .inst-feeds-popup-block .cards4__item{
        max-width: 196px;

        margin-top: 30px;
    }

    .inst-feeds-popup-inst-outer{
        max-width: 400px;
    }
}


@media screen and (max-width: 470px){
    .inst-feeds-popup-block-lower{

        grid-template-columns: 1fr 1fr;
    }

    .inst-feeds-popup-inst-outer a{
        height: calc(100% - 16px);
    }

    .inst-feeds-popup-inst-img{
        height: calc(100% - 16px);
    }


    .inst-feeds-popup-inst-text{
        position: relative;
        top: -4px;
    }
}

