.articles-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
    margin: 0 auto;
}

.article-title{
    display: flex;
    justify-content: center;
    font-family: "Snell Roundhand", sans-serif;
    gap: 5%;
    align-items: center;
    width: 100%;
    font-size: 1.5vmax;
    margin-top: 2vmax;
}

/* Контейнер статей */
.articles {
    display: flex;
    flex-direction: column;
    gap: 3vmax;
    margin: 2vmax 0;
}

/* Карточка статьи */
.article {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    gap: 2vmax;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Медиа (фото/видео) - 40% ширины */
.article-media {
    flex: 0 0 40%;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.article-media img,video {
    display: block;
    width: 100%;
    height: 20vmax;
    object-fit: cover; /* Обеспечиваем сохранение пропорций */
    transition: transform 0.3s ease; /* Добавляем плавное изменение при наведении */
}

.article-media img:hover {
    transform: scale(1.05); /* При наведении изображение увеличивается */
    cursor: pointer; /* Курсор в виде руки при наведении */
}

.article-media video:hover{
    transform: scale(1.05); /* При наведении изображение увеличивается */
    cursor: pointer; /* Курсор в виде руки при наведении */
}

.article-content{
    display: flex;
    flex-direction: column;
    padding: 2vmax 2vmax 2vmax 0;
    gap: 2vmax;
    font-size: 1.1vmax;
}

.article-content a {
    text-decoration: none; /* Убирает подчёркивание */
    font-weight: bold; /* Жирный шрифт */
    color: #1d1d1d;
}

.article-content a:hover{
    text-decoration: underline;
}

.article-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 2vmax;
    justify-content: space-between;
    align-items: center;
}

.article-meta a{
    color: white;
    font-weight: normal;
}

.paginator{
    display: flex;
    flex-direction: column;
    gap: 1vmax;
    margin-bottom: 2vmax;
}

.pagination{
    display: flex;
    gap: 2vmax;
}


/* МЕДИА*/


@media (max-width: 768px) {
    .articles-container{
        width: 80%;
    }

    .article-title{
        font-size: 1.7vmax;
    }

    .article {
        flex-direction: column;
    }

    .article-content{
        padding: 0 1vmax 2vmax 3vmax;
        font-size: 1.4vmax;
    }
}
