 /* Стили для кнопки */
.video-button {
    background-color: #ed1d24;
    color: white;
    border: none;
    border-radius: 20px;
    width: 280px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    display: block; /* Чтобы margin auto работал, если нужно центрировать */
}

.video-button:hover {
    opacity: 0.9;
}

/* Стили для модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон */
}

/* Содержимое модального окна */
.modal-content {
    position: relative;
    background-color: #000; /* Фон для видео */
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 5px;
    width: calc(853px + 40px); /* Ширина iframe + padding */
    max-width: 90%;
    text-align: center;
}

/* Кнопка закрытия */
.close {
    color: #aaa;
    float: right;
    font-size: 55px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 1001;
    cursor: pointer;
    /* color: red; */
}

.close:hover,
.close:focus {
    color: white;
}

/* Стили для iframe */
.modal-iframe {
    width: 100%; /* Заполняет ширину .modal-content */
    height: 480px; /* Высота iframe */
    border: none;
    margin-top: 30px; /* Отступ сверху, чтобы не перекрывать крестик */
    background-color: #000; /* Фон, если видео не загрузится */
}

/* Адаптивность */
@media (max-width: 900px) {
    .modal-content {
        width: 95%;
    }
    .modal-iframe {
        height: auto;
        aspect-ratio: 16 / 9; /* Сохраняет пропорции 16:9 */
    }
}
