.work-item-block {
    max-width: 790px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.work-item-block .text_label {
    margin-bottom: 15px;
}
.work-item-block .heading2 {
    margin-bottom: 5px;
}
.work-item-block .text1 {
    margin-top: 40px;
}

.work-item-block .main_photo {
    width: 100%; height: 490px;
    margin-bottom: 30px; margin-top: 20px;
    object-fit: contain;
}
.work-item-block .gallery {
    margin-top: 40px;
}
.work-item-block .photo_card {
    margin-bottom: 10px;
    cursor: pointer;
}
.gallery .photo_card img {
    width: 100%; height: 100%;
    max-height: 731px;
    object-fit: cover;
}

@media screen and (max-width: 890px) {
   .work-item-block .main_photo {
        height: 50%;
        margin-bottom: 30px;
    }

}
@media screen and (max-width: 660px) {
   .work-item-block .main_photo {
        margin-bottom: 15px;
    }
}