/* BOOK */

/* Модальное фоновое окно */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed; /* Остается на месте */
    z-index: 1; /* Находится сверху */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина */
    height: 100%; /* Полная высота */
    overflow: auto; /* Включить прокрутку, если необходимо */
    background-color: rgb(0,0,0); /* Запасной цвет */
    background-color: rgba(0,0,0,0.7); /* Черный с прозрачностью */
	overscroll-behavior: contain;  
}


/* Модальное содержимое окна */
.modal-content {
    background-color: var(--white-color);
    margin: 5% auto; /* 15% сверху и по центру */
    line-height: 140%;
    scrollbar-width: 10%;
    padding: 30px 20px 20px 20px;
    border-radius: 15px;
    width: 100%;
    max-width: 1024px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

/* Скрываем scrollbar для Chrome, Safari и Opera */
.modal-content::-webkit-scrollbar {
  display: none;
}

.modal-content img {
  width: 15vh; /* Установка ширины изображений в модальном окне как 15% от высоты окна */
  border-radius: 10px;
  margin: 0 5px;
  margin-bottom: 20px;
}



/* Кнопка закрытия */
.close {
    color: var(--H-color);
    float: right;
    font-size: 36px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}