

/* Start:/local/templates/main_b2b/components/bitrix/news.detail/media_detail/style.css?17848170865110*/
.single-media-page {
    background: #fff;
}

.single-media-page__head {
    margin-bottom: 37px;
}

.single-media-page__header {
    width: 100%;
    text-align: left;
}

.single-media-page__title {
    text-align: center;
    margin-bottom: 37px;
    font-size: 56px;
    font-weight: 700;
    color: var(--b2b-accent);
}

/* Дата проведения + чип — по центру под заголовком (он тоже центрирован) */
.single-media-page__info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.single-media-page__date {
    font-size: 18px;
    color: #123670;
}

.single-media-page__chip .chip-component {
    padding: 12px;
    border-radius: 10px;
    color: var(--b2b-accent) !important;
}

/* Текст вкладки «Подробнее» */
.single-media-page__text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--b2b-accent);
    margin-bottom: 40px;
}

.single-media-page__text > *:first-child {
    margin-top: 0;
}

.single-media-page__text > *:last-child {
    margin-bottom: 0;
}

.single-media-page__text p {
    margin: 0 0 16px;
}

/* Картинки, вставленные редактором в текст, приходят в исходном разрешении
   и раздували макет — вписываем в контентную колонку. */
.single-media-page__text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px 0;
    border-radius: 12px;
}

.single-media-page__text table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .single-media-page__text {
        font-size: 16px;
        margin-bottom: 32px;
    }
}

/* Галерея - 2 колонки */
.media-gallery {
    margin-bottom: 60px;
}

.media-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .media-gallery__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.media-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

.media-gallery__image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

.media-gallery__image {
    width: 100%;
    height: auto;
    aspect-ratio: 632 / 492;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.media-gallery__image:hover {
    transform: scale(1.02);
}

/* ===== LIGHTBOX ===== */
.media-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.media-lightbox.active {
    display: flex;
}

.media-lightbox__img-wrap {
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    border-radius: 12px;
    user-select: none;
    transition: opacity 0.2s ease;
}

.media-lightbox__img.loading {
    opacity: 0;
}

.media-lightbox__close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10000;
}

.media-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.media-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10000;
}

.media-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.media-lightbox__nav--prev { left: 16px; }
.media-lightbox__nav--next { right: 16px; }

.media-lightbox__nav.hidden {
    display: none;
}

.media-lightbox__counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: inherit;
    pointer-events: none;
}

@media screen and (max-width: 768px) {
    .media-lightbox__img-wrap {
        max-width: 100vw;
        max-height: calc(100vh - 100px);
        padding: 0 8px;
    }

    .media-lightbox__nav--prev { left: 6px; }
    .media-lightbox__nav--next { right: 6px; }

    .media-lightbox__nav {
        width: 40px;
        height: 40px;
    }
}

/* Слайдер других материалов */
.media-cards-slider {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .single-media-page__title {
        font-size: 32px;
    }
    
    .single-media-page__info {
        gap: 16px;
    }
    
    .single-media-page__date {
        font-size: 14px;
    }
}
/* End */
/* /local/templates/main_b2b/components/bitrix/news.detail/media_detail/style.css?17848170865110 */
