/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Основной контент сайта */
body.modal-open {
    overflow: hidden; /* Отключение прокрутки на фоне */
}

/* Стили для модального контента */
.modal-content {
    background-color: #1a1e21;
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Стили для закрывающей кнопки */
.close {
    color: #056FFF;
    background: rgba(26, 30, 33, .9);
    border-radius: 0px 0px 0px 10px;
    font-size: 3.2rem;
    font-weight: lighter;
    text-align: center;
    height: 3.2rem;
    width: 3.2rem !important;
    line-height: 2.5rem;
    cursor: pointer;
    position: absolute;
    z-index: 2;
    right: 0;
    transition: all .5s;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
}

/* Стили для контента в модальном окне */
.modal-content .entry-content {
    height: 100vh; /* Ограничиваем высоту контента */
    overflow-y: auto; /* Добавляем скролл для контента, если он не помещается */
}

/* Стили для встроенных медиа */
.modal-content iframe,
.modal-content video {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

