

/* Start:/local/components/partner/organization/templates/.default/style.css?17791120515626*/
.organization-card {
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}
.organization-card--404 {
    text-align: center;
    padding: 48px 16px;
}

.org-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
    border-radius: 12px;
    padding: 16px 0 0;
}
.org-header__slider {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 8px;
}
.org-header__slider::-webkit-scrollbar { display: none; }
.org-header__slider-track {
    display: flex;
    gap: 8px;
    padding: 0 4px;
}
.org-header__slide {
    flex: 0 0 auto;
    width: 220px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    background: #f2f2f2;
    cursor: zoom-in;
}
.org-header__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.org-header__slide[data-more="1"]::after {
    content: 'Ещё';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}
.org-header__info {
    padding: 8px 4px 4px;
}
.org-header__title {
    font-size: 1.6rem;
    margin: 0 0 6px;
    line-height: 1.2;
}
.org-header__announce {
    margin: 0 0 6px;
    color: #555;
    font-size: 0.9rem;
}
.org-header__work-time {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #2b7a2b;
}

.org-tabs {
    display: flex;
    gap: 4px;
    margin-top: 12px;
    border-bottom: 1px solid #e5e5e5;
    overflow-x: auto;
}
.org-tabs::-webkit-scrollbar { display: none; }
.org-tabs__btn {
    flex: 0 0 auto;
    background: none;
    border: 0;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.org-tabs__btn:hover { color: #000; }
.org-tabs__btn.is-active {
    color: var(--bs-primary, #0d6efd);
    border-bottom-color: currentColor;
    font-weight: 600;
}

.org-content {
    margin-top: 16px;
}
.org-tab-panel {
    display: none;
}
.org-tab-panel.is-active {
    display: block;
}

/* Info tab */
.org-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.org-info__section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
}
.org-info__section h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 600;
}
.org-info__description {
    line-height: 1.5;
    color: #333;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.org-info__description img { max-width: 100%; height: auto; border-radius: 8px; }
.org-info__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
}
.org-info__contacts li {
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}
.org-info__contacts li:last-child { border-bottom: 0; }
.org-info__contacts a { text-decoration: none; }
.org-info__contacts a:hover { text-decoration: underline; }
.org-info__contacts .label {
    display: inline-block;
    min-width: 90px;
    color: #888;
    font-size: 0.85rem;
}
@media (max-width: 480px) {
    .org-info__contacts .label {
        display: block;
        min-width: 0;
        margin-bottom: 2px;
    }
}
.org-info__map-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}
.org-info__map-btn:hover { color: #fff; opacity: 0.92; }

.org-info__work-time-grid {
    width: 100%;
    border-collapse: collapse;
}
.org-info__work-time-grid td {
    padding: 6px 8px;
    border-bottom: 1px dashed #eee;
    font-size: 0.9rem;
}
.org-info__work-time-grid td + td {
    white-space: nowrap;
    text-align: right;
}
.org-info__work-time-grid tr.is-today {
    background: #f6fbff;
    font-weight: 600;
}

/* Photo tab */
.org-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}
.org-photo-grid__item {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #f2f2f2;
    cursor: zoom-in;
}
.org-photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Photo lightbox (Bootstrap modal + carousel) */
.org-photo-modal .modal-dialog {
    max-width: 95vw;
    margin: 16px auto;
}
.org-photo-modal .modal-content {
    background: transparent;
    border: 0;
}
.org-photo-modal .carousel-item img {
    display: block;
    margin: 0 auto;
    width: auto !important;       /* override Bootstrap .w-100 from template */
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}
@media (max-width: 768px) {
    .org-photo-modal .modal-dialog {
        max-width: 100vw;
        margin: 0;
    }
    .org-photo-modal .carousel-item img {
        max-height: 90vh;
    }
}

@media (min-width: 768px) {
    .org-header__slide { width: 260px; height: 180px; }
    .org-header__title { font-size: 2rem; }
}
@media (min-width: 1024px) {
    .org-info {
        grid-template-columns: 2fr 1fr;
    }
    .org-info__section--description { grid-column: 1 / -1; }
}

/* When partner:afisha / partner:newslist are embedded inside the org page,
   suppress their stand-alone padding so they share the org-card container. */
