.projects-gallery {
    width: 100%;
    background: #313d4d;
}
.projects-gallery .gallery{
	color: #FFF;
font-family: Inter;
font-size: 38px;
font-style: normal;
font-weight: 400;
line-height: normal;
text-transform: uppercase;
margin-bottom: 70px;
}
/* Верхняя темная зона */
.projects-gallery__header {
    min-height: 85px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

/* Заголовок */
.projects-gallery__title {
    margin: 0;

    font-size: 16px;
    line-height: 1.3;
    font-weight: 400;

    color: #ffffff;

    text-align: center;
    text-transform: uppercase;
}

/* Сетка */
.projects-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    width: 100%;
}

/* Карточка */
.projects-gallery__item {
    position: relative;

    min-width: 0;
    overflow: hidden;

    aspect-ratio: 1.37 / 1;
}

/* Скрытые фотографии */
.projects-gallery__item--hidden {
    display: none;
}

/* Ссылка */
.projects-gallery__link {
    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

/* Изображение */
.projects-gallery__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease,
        filter 0.4s ease;
}

/* Небольшой hover */
.projects-gallery__link:hover .projects-gallery__image {
    transform: scale(1.03);
}

/* Кнопка поверх 16-й картинки */
.projects-gallery__more {
    position: absolute;
    inset: 0;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 20px;

    border: 0;

    background: rgba(52, 65, 84, 0.72);

    color: #ffffff;

    cursor: pointer;

    font: inherit;
}

/* Текст кнопки */
.projects-gallery__more-text {
    position: relative;

    display: inline-block;

    padding-bottom: 12px;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;

    color: #ffffff;

    text-transform: uppercase;
}

/* Линия под текстом */
.projects-gallery__more-text::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 72px;
    height: 1px;

    background: rgba(255, 255, 255, 0.7);

    transform: translateX(-50%);
}

/* Hover кнопки */
.projects-gallery__more:hover {
    background: rgba(52, 65, 84, 0.58);
}


/* =========================
   АДАПТИВ
   ========================= */

@media (max-width: 960px) {

    .projects-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 640px) {

    .projects-gallery__header {
        min-height: 70px;
    }

    .projects-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 420px) {

    .projects-gallery__grid {
        grid-template-columns: 1fr;
    }

}
