﻿/* Страница новости */
.news-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Кнопка назад */
.back-button {
    background: none;
    border: none;
    padding: 0.5rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    color: var(--text-light);
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

    .back-button:hover {
        color: var(--text-soft);
        transform: translateX(-3px);
    }

/* Заголовок новости */
.news-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 200;
    line-height: 1.4;
    color: var(--text-rich);
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Мета-информация */
.news-meta {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 200;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.news-type {
    color: var(--text-soft);
    font-weight: 200;
}

/* Основной контент */
.news-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.news-main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.news-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 200;
    line-height: 1.8;
    color: var(--text-soft);
    white-space: pre-line;
}

/* Галерея на странице новости */
.news-gallery {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 200;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-rich);
    letter-spacing: 0.05em;
}

/* Сетка галереи - ВОЗВРАЩАЮ ВАШИ ОРИГИНАЛЬНЫЕ СЕЛЕКТОРЫ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

    .gallery-item:hover {
        transform: scale(1.02);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Видео превью */
.video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1;
}

/* Загрузка */
.loading {
    text-align: center;
    padding: 4rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-image,
.modal-video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 200;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10001;
    opacity: 0.9;
    text-shadow: 0 0 8px rgba(0,0,0,0.8), 0 0 2px black;
    transition: opacity 0.2s;
}

    .modal-close:hover {
        opacity: 1;
        transform: scale(1.1);
    }

/* Навигационные стрелки */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    border-radius: 50%;
    transition: all 0.2s;
    opacity: 0.8;
}

.modal-prev {
    left: -80px;
}

.modal-next {
    right: -80px;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-page {
        padding: 0 1.5rem;
    }

    .news-title {
        font-size: 2.5rem;
    }

    .news-meta {
        gap: 1rem;
        font-size: 0.75rem;
    }

    .modal-prev {
        left: -40px;
    }

    .modal-next {
        right: -40px;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .news-title {
        font-size: 2rem;
    }

    .news-meta {
        flex-direction: column;
        gap: 0.3rem;
        align-items: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }
}
/* Разрешаем тексту быть жирным внутри новости */
.news-text strong, .news-text b {
    font-weight: 700 !important;
}