.afisha-page--embedded,
.news-page--embedded {
    padding: 0;
    margin: 0;
}

/* End */


/* Start:/local/components/partner/newslist/templates/.default/style.css?17791120514339*/
.news-page { padding: 16px; max-width: 1200px; width: 100%; min-width: 0; margin: 0 auto; box-sizing: border-box; }

.news-title { font-size: 24px; margin: 8px 0 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.news-grid { display: grid; grid-template-columns: 1fr; gap: 16px; grid-auto-rows: 1fr; }
@media (min-width: 640px)  { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-empty { grid-column: 1 / -1; text-align: center; color: #777; padding: 40px; }
.news-grid__sentinel { grid-column: 1 / -1; height: 1px; }

.news-card {
    display: block; background: #fff; border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    overflow: hidden; cursor: pointer;
    display: flex; flex-direction: column;
}
.news-card__cover {
    aspect-ratio: 16 / 9; width: 100%;
    background-size: cover; background-position: center; background-color: #eee;
    position: relative;
}
.news-card__overlay {
    position: absolute; inset: 0; display: flex;
    align-items: flex-start; padding: 10px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}
.news-card__org {
    color: #fff; font-size: 13px; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    filter: drop-shadow(1px 1px 4px #161616) drop-shadow(-1px -1px 4px #161616);
}

.news-card__meta {
    padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px;
    flex: 1 1 auto;
}
.news-card__name {
    margin: 0; font-weight: 600; font-size: 14px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__footer {
    margin-top: auto;
    display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
    font-size: 12px; color: #777;
}
.news-card__category {
    text-transform: uppercase; letter-spacing: .5px;
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-card__date {
    flex-shrink: 0; white-space: nowrap;
}

/* === Floating to-top button === */
.news-to-top {
    position: fixed; right: 50px; bottom: 180px; z-index: 99;
    width: 48px; height: 48px; border: none; border-radius: 50%;
    background-color: #007bff; color: #fff; font-size: 24px; line-height: 1;
    cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    display: flex; align-items: center; justify-content: center; padding: 0;
}
.news-to-top[hidden] { display: none; }
@media (max-width: 600px) {
    .news-to-top { right: 25px; bottom: 170px; }
}

/* === Detail modal === */
.news-detail-modal .modal-content { position: relative; }
.news-detail-modal__close {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    width: 32px; height: 32px; padding: 0;
    border: 2px solid #222; border-radius: 50%; background-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 2px 6px rgba(0, 0, 0, .35);
    opacity: 1; --bs-btn-close-color: #000; --bs-btn-close-opacity: 1;
}
.news-detail-modal__close:hover { background-color: #fff; }
.news-detail-modal__loader { padding: 48px 16px; text-align: center; color: #777; }
.news-detail-modal__carousel { background: #fff; }
.news-detail-modal__carousel .carousel-item { height: 50vh; }
.news-detail-modal__carousel .carousel-item img {
    width: 100%; height: 100%; object-fit: contain;
}
.news-detail-modal__content { padding: 16px 20px 20px; }
.news-detail-modal__category {
    font-size: 12px; color: #777; text-transform: uppercase;
    letter-spacing: .5px; margin-bottom: 4px;
}
.news-detail-modal__title { font-size: 20px; font-weight: 600; margin: 0 0 12px; line-height: 1.25; }
.news-detail-modal__date { font-size: 13px; color: #777; margin-bottom: 12px; }
.news-detail-modal__org { font-size: 14px; color: #1976d2; margin-bottom: 12px; }
.news-detail-modal__org a { color: inherit; text-decoration: underline; }
.news-detail-modal__org a:hover { text-decoration: none; }
.news-detail-modal__desc { font-size: 14px; line-height: 1.5; color: #222; }
.news-detail-modal__desc img { max-width: 100%; height: auto; }
.news-detail-modal__source { margin-top: 12px; font-size: 13px; color: #777; }
.news-detail-modal__source a { color: #1976d2; }

/* End */
/* /local/components/partner/organization/templates/.default/style.css?17791120515626 */
/* /local/components/partner/newslist/templates/.default/style.css?17791120514339 */
