/* Only text area */
.section-text {
    margin: 30px auto 10px;
}
.section-text .title-text{
    text-transform: uppercase;
    font-weight: 400;
    color: #2a2f35;
    font-family: 'Montserrat';
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 30px;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: start;
}
.section-text .title-text:after{
    content: '';
    background-color: #e6101b;
    height: 1px;
    width: 45px;
    margin-top: 10px;
}
.section-text .text-area{
    margin-bottom: 30px;

}

/*Плитка галерея на странице Проекты*/
.projects {

}
.projects .category-buttons {
    display: flex;
    justify-content: start;
    margin-bottom: 40px;
    color: #141414;
    font-family: 'Open Sans';
    font-size: 14px;
    line-height: 1.7;
    flex-wrap: wrap;
}
.projects .category-buttons .category-btn {
    -webkit-transition: color .6s ease,background .6s ease;
    transition: color .6s ease,background .6s ease;
    display: inline-block;
    color: #b8b8b8;
    cursor: pointer;
    padding: 25px 25px;
    text-decoration: none;
    border: none;
    background: #2a2f35;
}
.projects .category-buttons .category-btn.active,
.projects .category-buttons .category-btn:hover {
    background-color: #e6101b;
    color: #2a2f35;
}
.projects .gallery-flex {
    display: flex;
    flex-wrap: wrap;
    min-height: 217px;
    margin-bottom: 50px;
}
.projects .gallery-item {
    display: flex;
    justify-content: start;
    align-items: end;
    height: 293px;
    overflow: hidden;
    opacity: 1;
    transition: all 0.6s ease;
    position: relative;
    /*transition: transform 0.6s ease, opacity 0.6s ease;*/
    transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    webkit-transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    transition: 1s;
    /*position: absolute;*/
    padding: 40px;
    bottom: 0;
    left: 0;
}
.projects .gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 0.7s;
}
.projects .gallery-item .blacky{
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    background-color: rgba(0,0,0,0.5);
    transition: all .6s ease;
}
.projects .gallery-item:hover .blacky{
    display: flex;
    opacity: 1;
    position: absolute;
    z-index: 1;
    background-color: rgba(0,0,0,0.5);
    transition: all .7s ease;
    -webkit-transition: opacity .7s ease, visibility .7s ease;
}
.projects .gallery-item .text-area{
    display: flex;
    flex-direction: column;
    position: absolute;
    opacity: 0;
    bottom: -5em;
    transition: all .6s ease;
    transform: translateZ(0);
}
.projects .gallery-item:hover .text-area{
    opacity: 1;
    bottom: 12%;
    -webkit-transition: all .6s ease;
    transition: all .6s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;
}
.projects .gallery-item .sub-title{
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    line-height: 10px;
    margin-bottom: 5px;
}
.projects .gallery-item .title{
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 0;
    color: #fff;
    font-family: 'Montserrat';
}
.projects .gallery-item .button-a{
    border: 3px solid #e6101b;
    color: #e6101b;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 1px rgb(0 0 0 / 0%);
    padding: 13px 27px;
    font-size: 12px;
    margin-top: 20px;
}
.projects .gallery-item .button-a:hover{
    border: 3px solid #e6101b;
    transition: all .6s ease;
    color: #000;
    background-color: #e6101b;
}
.projects .gallery-item:hover img {
    transform: scale(1.2);
    transition: 0.7s;
}
.projects .gallery-item.hidden {
    opacity: 0;
    pointer-events: none;
    width: 0 !important;
    height: 0 !important;
    transform: scale(0);
    transition: 1s;
    -ms-transform: scale(0);
    -webkit-transform: scale(0);
    transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    webkit-transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    padding: 0;
}
@media (max-width: 770px) {
    .projects .gallery-item {
        width: 50% !important;
    }
}

@media (max-width: 555px) {
    .projects .gallery-item {
        width: 100% !important;
    }
}