

/* 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 */
/* /local/components/partner/organization/templates/.default/style.css?17791120515626 */
