

/* Start:/bitrix/templates/dn2020/components/bitrix/system.pagenavigation/news-list/style.css?1742913324436*/
.load-more-items{
    text-align: center;
    margin: 0 auto 25px;
    padding: 20px 10px;
    background: #fff;
    color: #000;
    cursor: pointer;
    border: 1px solid #f79322;
    transition: 0.2s linear;
}
.load-more-items:hover{
    background: #f9f9f9;
    color: #f79322;
}
.loading-indicator {
    text-align: center;
    margin: 20px auto;
}
.loading-indicator img {
    width: 50px;
    height: 50px;
}
/* End */


/* Start:/bitrix/templates/dn2020/components/bitrix/news.list/video_list2024/style.css?17836069603229*/
.video-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
}

.video-masonry .col-12 {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 0;
    height: 100%;
}

@media (max-width: 767.98px) {
    .video-masonry {
        grid-template-columns: 1fr;
    }
}

/* ===== 3. КАРТОЧКА (общая структура) ===== */
.video-masonry .news-list-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

/* ===== 4. БЛОК С ИЗОБРАЖЕНИЕМ (фиксированное соотношение) ===== */
.video-masonry .news-item {
    aspect-ratio: 16 / 9;          /* фиксируем пропорции */
    width: 100%;
    background-color: #e9ecef;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    /* flex: 1; – удалено */
    /* min-height: 250px; – удалено или закомментировано */
}

/* Обёртка картинки – занимает всю высоту родителя */
.video-masonry .video-image-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f8f8;
    /* flex: 1; – удалено */
}

.video-masonry .video-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 5. ВИДЕО-КОНТЕЙНЕР ===== */
.video-container {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== 6. БЛОК КОНТЕНТА ===== */
.video-masonry .content {
    flex: 1;                       /* занимает оставшееся пространство */
    display: flex;
    flex-direction: column;
    padding: 10px 15px 12px;
    background-color: #f0f0f0;
}

/* Верхняя часть (дата и заголовок) – растягивается, выталкивая кнопку */
.video-masonry .top-part {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Кнопка – прижимается к нижнему краю */
.content .btn-wrapper {
    margin-top: auto;
    width: 100%;
}

/* Дополнительные стили для даты и заголовка (можно оставить ваши) */
.content .infotitle {
    margin-bottom: 5px;
}

.content .data {
    font-size: 0.9rem;
    color: #666;
}

/* ===== 7. КАСТОМНАЯ КНОПКА (оставлена ваша) ===== */
.custom-btn {
    background-color: #f79322;
    color: white;
    border: none;
    width: 100%;
}

.custom-btn:hover {
    background-color: black;
    color: white;
}

/* ===== 8. СТИЛИ ДЛЯ НОВЫХ НОВОСТЕЙ (рамка) ===== */
.new-item .news-item {
    border: 2px solid #f79322;
    box-sizing: border-box;
}

.new-item .content {
    background-color: #f79322;
    font-weight: bold;
    box-sizing: border-box;
}

.new-item .content a:hover {
    color: #ffffff;
}
/* End */
/* /bitrix/templates/dn2020/components/bitrix/system.pagenavigation/news-list/style.css?1742913324436 */
/* /bitrix/templates/dn2020/components/bitrix/news.list/video_list2024/style.css?17836069603229 */
