.video-container > h1 {
    text-align: center;
    color: #003C09;
}

.video-section {
    margin: 30px 0;
}

.video-section > h2 {
    text-align: center;
    color: #003C09;
    margin-bottom: 20px;
    font-size: 24px;
}

.video-item {
    background: #e8ffec;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.video-item > h3 {
    text-align: center;
    color: #003C09;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px 0;
}

.video-wrapper {
    aspect-ratio: 16 / 9;
}

/* Fallback для старых браузеров */
@supports not (aspect-ratio: 16 / 9) {
    .video-wrapper {
        padding-bottom: 56.25%;
        height: 0;
    }
}

/* Стили для видео */
.video-wrapper .wp-video,
.video-wrapper video {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.video-wrapper video {
    object-fit: contain; /* или cover, если хотитм заполнить весь контейнер */
}

/* Для старых браузеров с padding-bottom */
@supports not (aspect-ratio: 16 / 9) {
    .video-wrapper .wp-video {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Адаптивная сетка для видео */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 30px 0;
}

/* Для планшетов и выше - 2 колонки */
@media (max-width: 1068px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}