/*gallery*/
.gallery{
    overflow:inherit;
}
.gallery span{
    cursor: pointer;
}
.gallery .block1{
    width: 610px;
    height: 610px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 40px;
}
.wrapgalimg{
    width: fit-content;
    height: fit-content;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
}
.gallery .block1 img{
    width: 295px;
    height: 295px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: 0.5s;
}
.gallery .block1 img:hover{
    transform: scale(1.03);
}

.gallery .block2{
    width: 610px;
    height: 610px;
    margin-bottom: 40px;
}
.gallery .block2 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: 0.5s;
}
.gallery .block2 img:hover{
    transform: scale(1.03);
}
.pagination{
    padding-top: 40px;
}
/*-gallery*/

@media only screen and (max-width: 1240px){
    /*gallery*/
     .gallery .block1{
        width: 100%;
        height: auto;
        gap: 20px;
        margin-bottom: 20px;
    }
    .gallery .block1 img{
        width: 337px;
        height: 337px;
    }

    .gallery .block2{
        width: 100%;
        height: 698px;
        margin-bottom: 20px;
    }
    
    .pagination{
        padding-top: 28px;
    }
    /*-gallery*/
}

@media only screen and (max-width: 699px){
    /*gallery*/
    .gallery .block1{
        width: 100%;
        height: auto;
        gap: 0;
        margin-bottom: 0;
    }
    .gallery .block1 img{
        width: 328px;
        height: 328px;
    }

    .gallery .block2{
        width: 100%;
        height: 328px;
        margin-bottom: 12px;
    }
    .gallery span{
        margin-bottom: 12px;
    }
    .wrapgalimg{
        margin-bottom: 12px;
    }

    .pagination{
        padding-top: 28px;
    }
    /*-gallery*/
}