/* NEWS */

.all-news__wrapper {
    display: grid;
    gap: 32px;
}

.all-news__item {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.all-news__item img {
    display: block;
    width: 100%;
    height: auto;
    transition: all 0.2s ease-in-out;
}

.all-news__item:hover img {
    transform: scale(1.05);
}

.all-news__date {
    display: block;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 16px;
    letter-spacing: 0.05em;
    color: var(--dark-primiry);
}

.all-news__text {
    -webkit-line-clamp: 4; /* Число отображаемых строк */
    display: -webkit-box; /* Включаем флексбоксы */
    -webkit-box-orient: vertical; /* Вертикальная ориентация */
    overflow: hidden;
}


/* END NEWS */

@media (min-width: 993px) {
    /* NEWS */

    .all-news__wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

    .all-news {
        margin-top: 4.75rem;
    }

    .all-news__item img {
        margin-bottom: 1.5rem;
    }

    .all-news__date {
        margin-bottom: 1.5rem;
    }

    .all-news__title {
        margin-bottom: 2rem;
    }

    .all-news__wrapp {
        margin-bottom: 4.5rem;
    }

    /* END NEWS */
}

@media (max-width: 992px) {
    /* NEWS */
    .all-news__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 540px) {
        .all-news__wrapper {
            grid-template-columns: repeat(1, 1fr);
        }
    }

    .all-news {
        margin-top: 2.5rem;
    }

    .all-news__item img {
        margin-bottom: 1rem;
    }

    .all-news__date {
        margin-bottom: 0.5rem;
    }

    .all-news__title {
        margin-bottom: 0.5rem;
    }

    .all-news__wrapp {
        margin-bottom: 2.5rem;
    }

    /* END NEWS */
}