

/* Start:/local/templates/redteslamak/components/bitrix/news.detail/news_with_sidebar/style.css?17776362524548*/
/* Стили исключительно для нового шаблона новости с сайдбаром */
.news-with-sidebar-container {
    font-family: inherit;
    padding-bottom: 60px;
}

.news-sidebar-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 30px;
}

/* Основная колонка контента */
.news-sidebar-main {
    min-width: 0; /* предотвращает вылезание длинных ссылок из грида */
}

.news-detail-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-dark, #333);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.article-category {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--brand-red, #ED3237);
    font-weight: 600;
}

.news-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 30px;
}

.news-main-image-placeholder {
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 12px;
    margin-bottom: 30px;
    color: #999;
}

.article-text-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.article-text-body p {
    margin-bottom: 15px;
}

.article-text-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Галерея в основной колонке */
.news-sidebar-gallery {
    margin-top: 40px;
    margin-bottom: 40px;
}

.news-sidebar-gallery h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--brand-dark, #333);
}

.news-sidebar-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.news-gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.news-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-gallery-item:hover img {
    transform: scale(1.05);
}

/* Боковая колонка (сайдбар) */
.news-sidebar-aside {
    flex-shrink: 0;
}

.news-sidebar-widget {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    position: sticky;
    top: 30px; /* прилипает при скролле */
}

.news-sidebar-widget h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--brand-dark, #333);
}

.news-sidebar-placeholder {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* Мобильная адаптация */
@media (max-width: 992px) {
    .news-sidebar-grid {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar-widget {
        position: static;
    }
    
    .news-detail-content h1 {
        font-size: 26px;
    }
}

/* Стили для Vanilla JS Lightbox (Галерея без Fancybox) */
.news-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.news-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.news-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.news-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    user-select: none;
}

.news-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 100000;
    transition: color 0.3s ease;
}

.news-lightbox-close:hover {
    color: var(--brand-red, #ED3237);
}

.news-lightbox-prev,
.news-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 100000;
}

.news-lightbox-prev:hover,
.news-lightbox-next:hover {
    color: var(--brand-red, #ED3237);
}

.news-lightbox-prev { left: 20px; }
.news-lightbox-next { right: 20px; }
/* End */
/* /local/templates/redteslamak/components/bitrix/news.detail/news_with_sidebar/style.css?17776362524548 */
