/* css/02_components.css */

/* Стили для модального окна новостей */

.news-image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 12, 0.9); /* Более плотный фон */
    display: none; /* Изначально скрыто */
    align-items: center;
    justify-content: center;
    z-index: 1070; /* Выше, чем другие модальные окна */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.news-image-modal-overlay.is-visible {
    display: flex;
    opacity: 1;
}

.news-image-modal-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.news-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s;
}
.news-modal-close:hover {
    transform: scale(1.1);
}
