:root {
    --accent: #FBA61C;
    --accent-dark: #E69206;
    --accent-hover: #FFB32F;
    --accent-text: #A35C00;
    --accent-text-hover: #7A4500;
    --on-accent: #1A1A1A;
    --accent-rgb: 251, 166, 28;
    --accent-border-tint: #FEE9C6;
    --ink: #1A2430;
    --ink-soft: #4A5563;
    --muted: #77808D;
    --muted-light: #9AA2AE;
    --border: #E9ECF0;
    --border-strong: #DFE3E8;
    --bg: #F6F7F9;
    --bg-page: #EEF0F3;
    --white: #fff;
    --green-bg: #EAF7EE;
    --green: #1E7A45;
    --orange-bg: #FEF4E3;
    --serif: 'Newsreader', Georgia, serif;
    --sans: 'Figtree', system-ui, sans-serif;

    /* Bootstrap theme */
    --bs-primary: #FBA61C;
    --bs-primary-rgb: 251, 166, 28;
    --bs-primary-bg-subtle: #FEF4E3;
    --bs-primary-border-subtle: #FEE9C6;
    --bs-primary-text-emphasis: #7A4500;
    --bs-body-font-family: var(--sans);
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.5;
    --bs-body-color: #1A2430;
    --bs-body-color-rgb: 26, 36, 48;
    --bs-body-bg: #EEF0F3;
    --bs-body-bg-rgb: 238, 240, 243;
    --bs-secondary-color: #77808D;
    --bs-heading-color: inherit;
    --bs-link-color: #A35C00;
    --bs-link-color-rgb: 163, 92, 0;
    --bs-link-hover-color: #7A4500;
    --bs-link-hover-color-rgb: 122, 69, 0;
    --bs-link-decoration: none;
    --bs-border-color: #E9ECF0;
    --bs-border-radius: 9px;
    --bs-border-radius-sm: 7px;
    --bs-border-radius-lg: 14px;
    --bs-border-radius-xl: 16px;
    --bs-focus-ring-color: rgba(251, 166, 28, .25);
    --bs-code-color: #4A5563;
}

html {
    scroll-behavior: smooth;
}
body {
    -webkit-font-smoothing: antialiased;
}

/* Vrstva "base": přebíjí Bootstrap, ale prohrává s každým nevrstveným pravidlem níže. */
@layer base {
    a {
        text-decoration: none;
    }
    img {
        max-width: 100%;
        display: block;
    }
    h1, h2, h3, h4, h5, h6 {
        font-weight: 700;
    }

    /* Výstavy: vrátit výchozí chování prohlížeče (jako před zavedením Bootstrapu). */
    :is(.exhibition-public, .canvas-block-preview, .gallery-lightbox) {
        line-height: normal;
    }
    :is(.exhibition-public, .canvas-block-preview, .gallery-lightbox)
        :is(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dt, dd, figure, blockquote, address, pre, hr, legend, fieldset,
        small, mark, sub, sup, code, kbd, table, caption, th, td, summary,
        label:not(.form-label, .form-check-label),
        button:not(.btn, .btn-close),
        input:not(.form-control, .form-check-input, .form-range),
        select:not(.form-select),
        textarea:not(.form-control)) {
        margin: revert;
        padding: revert;
        font-size: revert;
        font-weight: revert;
        line-height: revert;
        font-family: revert;
        border-radius: revert;
        text-align: revert;
        color: revert;
        cursor: revert;
    }
    :is(.exhibition-public, .canvas-block-preview, .gallery-lightbox) :is(svg, iframe) {
        vertical-align: revert;
    }
    :is(.exhibition-public, .canvas-block-preview, .gallery-lightbox) a:not(.btn) {
        color: var(--accent);
        text-decoration: none;
    }
    :is(.exhibition-public, .canvas-block-preview, .gallery-lightbox) a:not(.btn):hover {
        color: var(--accent-dark);
    }
}

/* Výstavy si drží původní akcent a Bootstrap komponenty v nich dědí design výstavy. */
.exhibition-body, .exhibition-public, .canvas-block-preview, .gallery-lightbox {
    --accent: #E07B18;
    --accent-dark: #C2660A;
    --accent-hover: #C96C0E;
    --orange-bg: #FDF2E4;
    --accent-text: #C2660A;
    --accent-text-hover: #C2660A;
    --bs-body-color: var(--ex-color-body, var(--ex-ink, #141A22));
    --bs-body-bg: var(--ex-bg, #FBF9F6);
    --bs-secondary-color: var(--ex-muted, #5A6472);
    --bs-body-font-family: var(--ex-font-body, var(--sans));
    --bs-link-color: var(--accent);
    --bs-link-hover-color: var(--accent-dark);
}
:where(.exhibition-public, .canvas-block-preview) .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14.5px;
    line-height: normal;
    padding: 12px 20px;
    cursor: pointer;
    transition: background .15s;
}
:where(.exhibition-public, .canvas-block-preview) .btn-primary {
    background: var(--accent);
    color: #fff;
}
:where(.exhibition-public, .canvas-block-preview) .btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}
:where(.exhibition-public, .canvas-block-preview) .btn-outline-secondary {
    background: #fff;
    color: #4A5563;
    border: 1px solid #DFE3E8;
}
:where(.exhibition-public, .canvas-block-preview) .btn-outline-secondary:hover {
    background: #FAFBFC;
    color: #1A2430;
}
:where(.exhibition-public, .canvas-block-preview) .btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 9px;
}

.serif {
    font-family: var(--serif);
}
.container {
    max-width: 1168px;
    --bs-gutter-x: 48px;
}

/* Bootstrap komponenty v barvách Digitalo */
.btn {
    --bs-btn-padding-x: 19px;
    --bs-btn-padding-y: 11px;
    --bs-btn-font-size: 14.5px;
    --bs-btn-font-weight: 600;
    --bs-btn-line-height: 1.25;
    --bs-btn-border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-sm {
    --bs-btn-padding-x: 13px;
    --bs-btn-padding-y: 7px;
    --bs-btn-font-size: 13px;
    --bs-btn-border-radius: 9px;
}
.btn-xs {
    --bs-btn-padding-x: 7px;
    --bs-btn-padding-y: 3px;
    --bs-btn-font-size: 11.5px;
    --bs-btn-border-radius: 6px;
}
.btn-primary {
    --bs-btn-color: var(--on-accent);
    --bs-btn-bg: #FBA61C;
    --bs-btn-border-color: #FBA61C;
    --bs-btn-hover-color: var(--on-accent);
    --bs-btn-hover-bg: #FFB32F;
    --bs-btn-hover-border-color: #FFB32F;
    --bs-btn-active-color: var(--on-accent);
    --bs-btn-active-bg: #E69206;
    --bs-btn-active-border-color: #E69206;
    --bs-btn-disabled-color: var(--on-accent);
    --bs-btn-disabled-bg: #FBA61C;
    --bs-btn-disabled-border-color: #FBA61C;
    --bs-btn-focus-shadow-rgb: 251, 166, 28;
}
.btn-outline-primary {
    --bs-btn-color: var(--accent-text);
    --bs-btn-border-color: #FBA61C;
    --bs-btn-hover-color: var(--on-accent);
    --bs-btn-hover-bg: #FBA61C;
    --bs-btn-hover-border-color: #FBA61C;
    --bs-btn-active-color: var(--on-accent);
    --bs-btn-active-bg: #E69206;
    --bs-btn-active-border-color: #E69206;
    --bs-btn-focus-shadow-rgb: 251, 166, 28;
}
.btn-outline-secondary {
    --bs-btn-color: var(--ink-soft);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--border-strong);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: #FAFBFC;
    --bs-btn-hover-border-color: var(--border-strong);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-bg: #F2F4F7;
    --bs-btn-active-border-color: var(--border-strong);
    --bs-btn-disabled-color: var(--muted);
    --bs-btn-disabled-border-color: var(--border-strong);
    --bs-btn-focus-shadow-rgb: 119, 128, 141;
}
.text-bg-primary {
    color: var(--on-accent) !important;
}
.form-control, .form-select {
    background-color: #fff;
    border-color: #E2E5EA;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: inherit;
    color: var(--ink);
}
.form-select {
    padding-right: 36px;
}
.form-control-sm, .form-select-sm {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
}
.form-select-sm {
    padding-right: 30px;
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: #FBA61C;
    box-shadow: 0 0 0 3px rgba(251, 166, 28, .25);
}
.form-check-input:checked {
    background-color: #E69206;
    border-color: #E69206;
}
.form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.form-text {
    font-size: 13px;
    color: var(--muted);
}
.pagination {
    --bs-pagination-color: var(--accent-text);
    --bs-pagination-hover-color: var(--accent-text-hover);
    --bs-pagination-focus-color: var(--accent-text-hover);
    --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(251, 166, 28, .25);
    --bs-pagination-active-bg: #FBA61C;
    --bs-pagination-active-border-color: #FBA61C;
    --bs-pagination-active-color: var(--on-accent);
    --bs-pagination-border-color: var(--border);
}
.nav {
    --bs-nav-link-color: var(--ink-soft);
    --bs-nav-link-hover-color: var(--accent-text);
}
.nav-underline {
    --bs-nav-underline-link-active-color: var(--ink);
    --bs-nav-link-color: var(--muted);
    --bs-nav-link-hover-color: var(--ink-soft);
}
.nav-underline .nav-link.active {
    border-bottom-color: var(--accent);
}
.nav-pills {
    --bs-nav-pills-link-active-bg: var(--orange-bg);
    --bs-nav-pills-link-active-color: var(--ink);
}
.card {
    --bs-card-bg: #fff;
    --bs-card-border-color: var(--border);
    --bs-card-border-radius: 14px;
    --bs-card-inner-border-radius: 13px;
    --bs-card-spacer-x: 20px;
    --bs-card-spacer-y: 18px;
    --bs-card-cap-bg: transparent;
    --bs-card-cap-padding-x: 20px;
}
.alert {
    --bs-alert-border-radius: 10px;
    --bs-alert-padding-x: 14px;
    --bs-alert-padding-y: 12px;
    font-size: 14px;
}
.badge {
    --bs-badge-font-weight: 600;
    --bs-badge-padding-x: 10px;
    --bs-badge-padding-y: 5px;
    --bs-badge-font-size: 12px;
}

.brand, .admin-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
}
.brand img, .admin-brand img {
    height: auto;
}

.badge {
    --bs-badge-border-radius: 999px;
}

.public-header {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
}
.public-nav {
    color: var(--ink-soft);
}
.public-nav a:not(.btn) {
    color: inherit;
}
.public-nav a:not(.btn):hover {
    color: var(--accent-text);
}

.citace-services-switcher {
    position: relative;
    flex: none;
}
.citace-apps-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath fill='%23fba61c' d='M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    cursor: pointer;
    transition: box-shadow .15s, border-color .15s;
}
.citace-apps-btn:hover,
.citace-apps-btn[aria-expanded="true"] {
    border-color: #DFE3E8;
    box-shadow: 0 4px 14px rgba(20, 30, 45, .08);
}
.citace-services-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(20, 30, 45, .12);
    z-index: 60;
}
.citace-services-menu[hidden] {
    display: none;
}
.citace-services-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
}
.citace-services-item:hover {
    background: var(--bg);
    color: var(--ink);
}
.citace-services-item.is-current {
    background: var(--orange-bg);
}
.citace-services-item-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}
.citace-services-item-desc {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted);
}
.site-main {
    min-height: calc(100vh - 160px);
}
/* Portály kolekcí (databáze citace) — obsah na bílém pozadí */
.portal-page .site-main {
    --bs-body-bg: #fff;
    --bs-body-bg-rgb: 255, 255, 255;
    background: #fff;
}
.portal-page .hub-hero {
    background: #fff;
}
/* Menu složek jako na digitalo.cz: položky oddělené čarou, zvýraznění při najetí */
.portal-folders .list-group-item {
    background: #fff;
}
.portal-folders .list-group-item:last-child {
    border-bottom-width: 0;
}
.portal-folders a {
    color: var(--bs-body-color);
}
.portal-folders a:hover {
    background: var(--bg);
}

.hero-platform {
    padding: 72px 0 56px;
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.eyebrow {
    font-size: 11.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-text);
    font-weight: 700;
}
.hero-title {
    margin: 14px 0 0;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -.025em;
    max-width: 760px;
    line-height: 1.08;
}
.hero-lead {
    margin: 16px 0 0;
    font-size: 16px;
    color: var(--muted);
    max-width: 620px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.section {
    padding: 56px 0;
}
.section-muted {
    background: #fff;
}
.link-arrow {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-text);
}

.card {
    overflow: hidden;
    color: inherit;
}
.card:hover {
    color: inherit;
}
.card-exhibition .card-thumb {
    aspect-ratio: 4/3;
    background: repeating-linear-gradient(135deg,#E8EBEF 0 8px,#DFE3E8 8px 16px);
    position: relative;
    overflow: hidden;
}
.card-exhibition .card-thumb.has-image {
    background: #DFE3E8;
}
.card-exhibition .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.hub-hero {
    padding: 56px 0 40px;
    background: #FBF9F6;
    border-bottom: 1px solid #EDEFF3;
}
.hub-title {
    margin: 14px 0 0;
    font-size: clamp(34px, 5vw, 44px);
    font-weight: 500;
    color: #141A22;
    letter-spacing: -.02em;
    max-width: 760px;
    line-height: 1.08;
}
.hub-lead {
    margin: 16px 0 0;
    font-size: 16px;
    color: var(--ink-soft);
    max-width: 620px;
    line-height: 1.6;
}
.hub-meta {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}
.hub-exhibitions-results.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.hub-clear-filters.is-hidden,
.hub-institutions-section.is-hidden {
    display: none;
}
.page-title {
    margin: 0 0 8px;
    font-size: 32px;
}

.public-footer {
    background: #141A22;
}
.footer-brand {
    font-weight: 700;
    font-size: 15px;
}
.footer-meta {
    font-size: 13px;
    color: #98A2AE;
    margin-top: 6px;
}
.footer-links a {
    color: #98A2AE;
}
.footer-links a:hover {
    color: #fff;
}

.institution-footer-bar {
    background: #141A22;
    color: #fff;
    padding: 32px 0;
}
.institution-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-page {
    min-height: calc(100vh - 80px);
}
.auth-card {
    width: min(520px, 100%);
}


/* Exhibition public skins */
.exhibition-body {
    min-height: 100vh;
}
.exhibition-public {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--ex-font-body, var(--sans));
    color: var(--ex-color-body, var(--ex-ink, #141A22));
    font-size: var(--ex-body-size, 15.5px);
}
.exhibition-public h1,
.exhibition-public h2,
.exhibition-public h3,
.exhibition-public h4,
.exhibition-public h5,
.exhibition-public h6,
.exhibition-content h1,
.exhibition-content h2,
.exhibition-content h3,
.exhibition-content h4,
.exhibition-content h5,
.exhibition-content h6,
.blocks-canvas h1,
.blocks-canvas h2,
.blocks-canvas h3,
.blocks-canvas h4,
.blocks-canvas h5,
.blocks-canvas h6 {
    font-family: var(--ex-font-heading, var(--serif));
    color: var(--ex-color-heading, var(--ex-ink, #141A22));
}
.exhibition-public h1, .exhibition-content h1, .blocks-canvas h1 {
    font-size: var(--ex-h1-size, 2.5rem);
    font-weight: var(--ex-h1-weight, 700);
    line-height: var(--ex-h1-lh, 1.1);
}
.exhibition-public h2, .exhibition-content h2, .blocks-canvas h2 {
    font-size: var(--ex-h2-size, 2rem);
    font-weight: var(--ex-h2-weight, 600);
    line-height: var(--ex-h2-lh, 1.15);
}
.exhibition-public h3, .exhibition-content h3, .blocks-canvas h3 {
    font-size: var(--ex-h3-size, 1.5rem);
    font-weight: var(--ex-h3-weight, 600);
    line-height: var(--ex-h3-lh, 1.2);
}
.exhibition-public h4, .exhibition-content h4, .blocks-canvas h4 {
    font-size: var(--ex-h4-size, 1.25rem);
    font-weight: var(--ex-h4-weight, 600);
    line-height: var(--ex-h4-lh, 1.25);
}
.exhibition-public h5, .exhibition-content h5, .blocks-canvas h5 {
    font-size: var(--ex-h5-size, 1.125rem);
    font-weight: var(--ex-h5-weight, 600);
    line-height: var(--ex-h5-lh, 1.3);
}
.exhibition-public h6, .exhibition-content h6, .blocks-canvas h6 {
    font-size: var(--ex-h6-size, 1rem);
    font-weight: var(--ex-h6-weight, 600);
    line-height: var(--ex-h6-lh, 1.35);
}
.exhibition-content,
.blocks-canvas {
    font-family: var(--ex-font-body, var(--sans));
    color: var(--ex-color-body, var(--ex-ink, #141A22));
    font-size: var(--ex-body-size, 15.5px);
    font-weight: var(--ex-body-weight, 400);
    line-height: var(--ex-body-lh, 1.55);
}
.exhibition-public figcaption,
.exhibition-public .gallery-caption,
.exhibition-public .text-image-caption,
.exhibition-public .partners-caption,
.exhibition-public .contact-image-caption,
.exhibition-public .iiif-caption,
.exhibition-content figcaption,
.exhibition-content .gallery-caption,
.exhibition-content .text-image-caption,
.exhibition-content .partners-caption,
.exhibition-content .contact-image-caption,
.exhibition-content .iiif-caption,
.blocks-canvas figcaption,
.blocks-canvas .gallery-caption,
.blocks-canvas .text-image-caption,
.blocks-canvas .partners-caption,
.blocks-canvas .contact-image-caption,
.blocks-canvas .iiif-caption {
    font-size: var(--ex-caption-size, 13px);
    font-weight: var(--ex-caption-weight, 400);
    line-height: var(--ex-caption-lh, 1.4);
    color: var(--ex-color-caption, var(--ex-muted, #5A6472));
}
.exhibition-public .hero-lead,
.exhibition-public .lead,
.exhibition-content .hero-lead,
.exhibition-content .lead,
.blocks-canvas .hero-lead,
.blocks-canvas .lead {
    font-size: var(--ex-lead-size, 1.125rem);
    font-weight: var(--ex-lead-weight, 400);
    line-height: var(--ex-lead-lh, 1.45);
}
.exhibition-nav,
.progress-track,
.exhibition-pager,
.exhibition-footer {
    flex: none;
}
.exhibition-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 0;
}
.exhibition-main .exhibition-content {
    flex: 1 1 auto;
    background: var(--ex-bg, #FBF9F6);
    color: var(--ex-ink, #141A22);
}
.exhibition-content > .exhibition-block-anchor:not(:last-child) {
    margin-bottom: var(--ex-block-gap, 0);
}
.exhibition-content > .exhibition-single-part:not(:last-child) {
    margin-bottom: var(--ex-block-gap, 0);
}
.exhibition-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px clamp(24px, 5vw, 56px);
    border-bottom: 1px solid #EDE8E0;
    background: var(--ex-nav-bg, #FBF9F6);
    color: var(--ex-ink, #141A22);
}
.exhibition-nav-start {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: none;
}
.exhibition-nav-brand {
    font-size: 18px;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
}
.exhibition-nav-brand:hover {
    color: var(--accent);
}
.exhibition-nav-divider {
    width: 1px;
    height: 28px;
    background: #E2DED6;
    flex: none;
}
.exhibition-nav-current {
    min-width: 0;
}
.exhibition-nav-eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ex-accent, var(--accent));
    font-weight: 700;
}
.exhibition-nav-current-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.exhibition-nav-scroll-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.exhibition-nav-scroll-wrap::before,
.exhibition-nav-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}
.exhibition-nav-scroll-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--ex-nav-bg, #FBF9F6), rgba(251, 249, 246, 0));
}
.exhibition-nav-scroll-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--ex-nav-bg, #FBF9F6), rgba(251, 249, 246, 0));
}
.exhibition-nav-scroll-wrap.has-scroll-left::before,
.exhibition-nav-scroll-wrap.has-scroll-right::after {
    opacity: 1;
}
.exhibition-nav-links {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}
.exhibition-nav-links::-webkit-scrollbar {
    display: none;
}
.exhibition-nav-link {
    flex: none;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    opacity: .72;
    white-space: nowrap;
}
.exhibition-nav-link:hover {
    opacity: 1;
    color: var(--accent);
}
.exhibition-nav-link.active {
    opacity: 1;
    color: var(--ex-ink, #141A22);
    background: #fff;
    border-color: #E2DED6;
    box-shadow: 0 1px 2px rgba(20, 30, 45, .06);
}
.exhibition-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}
.exhibition-nav-counter {
    font-size: 12px;
    font-weight: 600;
    color: var(--ex-muted, var(--muted));
    white-space: nowrap;
}
.exhibition-toc-toggle,
.exhibition-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E2DED6;
    border-radius: 9px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.exhibition-toc-toggle {
    padding: 7px 12px;
    white-space: nowrap;
}
.exhibition-toc-toggle:hover,
.exhibition-nav-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.exhibition-nav-arrow {
    width: 34px;
    height: 34px;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
}
.exhibition-nav-arrow.is-disabled {
    opacity: .35;
    pointer-events: none;
}
.exhibition-nav-chapters {
    flex-wrap: nowrap;
}
.exhibition-nav-chapters .exhibition-nav-scroll-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}
.exhibition-nav-chapters .exhibition-nav-links {
    justify-content: flex-end;
}
.exhibition-single-load {
    display: flex;
    justify-content: center;
    padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 72px);
}
.exhibition-single-load[hidden] {
    display: none;
}
.exhibition-single-load-btn {
    min-width: min(320px, 100%);
}
.exhibition-single-part[hidden] {
    display: none;
}
.exhibition-nav-sidebar {
    flex-wrap: nowrap;
}
.exhibition-nav-dropdown {
    flex-wrap: wrap;
    align-items: stretch;
    overflow: visible;
}
.exhibition-nav-dropdown .exhibition-menu-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    overflow: visible;
}
.exhibition-nav-dropdown .exhibition-menu-wrap::before,
.exhibition-nav-dropdown .exhibition-menu-wrap::after {
    display: none;
}
.exhibition-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-end;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 2px 0;
    overflow: visible;
}
.exhibition-menu-item {
    position: relative;
    flex: none;
}
.exhibition-menu-row {
    display: flex;
    align-items: center;
    gap: 0;
}
.exhibition-menu-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    opacity: .75;
    white-space: nowrap;
    text-decoration: none;
}
.exhibition-menu-item.has-children .exhibition-menu-link {
    padding-right: 6px;
    border-radius: 9px 0 0 9px;
}
.exhibition-menu-link:hover,
.exhibition-menu-item.is-active > .exhibition-menu-row .exhibition-menu-link {
    opacity: 1;
    color: var(--accent);
}
.exhibition-menu-link.active {
    opacity: 1;
    color: var(--ex-ink, #141A22);
    background: #fff;
    border: 1px solid #E2DED6;
    box-shadow: 0 1px 2px rgba(20, 30, 45, .06);
}
.exhibition-menu-item.has-children .exhibition-menu-link.active {
    border-right: 0;
    border-radius: 9px 0 0 9px;
}
.exhibition-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0 9px 9px 0;
    background: transparent;
    color: inherit;
    opacity: .65;
    cursor: pointer;
}
.exhibition-menu-toggle:hover,
.exhibition-menu-item.is-open > .exhibition-menu-row .exhibition-menu-toggle {
    opacity: 1;
    color: var(--accent);
}
.exhibition-menu-item.has-children .exhibition-menu-link.active + .exhibition-menu-toggle {
    border: 1px solid #E2DED6;
    border-left: 0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 30, 45, .06);
}
.exhibition-menu-toggle svg {
    transition: transform .15s ease;
}
.exhibition-menu-item.is-open > .exhibition-menu-row .exhibition-menu-toggle svg {
    transform: rotate(180deg);
}
.exhibition-menu-sub {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: max(100%, 180px);
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--ex-bg, #FBF9F6);
    border: 1px solid #E2DED6;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(20, 26, 34, .12);
    z-index: 30;
}
.exhibition-menu-item.is-open > .exhibition-menu-sub {
    display: block;
}
@media (hover: hover) and (pointer: fine) {
    .exhibition-menu-item:hover > .exhibition-menu-row .exhibition-menu-toggle svg,
    .exhibition-menu-item:focus-within > .exhibition-menu-row .exhibition-menu-toggle svg {
        transform: rotate(180deg);
    }
    .exhibition-menu-item:hover > .exhibition-menu-sub,
    .exhibition-menu-item:focus-within > .exhibition-menu-sub {
        display: block;
    }
}
.exhibition-menu-sublink {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    opacity: .8;
}
.exhibition-menu-sublink:hover {
    opacity: 1;
    background: color-mix(in srgb, var(--ex-muted, #5A6472) 10%, transparent);
    color: var(--accent);
}
.exhibition-menu-sublink.active {
    opacity: 1;
    background: #fff;
    border: 1px solid #E2DED6;
    color: var(--ex-ink, #141A22);
}
.exhibition-nav-hidden .exhibition-nav-start,
.exhibition-nav-single .exhibition-nav-start {
    flex: 1;
}
.exhibition-toc[hidden] {
    display: none;
}
.exhibition-toc {
    position: absolute;
    inset: 0;
    z-index: 40;
    pointer-events: none;
}
.exhibition-toc-overlay {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(20, 26, 34, .42);
    cursor: pointer;
    pointer-events: auto;
}
.exhibition-toc-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(380px, 100%);
    height: 100%;
    background: var(--ex-bg, #FBF9F6);
    color: var(--ex-ink, #141A22);
    border-left: 1px solid #E2DED6;
    box-shadow: -8px 0 32px rgba(20, 26, 34, .12);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    overflow: hidden;
}
.exhibition-toc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid #E2DED6;
}
.exhibition-toc-eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ex-accent, var(--accent));
    font-weight: 700;
}
.exhibition-toc-title {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}
.exhibition-toc-close {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: .65;
    padding: 0 4px;
}
.exhibition-toc-close:hover {
    opacity: 1;
}
.exhibition-toc-resume {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 16px 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(224, 123, 24, .08);
    border: 1px solid rgba(224, 123, 24, .18);
    color: inherit;
}
.exhibition-toc-resume-label {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: .75;
}
.exhibition-toc-resume-title {
    margin-top: 4px;
    font-size: 14.5px;
    font-weight: 600;
}
.exhibition-toc-list {
    flex: 1;
    overflow: auto;
    padding: 14px 10px 18px;
}
.exhibition-toc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: inherit;
    font-size: 14px;
    line-height: 1.35;
}
.exhibition-toc-item:hover {
    background: rgba(20, 26, 34, .04);
    color: var(--accent);
}
.exhibition-toc-item.active {
    background: rgba(224, 123, 24, .1);
    color: var(--ex-ink, #141A22);
    font-weight: 600;
}
.exhibition-toc-item.is-chapter {
    font-weight: 700;
    margin-top: 6px;
}
.exhibition-toc-item.depth-1 {
    padding-left: 28px;
}
.exhibition-toc-item.depth-2 {
    padding-left: 44px;
}
.exhibition-toc-mark {
    width: 22px;
    flex: none;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--ex-muted, var(--muted));
}
.exhibition-toc-item.is-chapter .exhibition-toc-mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 26, 34, .06);
    color: var(--ex-ink, #141A22);
}
.exhibition-toc-item-title {
    flex: 1;
    min-width: 0;
}
body.exhibition-toc-open {
    overflow: hidden;
}
.progress-track {
    height: 3px;
    background: #E7E2D9;
}
.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width .3s;
}
.exhibition-footer, .exhibition-pager {
    padding: 34px clamp(24px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.exhibition-footer {
    background: #141A22;
    color: #fff;
}
.exhibition-pager {
    border-top: 1px solid #E2DED6;
}
.pager-label {
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}
.pager-title {
    font-size: 19px;
    margin-top: 6px;
    line-height: 1.25;
    color: inherit;
}
.pager-prev, .pager-next {
    color: inherit;
    flex: 1;
}
.pager-next {
    text-align: right;
}
.pager-dots {
    display: flex;
    gap: 6px;
}
.pager-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #D7DBE1;
}
.pager-dots .dot.active {
    width: 22px;
    background: var(--accent);
}

.skin-archiv {
    --ex-bg: #FBF9F6;
    --ex-ink: #141A22;
    --ex-muted: #5A6472;
    --ex-accent: #E07B18;
    --ex-hero: #F3EDE4;
    --ex-nav-bg: #FBF9F6;
}
.skin-galerie {
    --ex-bg: #0F1216;
    --ex-ink: #F2F3F5;
    --ex-muted: #9AA2AE;
    --ex-accent: #E9A85C;
    --ex-hero: #15191F;
    --ex-nav-bg: #0F1216;
}
.skin-galerie .exhibition-nav {
    border-color: #1E242C;
}
.skin-galerie .exhibition-nav-scroll-wrap::before {
    background: linear-gradient(to right, #0F1216, rgba(15, 18, 22, 0));
}
.skin-galerie .exhibition-nav-scroll-wrap::after {
    background: linear-gradient(to left, #0F1216, rgba(15, 18, 22, 0));
}
.skin-galerie .exhibition-nav-link.active {
    background: #15191F;
    border-color: #242C35;
    color: #F2F3F5;
}
.skin-galerie .exhibition-menu-link.active,
.skin-galerie .exhibition-menu-item.has-children .exhibition-menu-link.active + .exhibition-menu-toggle,
.skin-galerie .exhibition-menu-sublink.active {
    background: #15191F;
    border-color: #242C35;
    color: #F2F3F5;
}
.skin-galerie .exhibition-menu-sub {
    background: #15191F;
    border-color: #242C35;
}
.skin-galerie .exhibition-menu-sublink:hover {
    background: rgba(255, 255, 255, .06);
}
.skin-galerie .exhibition-toc-toggle,
.skin-galerie .exhibition-nav-arrow {
    background: #15191F;
    border-color: #242C35;
}
.skin-galerie .exhibition-toc-panel {
    border-color: #242C35;
}
.skin-galerie .exhibition-footer {
    background: #0B0E11;
}
.skin-galerie .exhibition-pager {
    border-color: #242C35;
}
.skin-galerie .progress-track {
    background: #1C222A;
}
.skin-svetla {
    --ex-bg: #FFFFFF;
    --ex-ink: #111418;
    --ex-muted: #6B7480;
    --ex-accent: #E07B18;
    --ex-hero: #FFFFFF;
    --ex-nav-bg: #FFFFFF;
}

.block {
    padding: 0;
}
.exhibition-block-anchor {
    scroll-margin-top: 88px;
}
.block-hero .hero-inner {
    position: relative;
    padding: 0;
    background: var(--ex-hero);
    color: var(--ex-ink);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    width: 100%;
}
.block-hero .hero-inner.has-min-height:not(.is-fullscreen) {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.block-hero .hero-inner.has-min-height:not(.is-fullscreen) .hero-content {
    width: 100%;
}
.block-hero .hero-inner.is-fullscreen {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.block-hero .hero-inner.is-fullscreen .hero-content {
    width: 100%;
}
.block-hero .hero-inner .block-content-wrap {
    padding: var(--ex-block-padding-top, 32px) var(--ex-block-padding-x, 32px) var(--ex-block-padding-bottom, 32px);
}
.block-hero .hero-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.block-hero .hero-inner:not(.has-image)::before {
    background: repeating-linear-gradient(135deg,#1E262F 0 8px,#182028 8px 16px);
    opacity: calc(var(--overlay, 62) * 0.0085);
}
.skin-svetla .block-hero .hero-inner:not(.has-image)::before,
.skin-archiv .block-hero .hero-inner:not(.has-image)::before {
    opacity: .35;
}
.block-hero .hero-inner.has-image {
    color: #fff;
}
.block-hero .hero-inner.has-image::before {
    background: rgba(0, 0, 0, calc(var(--overlay, 62) / 100));
}
.block-hero .hero-inner.has-bg-color:not(.has-image)::before {
    display: none;
}
.block-hero .hero-inner.has-bg-token:not(.has-image) {
    color: var(--block-ink, var(--ex-ink));
}
.block-hero .hero-inner.has-bg-token:not(.has-image)::before {
    display: none;
}
.block-hero .hero-inner.has-bg-token:not(.has-image) .hero-lead {
    color: var(--block-muted, var(--ex-muted));
}
.block-hero .hero-inner.has-bg-token.has-bg-token-accent:not(.has-image) .eyebrow {
    color: #E9A85C;
}
.has-bg-token .block-title,
.has-bg-token .section-heading-title,
.has-bg-token .title-card-heading {
    color: var(--block-ink, inherit);
}
.has-bg-token .block-text,
.has-bg-token .title-card-subtitle,
.has-bg-token .text-image-caption {
    color: var(--block-muted, inherit);
}
.has-bg-token .faq-title,
.has-bg-token .quote-text,
.has-bg-token .gallery-title,
.has-bg-token .partners-title,
.has-bg-token .contact-title,
.has-bg-token .map-title,
.has-bg-token .credits-title,
.has-bg-token .quiz-title,
.has-bg-token .survey-title,
.has-bg-token .iiif-title {
    color: var(--block-ink, var(--ex-ink));
}
.has-bg-token .faq-lead,
.has-bg-token .faq-header .eyebrow,
.has-bg-token .quote-source,
.has-bg-token .gallery-lead,
.has-bg-token .gallery-header .eyebrow,
.has-bg-token .gallery-caption,
.has-bg-token .gallery-empty,
.has-bg-token .partners-lead,
.has-bg-token .partners-header .eyebrow,
.has-bg-token .partners-caption,
.has-bg-token .partners-empty,
.has-bg-token .contact-lead,
.has-bg-token .contact-header .eyebrow,
.has-bg-token .contact-group-title,
.has-bg-token .contact-label,
.has-bg-token .contact-note,
.has-bg-token .contact-image-caption,
.has-bg-token .contact-empty,
.has-bg-token .map-lead,
.has-bg-token .map-header .eyebrow,
.has-bg-token .map-empty,
.has-bg-token .credits-lead,
.has-bg-token .credits-header .eyebrow,
.has-bg-token .credits-role,
.has-bg-token .credits-note,
.has-bg-token .credits-thanks-title,
.has-bg-token .credits-meta,
.has-bg-token .credits-empty,
.has-bg-token .quiz-lead,
.has-bg-token .quiz-header .eyebrow,
.has-bg-token .quiz-progress,
.has-bg-token .quiz-empty,
.has-bg-token .survey-lead,
.has-bg-token .survey-header .eyebrow,
.has-bg-token .survey-empty,
.has-bg-token .survey-label,
.has-bg-token .survey-error,
.has-bg-token .iiif-lead,
.has-bg-token .iiif-header .eyebrow,
.has-bg-token .iiif-caption,
.has-bg-token .iiif-empty {
    color: var(--block-muted, var(--ex-muted));
}
.has-bg-token .iiif-side-text {
    color: var(--block-ink, inherit);
}
.block-text-image .text-image-inner.has-bg-token,
.block-text .text-block-inner.has-bg-token,
.block-text .text-block-inner.has-bg-color {
    border-radius: 12px;
    padding: clamp(18px, 3vw, 32px);
}
.block-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: none;
    width: 100%;
}
.block-hero .hero-inner.align-center .hero-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.block-hero .hero-inner.align-right .hero-content {
    margin-left: auto;
    text-align: right;
}
.block-hero .hero-inner.align-left .hero-content {
    text-align: left;
}
.block-hero .hero-inner > * {
    position: relative;
}
.block-hero .eyebrow {
    font-size: 11.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ex-accent);
}
.block-hero .hero-inner.has-image .eyebrow {
    color: #E9A85C;
}
.block-hero .hero-heading {
    font-size: var(--ex-h1-size, clamp(32px, 5vw, 58px));
    font-weight: var(--ex-h1-weight, 500);
    line-height: var(--ex-h1-lh, 1.05);
    margin: 6px 0 0;
    max-width: 820px;
    font-family: var(--ex-font-heading, var(--serif));
    color: var(--ex-color-heading, inherit);
}
.block-hero .hero-lead {
    font-size: var(--ex-lead-size, clamp(14px, 2vw, 16px));
    font-weight: var(--ex-lead-weight, 400);
    line-height: var(--ex-lead-lh, 1.45);
    margin: 8px 0 0;
    max-width: 620px;
    color: var(--ex-color-caption, var(--ex-muted));
}
.block-hero .hero-inner.has-image .hero-lead {
    color: rgba(255, 255, 255, .82);
}
.block-hero .hero-inner.align-center .hero-heading,
.block-hero .hero-inner.align-center .hero-lead,
.block-hero .hero-inner.align-right .hero-heading,
.block-hero .hero-inner.align-right .hero-lead {
    margin-left: auto;
    margin-right: auto;
}
.block-hero .hero-inner.align-right .hero-heading,
.block-hero .hero-inner.align-right .hero-lead {
    margin-right: 0;
}
.block-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}
.block-hero .hero-inner.align-center .hero-actions {
    justify-content: center;
}
.block-hero .hero-inner.align-right .hero-actions {
    justify-content: flex-end;
}
.block-hero .hero-cta {
    margin-top: 0;
    display: inline-flex;
}
.hero-cta-styled {
    background: var(--btn-bg);
    border: 2px solid var(--btn-border);
    color: var(--btn-color);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.hero-cta-styled:hover {
    background: var(--btn-bg-hover);
    border-color: var(--btn-border-hover);
    color: var(--btn-color-hover);
}
.block-hero .hero-cta-secondary:not(.hero-cta-styled) {
    background: transparent;
    border: 2px solid currentColor;
}
.block-hero .hero-inner.has-image .hero-cta-secondary:not(.hero-cta-styled):not([style*="border-color"]) {
    border-color: rgba(255, 255, 255, .85);
    color: #fff;
}

.block-title-card .title-card-inner {
    padding: 0;
    width: 100%;
}
.block-title-card .title-card-inner .block-content-wrap {
    padding: var(--ex-block-padding-top, 32px) var(--ex-block-padding-x, 32px) var(--ex-block-padding-bottom, 32px);
}
.block-title-card .title-card-inner.align-center {
    text-align: center;
}
.block-title-card .title-card-inner.align-right {
    text-align: right;
}
.block-title-card .title-card-heading {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 500;
    line-height: 1.12;
    margin: 4px 0 0;
}
.block-title-card .title-card-subtitle {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ex-muted);
    max-width: 640px;
}
.block-title-card .title-card-inner.align-center .title-card-subtitle {
    margin-left: auto;
    margin-right: auto;
}
.block-title-card .title-card-inner.align-right .title-card-subtitle {
    margin-left: auto;
}

.block-section-heading .section-heading-inner {
    position: relative;
    padding: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    width: 100%;
}
.block-section-heading .section-heading-inner .block-content-wrap {
    padding: var(--ex-block-padding-top, 32px) var(--ex-block-padding-x, 32px) var(--ex-block-padding-bottom, 32px);
}
.block-section-heading .section-heading-inner.has-image {
    color: #fff;
}
.block-section-heading .section-heading-inner.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, calc(var(--overlay, 0) / 100));
}
.block-section-heading .section-heading-title {
    position: relative;
    z-index: 1;
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
    max-width: none;
}
.block-section-heading .section-heading-title.level-1 {
    font-size: clamp(28px, 4.2vw, 42px);
}
.block-section-heading .section-heading-title.level-3 {
    font-size: clamp(18px, 2.8vw, 26px);
}
.block-section-heading .section-heading-inner.align-center .section-heading-title {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.block-section-heading .section-heading-inner.align-right .section-heading-title {
    margin-left: auto;
    text-align: right;
}
.block-section-heading .section-heading-inner.has-image .section-heading-title {
    color: #fff;
}

.block-placeholder-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-light);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.block-hero .hero-inner.is-empty,
.block-title-card .title-card-inner.is-empty,
.block-section-heading .section-heading-inner:not(.has-image):not(.has-color) {
    min-height: 72px;
    display: flex;
    align-items: center;
}
.block-inner {
    padding: var(--ex-block-padding-top, 32px) var(--ex-block-padding-x, 32px) var(--ex-block-padding-bottom, 32px);
    width: 100%;
    box-sizing: border-box;
}
.block-band-outer {
    width: 100%;
}
.block-content-wrap {
    width: 100%;
    box-sizing: border-box;
}
.block-title {
    font-size: var(--ex-h2-size, 30px);
    font-weight: var(--ex-h2-weight, 500);
    margin: 0 0 8px;
    letter-spacing: -.02em;
    font-family: var(--ex-font-heading, var(--serif));
    color: var(--ex-color-heading, inherit);
}
.block-text {
    font-size: var(--ex-body-size, 15.5px);
    line-height: var(--ex-body-lh, 1.55);
    font-weight: var(--ex-body-weight, 400);
    color: var(--ex-color-body, var(--ex-muted));
    font-family: var(--ex-font-body, var(--sans));
}
.block-text p {
    margin: 0 0 .55em;
}
.block-text p:last-child {
    margin-bottom: 0;
}
.block-text h2,
.block-text h3 {
    font-family: var(--ex-font-heading, var(--serif));
    color: var(--block-ink, var(--ex-color-heading, var(--ex-ink, inherit)));
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
    margin: .85em 0 .35em;
}
.block-text h2 {
    font-size: var(--ex-h2-size, 22px);
    font-weight: var(--ex-h2-weight, 600);
    line-height: var(--ex-h2-lh, 1.25);
}
.block-text h3 {
    font-size: var(--ex-h3-size, 18px);
    font-weight: var(--ex-h3-weight, 600);
    line-height: var(--ex-h3-lh, 1.2);
}
.block-text > h2:first-child,
.block-text > h3:first-child {
    margin-top: 0;
}
.block-text ul,
.block-text ol {
    margin: .25em 0 .55em;
    padding-left: 1.35em;
}
.block-text li {
    margin: .15em 0;
}
.block-text a {
    color: var(--ex-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.block-text a:hover {
    opacity: .85;
}
.block-text strong,
.block-text b {
    font-weight: 700;
    color: inherit;
}
.block-text em,
.block-text i {
    font-style: italic;
}
.block-text .rich-figure,
.block-text figure {
    margin: .75em 0;
}
.block-text .rich-figure img,
.block-text figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.block-text .rich-figure figcaption,
.block-text figure figcaption {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.block-text .text-block-inner > .block-content-wrap {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.8vw, 20px);
}
.block-text .text-block-header {
    max-width: 720px;
}
.block-text .text-block-title {
    margin: 4px 0 0;
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--block-ink, var(--ex-ink));
}
.block-text .text-block-header .eyebrow + .text-block-title {
    margin-top: 4px;
}
.block-text .text-block-lead {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.block-text .text-block-columns {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(18px, 2.5vw, 32px);
    width: 100%;
}
.block-text .text-block-inner.cols-1 .text-block-col-1 {
    flex: 1 1 100%;
    min-width: 0;
}
.block-text .text-block-inner.cols-2 .text-block-col-1 {
    flex: var(--col-left, 50) 1 0;
    min-width: 0;
}
.block-text .text-block-inner.cols-2 .text-block-col-2 {
    flex: var(--col-right, 50) 1 0;
    min-width: 0;
}
.has-bg-token .text-block-title {
    color: var(--block-ink, inherit);
}
.has-bg-token .text-block-lead,
.has-bg-token .text-block-header .eyebrow {
    color: var(--block-muted, inherit);
}

.block-card-grid .card-grid-inner > .block-content-wrap {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 22px);
}
.block-card-grid .card-grid-header {
    max-width: 720px;
}
.block-card-grid .card-grid-title {
    margin: 4px 0 0;
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--block-ink, var(--ex-ink));
}
.block-card-grid .card-grid-lead {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.block-card-grid .card-grid-list {
    display: grid;
    grid-template-columns: repeat(var(--card-cols, 3), minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    width: 100%;
}
.block-card-grid .card-grid-item {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
    background: var(--ex-surface, #E6E1D8);
}
.block-card-grid .card-grid-item:not(.has-bg-token):not(.has-bg-color) {
    background: var(--ex-surface, #E6E1D8);
}
.block-card-grid .card-grid-media {
    width: 100%;
    aspect-ratio: 100 / var(--card-image-ratio, 62);
    overflow: hidden;
    background: #E8EBEF;
}
.block-card-grid .card-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.block-card-grid .card-grid-body {
    padding: clamp(16px, 2vw, 22px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.block-card-grid .card-grid-item.align-center .card-grid-body {
    text-align: center;
    align-items: center;
}
.block-card-grid .card-grid-item.align-right .card-grid-body {
    text-align: right;
    align-items: flex-end;
}
.block-card-grid .card-grid-item-title {
    margin: 0;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    line-height: 1.25;
    color: var(--block-ink, var(--ex-ink));
}
.block-card-grid .card-grid-item-text {
    font-size: 14.5px;
}
.block-card-grid .card-grid-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}
.block-card-grid .card-grid-actions.align-center {
    justify-content: center;
}
.block-card-grid .card-grid-actions.align-right {
    justify-content: flex-end;
}
.block-card-grid .card-grid-item.align-center .card-grid-actions {
    justify-content: center;
}
.block-card-grid .card-grid-item.align-right .card-grid-actions {
    justify-content: flex-end;
}
.block-card-grid .hero-cta {
    display: inline-flex;
    margin-top: 0;
}
.has-bg-token .card-grid-title,
.has-bg-token .card-grid-item-title {
    color: var(--block-ink, inherit);
}
.has-bg-token .card-grid-lead,
.has-bg-token .card-grid-header .eyebrow,
.has-bg-token .card-grid-body .eyebrow {
    color: var(--block-muted, inherit);
}

.block-knihovny .knihovny-header {
    max-width: 720px;
    margin-bottom: 14px;
}
.block-knihovny .knihovny-title {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1.2;
}
.block-knihovny .knihovny-lead {
    margin: 0;
    color: var(--block-muted, var(--ex-muted));
    font-size: 1.02rem;
    line-height: 1.55;
}
.block-knihovny .knihovny-grid {
    display: grid;
    grid-template-columns: repeat(var(--card-cols, 3), minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 28px);
}
.block-knihovny .knihovny-tiles {
    display: grid;
    grid-template-columns: repeat(var(--card-cols, 2), minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 28px);
}
.block-knihovny .knihovny-tile {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    padding: 12px;
}
.block-knihovny .knihovny-tile.image-right {
    flex-direction: row-reverse;
}
.block-knihovny .knihovny-tile .knihovny-cover,
.block-knihovny .knihovny-tile .knihovny-cover-placeholder {
    width: 100%;
    height: var(--knihovny-cover-height, 140px);
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}
.block-knihovny .knihovny-tile .knihovny-cover-placeholder {
    min-height: 0;
    aspect-ratio: auto;
}
.block-knihovny .knihovny-tile-media {
    flex: 0 0 auto;
    width: calc(var(--knihovny-cover-height, 140px) * 0.7);
    max-width: 46%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.block-knihovny .knihovny-tile-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
    padding: 2px 4px 2px 0;
}
.block-knihovny .knihovny-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
}
.block-knihovny .knihovny-card-media {
    background: color-mix(in srgb, var(--ex-muted, #5A6472) 10%, transparent);
    min-height: var(--knihovny-cover-height, 140px);
}
.block-knihovny .knihovny-cover {
    display: block;
    width: 100%;
    height: var(--knihovny-cover-height, 140px);
    object-fit: contain;
    background: #fff;
}
.block-knihovny .knihovny-cover-placeholder {
    display: grid;
    place-items: center;
    height: var(--knihovny-cover-height, 140px);
    color: var(--ex-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: color-mix(in srgb, var(--ex-muted, #5A6472) 12%, #fff);
}
.block-knihovny .knihovny-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px;
    flex: 1;
}
.block-knihovny .knihovny-item-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}
.block-knihovny .knihovny-item-meta {
    margin: 0;
    font-size: 0.92rem;
    color: var(--block-muted, var(--ex-muted));
}
.block-knihovny .knihovny-item-text {
    font-size: 0.95rem;
    line-height: 1.55;
}
.block-knihovny .knihovny-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}
.block-knihovny .knihovny-actions .btn-sm {
    font-size: 0.85rem;
}
.block-knihovny .knihovny-btn {
    gap: 0.45em;
}
.block-knihovny .btn-external-icon {
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: -0.1em;
    opacity: 0.92;
}
.block-knihovny .knihovny-split-list {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4vw, 48px);
}
.block-knihovny .knihovny-split-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(18px, 3vw, 36px);
    min-width: 0;
}
.block-knihovny .knihovny-split-item.image-right {
    flex-direction: row-reverse;
}
.block-knihovny .knihovny-split-media {
    flex: 0 0 var(--knihovny-image-pct, 36%);
    max-width: 280px;
    min-width: 120px;
    display: flex;
    justify-content: center;
}
.block-knihovny .knihovny-split-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.block-knihovny .knihovny-split-item .knihovny-cover,
.block-knihovny .knihovny-split-item .knihovny-cover-placeholder {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}
.block-knihovny .knihovny-split-item .knihovny-cover-placeholder {
    min-height: 200px;
    aspect-ratio: 2 / 3;
}
.has-bg-token .knihovny-title,
.has-bg-token .knihovny-item-title {
    color: var(--block-ink, inherit);
}
.has-bg-token .knihovny-lead,
.has-bg-token .knihovny-header .eyebrow,
.has-bg-token .knihovny-item-meta {
    color: var(--block-muted, inherit);
}

.block-text-image .text-image-inner > .block-content-wrap,
.block-text-image .text-image-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(18px, 2.5vw, 32px);
}
.block-text-image .text-image-actions {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.block-text-image .text-image-actions.align-center {
    justify-content: center;
}
.block-text-image .text-image-actions.align-right {
    justify-content: flex-end;
}
.block-text-image .hero-cta {
    display: inline-flex;
    margin-top: 0;
}
.block-text-image.layout-left .text-image-inner > .block-content-wrap,
.block-text-image.layout-left .text-image-layout {
    flex-direction: row-reverse;
}
.block-text-image .text-image-inner.has-bg-color {
    border-radius: 12px;
}
.block-text-image .text-col {
    flex: var(--text-flex, 1) 1 0;
    min-width: 0;
}
.block-text-image .images-col {
    flex: var(--image-flex, 1) 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.block-text-image .block-title {
    margin-top: 0;
}
.block-text-image .block-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}
.text-image-figure {
    margin: 0;
}
.text-image-caption {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ex-muted);
}
.gallery-header {
    max-width: 720px;
    margin-bottom: clamp(12px, 1.6vw, 18px);
}
.gallery-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    color: var(--block-ink, var(--ex-ink));
}
.gallery-header .eyebrow + .gallery-title {
    margin-top: 4px;
}
.gallery-lead {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.gallery-empty {
    padding: 28px 18px;
    border: 1px dashed color-mix(in srgb, var(--ex-muted, #5A6472) 28%, transparent);
    border-radius: 12px;
    color: var(--ex-muted);
    font-size: 14.5px;
    text-align: center;
}
.gallery-caption {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ex-muted);
}
.gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    border-radius: 10px;
    overflow: hidden;
}
.gallery-open img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Grid */
.gallery-grid {
    display: grid;
    gap: clamp(12px, 1.8vw, 18px);
    grid-template-columns: repeat(var(--gallery-cols, 3), minmax(0, 1fr));
}
.gallery-grid .gallery-item {
    margin: 0;
    min-width: 0;
}
.gallery-grid .gallery-open {
    aspect-ratio: 1;
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 55%, transparent);
}
.gallery-grid .gallery-open img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slideshow */
.gallery-slideshow {
    position: relative;
}
.gallery-slideshow-viewport {
    overflow: hidden;
    border-radius: 12px;
}
.gallery-slideshow-track {
    display: flex;
    gap: 14px;
    transition: transform .35s ease;
    will-change: transform;
}
.gallery-slide {
    margin: 0;
    flex: 0 0 calc((100% - (var(--gallery-per-page, 1) - 1) * 14px) / var(--gallery-per-page, 1));
    min-width: 0;
}
.gallery-slide .gallery-open {
    aspect-ratio: 16 / 10;
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 55%, transparent);
}
.gallery-slide .gallery-open img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    min-height: 10px;
}
.gallery-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ex-muted, #5A6472) 35%, transparent);
    cursor: pointer;
}
.gallery-dot.is-active {
    background: var(--ex-accent, var(--accent));
    width: 18px;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 22%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--ex-bg, #FBF9F6) 90%, #fff);
    color: var(--ex-ink, var(--ink));
    box-shadow: 0 6px 18px rgba(20, 26, 34, .08);
    cursor: pointer;
}
.gallery-nav:hover {
    background: var(--ex-accent, var(--accent));
    border-color: var(--ex-accent, var(--accent));
    color: #fff;
}
.gallery-nav[hidden] {
    display: none;
}
.gallery-nav-prev {
    left: 10px;
}
.gallery-nav-next {
    right: 10px;
}
.gallery-classic .gallery-nav-prev {
    left: 12px;
}
.gallery-classic .gallery-nav-next {
    right: 12px;
}
.skin-galerie .gallery-nav {
    background: color-mix(in srgb, var(--ex-bg, #0F1216) 88%, #000);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

/* Classic */
.gallery-classic-stage {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 55%, transparent);
}
.gallery-classic-main {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
}
.gallery-classic-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 40%, #000 4%);
}
.gallery-classic-caption {
    padding: 0 4px;
    margin-top: 10px;
}
.gallery-thumbs-wrap {
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.gallery-thumbs-wrap::-webkit-scrollbar {
    display: none;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    width: max-content;
    padding: 2px 2px 4px;
}
.gallery-thumb {
    flex: 0 0 84px;
    width: 84px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 55%, transparent);
    cursor: pointer;
    opacity: .72;
    transition: opacity .15s ease, border-color .15s ease;
}
.gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumb:hover {
    opacity: 1;
}
.gallery-thumb.is-active {
    opacity: 1;
    border-color: var(--ex-accent, var(--accent));
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 12, 16, .88);
    color: #fff;
}
.gallery-lightbox[hidden] {
    display: none;
}
.gallery-lightbox-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.gallery-lightbox-figure {
    margin: 0;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-lightbox-figure img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}
.gallery-lightbox-caption {
    margin: 0;
    max-width: 42rem;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .82);
}
.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(20, 24, 30, .55);
    color: #fff;
    cursor: pointer;
}
.gallery-lightbox-close {
    top: 18px;
    right: 18px;
}
.gallery-lightbox-prev,
.gallery-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}
.gallery-lightbox-prev {
    left: 18px;
}
.gallery-lightbox-next {
    right: 18px;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, .16);
}
.gallery-lightbox-counter {
    position: absolute;
    top: 28px;
    left: 24px;
    font-size: 13px;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .7);
}
body.gallery-lightbox-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(min(2, var(--gallery-cols, 3)), minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(min(2, var(--gallery-cols, 3)), minmax(0, 1fr));
    }
    .gallery-nav {
        width: 36px;
        height: 36px;
    }
    .gallery-lightbox {
        padding: 12px;
    }
    .gallery-lightbox-prev {
        left: 8px;
    }
    .gallery-lightbox-next {
        right: 8px;
    }
}

/* Partners / sponsor logos */
.partners-header {
    max-width: 720px;
    margin-bottom: clamp(12px, 1.6vw, 18px);
}
.partners-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    color: var(--block-ink, var(--ex-ink));
}
.partners-header .eyebrow + .partners-title {
    margin-top: 4px;
}
.partners-lead {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.partners-empty {
    padding: 28px 18px;
    border: 1px dashed color-mix(in srgb, var(--ex-muted, #5A6472) 28%, transparent);
    border-radius: 12px;
    color: var(--ex-muted);
    font-size: 14.5px;
    text-align: center;
}
.partners-caption {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--ex-muted);
    text-align: center;
}
.partners-grid {
    display: grid;
    gap: clamp(12px, 1.8vw, 20px);
    grid-template-columns: repeat(var(--partners-cols, 4), minmax(0, 1fr));
    align-items: start;
}
.partners-item {
    margin: 0;
    min-width: 0;
}
.partners-logo-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.partners-logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(10px, 1.5vw, 16px);
    border-radius: 12px;
    background: var(--partners-window-bg, color-mix(in srgb, var(--ex-surface, #E6E1D8) 55%, transparent));
    border: 1px solid var(--partners-window-border, color-mix(in srgb, var(--ex-muted, #5A6472) 12%, transparent));
    box-sizing: border-box;
}
.partners-logo-frame.is-window-transparent {
    background: transparent;
}
.partners-logo-frame.shape-square {
    aspect-ratio: 1;
}
.partners-logo-frame.shape-landscape {
    aspect-ratio: 16 / 10;
}
.partners-logo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.partners-slideshow {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.partners-slideshow-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.partners-slideshow-track {
    display: flex;
    gap: 14px;
    transition: transform .35s ease;
    will-change: transform;
}
.partners-slideshow-track .partners-item {
    flex: 0 0 calc((100% - (var(--partners-per-page, 4) - 1) * 14px) / var(--partners-per-page, 4));
}
.partners-nav {
    flex: none;
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 22%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--ex-bg, #FBF9F6) 90%, #fff);
    color: var(--ex-ink, var(--ink));
    box-shadow: 0 6px 18px rgba(20, 26, 34, .08);
    cursor: pointer;
}
.partners-nav:hover {
    background: var(--ex-accent, var(--accent));
    border-color: var(--ex-accent, var(--accent));
    color: #fff;
}
.partners-nav[hidden] {
    display: none !important;
}
.partners-slideshow.is-scrollable .partners-nav {
    display: inline-flex;
}
.partners-slideshow.is-at-start .partners-nav-prev,
.partners-slideshow.is-at-end .partners-nav-next {
    opacity: .35;
    pointer-events: none;
}
.partners-slideshow-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    display: flex;
    justify-content: center;
    gap: 7px;
    min-height: 10px;
}
.partners-layout-slideshow {
    padding-bottom: 18px;
}
.partners-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ex-muted, #5A6472) 35%, transparent);
    cursor: pointer;
}
.partners-dot.is-active {
    background: var(--ex-accent, var(--accent));
    width: 18px;
}
.skin-galerie .partners-nav {
    background: color-mix(in srgb, var(--ex-bg, #0F1216) 88%, #000);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: repeat(min(3, var(--partners-cols, 4)), minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .partners-grid {
        grid-template-columns: repeat(min(2, var(--partners-cols, 4)), minmax(0, 1fr));
    }
    .partners-nav {
        width: 36px;
        height: 36px;
    }
}

/* Contact */
.contact-header {
    max-width: 720px;
    margin-bottom: clamp(12px, 1.6vw, 20px);
}
.contact-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    color: var(--block-ink, var(--ex-ink));
}
.contact-header .eyebrow + .contact-title {
    margin-top: 4px;
}
.contact-lead {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.contact-empty {
    padding: 28px 18px;
    border: 1px dashed color-mix(in srgb, var(--ex-muted, #5A6472) 28%, transparent);
    border-radius: 12px;
    color: var(--ex-muted);
    font-size: 14.5px;
    text-align: center;
}
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(22px, 3.5vw, 40px);
    align-items: start;
}
.contact-layout.is-details-only {
    grid-template-columns: 1fr;
    max-width: 640px;
}
.block-contact.contact-media-left .contact-layout:not(.is-details-only) {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}
.block-contact.contact-media-left .contact-details {
    order: 2;
}
.block-contact.contact-media-left .contact-media {
    order: 1;
}
.contact-group + .contact-group {
    margin-top: 22px;
}
.contact-group-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--block-muted, var(--ex-muted));
}
.contact-address {
    margin: 0;
    font-style: normal;
    display: grid;
    gap: 4px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--block-ink, var(--ex-ink));
}
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.contact-list li {
    display: grid;
    gap: 2px;
}
.contact-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--block-muted, var(--ex-muted));
}
.contact-value {
    font-size: 15.5px;
    color: var(--block-ink, var(--ex-ink));
    word-break: break-word;
}
.contact-value:hover {
    color: var(--ex-accent, var(--accent));
}
.contact-hours {
    font-size: 15px;
    line-height: 1.65;
    color: var(--block-ink, var(--ex-ink));
    white-space: pre-line;
}
.contact-note {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--block-muted, var(--ex-muted));
}
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.contact-actions.align-center {
    justify-content: center;
}
.contact-actions.align-right {
    justify-content: flex-end;
}
.contact-actions .hero-cta {
    display: inline-flex;
    margin-top: 0;
}
.contact-media {
    display: grid;
    gap: 14px;
    min-width: 0;
}
.contact-image {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 55%, transparent);
}
.contact-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.contact-image-caption {
    padding: 10px 12px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--block-muted, var(--ex-muted));
}
.contact-map {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 16%, transparent);
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 40%, transparent);
    aspect-ratio: 4 / 3;
    min-height: 220px;
}
.contact-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.block-contact.contact-mode-map .contact-map,
.block-contact.contact-mode-both .contact-image + .contact-map {
    aspect-ratio: 16 / 11;
}
@media (max-width: 860px) {
    .contact-layout,
    .block-contact.contact-media-left .contact-layout:not(.is-details-only) {
        grid-template-columns: 1fr;
    }
    .block-contact.contact-media-left .contact-details,
    .block-contact.contact-media-left .contact-media {
        order: initial;
    }
}

.map-header {
    max-width: 720px;
    margin-bottom: clamp(12px, 1.6vw, 20px);
}
.map-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    color: var(--block-ink, var(--ex-ink));
}
.map-header .eyebrow + .map-title {
    margin-top: 4px;
}
.map-lead {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.map-empty {
    padding: 28px 20px;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--ex-muted, #5A6472) 28%, transparent);
    color: var(--block-muted, var(--ex-muted));
    font-size: 14px;
    text-align: center;
}
.map-empty-inline {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(18px, 2.8vw, 36px);
    align-items: start;
}
.map-layout.is-map-only {
    grid-template-columns: 1fr;
}
.block-map.map-position-right .map-layout:not(.is-map-only) {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}
.block-map.map-position-right .map-copy {
    order: 1;
}
.block-map.map-position-right .map-frame {
    order: 2;
}
.map-copy .block-text {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--block-ink, var(--ex-ink));
}
.map-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 16%, transparent);
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 40%, transparent);
    aspect-ratio: 16 / 11;
    min-height: 260px;
}
.block-map.is-map-only .map-frame {
    aspect-ratio: 21 / 9;
    min-height: 280px;
}
.map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 860px) {
    .map-layout,
    .block-map.map-position-right .map-layout:not(.is-map-only) {
        grid-template-columns: 1fr;
    }
    .block-map.map-position-right .map-copy,
    .block-map.map-position-right .map-frame {
        order: initial;
    }
    .block-map.is-map-only .map-frame {
        aspect-ratio: 16 / 11;
        min-height: 240px;
    }
}

.credits-header {
    max-width: 720px;
    margin-bottom: clamp(12px, 1.6vw, 20px);
}
.credits-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    color: var(--block-ink, var(--ex-ink));
}
.credits-header .eyebrow + .credits-title {
    margin-top: 4px;
}
.credits-lead {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.credits-empty {
    padding: 28px 20px;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--ex-muted, #5A6472) 28%, transparent);
    color: var(--block-muted, var(--ex-muted));
    font-size: 14px;
    text-align: center;
}
.credits-intro {
    max-width: 720px;
    margin: 0 0 clamp(22px, 3vw, 32px);
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--block-ink, var(--ex-ink));
}
.credits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 2.2vw, 24px) clamp(24px, 3.5vw, 48px);
}
.block-credits.credits-cols-2 .credits-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.credits-item {
    min-width: 0;
}
.credits-role {
    margin: 0 0 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--block-muted, var(--ex-muted));
}
.credits-names {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.credits-name {
    font-size: 16.5px;
    line-height: 1.35;
    color: var(--block-ink, var(--ex-ink));
}
.credits-note {
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.credits-thanks {
    margin-top: clamp(28px, 3.5vw, 40px);
    padding-top: clamp(20px, 2.5vw, 28px);
    border-top: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 18%, transparent);
    max-width: 720px;
}
.credits-thanks-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--block-muted, var(--ex-muted));
}
.credits-thanks-body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--block-ink, var(--ex-ink));
}
.credits-meta {
    margin-top: clamp(24px, 3vw, 36px);
    padding-top: clamp(16px, 2vw, 22px);
    border-top: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 14%, transparent);
    color: var(--block-muted, var(--ex-muted));
    font-size: 13.5px;
    line-height: 1.5;
}
.credits-production {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
}
.credits-meta-sep {
    opacity: 0.55;
}
.credits-copyright {
    margin: 8px 0 0;
    max-width: 720px;
}
@media (max-width: 700px) {
    .block-credits.credits-cols-2 .credits-list {
        grid-template-columns: 1fr;
    }
}

.quiz-header {
    max-width: 720px;
    margin-bottom: clamp(12px, 1.6vw, 20px);
}
.quiz-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    color: var(--block-ink, var(--ex-ink));
}
.quiz-header .eyebrow + .quiz-title {
    margin-top: 4px;
}
.quiz-lead {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.quiz-empty {
    padding: 28px 20px;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--ex-muted, #5A6472) 28%, transparent);
    color: var(--block-muted, var(--ex-muted));
    font-size: 14px;
    text-align: center;
}
.quiz-progress {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--block-muted, var(--ex-muted));
}
.quiz-questions {
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 3vw, 32px);
}
.quiz-question.is-hidden {
    display: none;
}
.quiz-question-text {
    margin: 0 0 14px;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.4;
    font-weight: 600;
    color: var(--block-ink, var(--ex-ink));
}
.quiz-question-num {
    color: var(--block-muted, var(--ex-muted));
    font-weight: 600;
    margin-right: 4px;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 22%, transparent);
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 35%, transparent);
    color: var(--block-ink, var(--ex-ink));
    cursor: pointer;
    font: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.quiz-option:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--ex-accent, #E07B18) 55%, transparent);
}
.quiz-option:disabled {
    cursor: default;
}
.quiz-option-marker {
    flex: 0 0 auto;
    width: 1.6em;
    height: 1.6em;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: color-mix(in srgb, var(--ex-muted, #5A6472) 12%, transparent);
    color: var(--block-muted, var(--ex-muted));
}
.quiz-option-label {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
    padding-top: 1px;
}
.quiz-option.is-selected {
    border-color: var(--ex-accent, #E07B18);
}
.quiz-option.is-correct {
    border-color: #2f7d4a;
    background: color-mix(in srgb, #2f7d4a 10%, transparent);
}
.quiz-option.is-correct .quiz-option-marker {
    background: #2f7d4a;
    color: #fff;
}
.quiz-option.is-wrong {
    border-color: #b44;
    background: color-mix(in srgb, #b44 8%, transparent);
}
.quiz-option.is-wrong .quiz-option-marker {
    background: #b44;
    color: #fff;
}
.quiz-feedback {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 55%, transparent);
}
.quiz-feedback-status {
    font-size: 14px;
    font-weight: 600;
    color: var(--block-ink, var(--ex-ink));
}
.quiz-feedback.is-correct .quiz-feedback-status {
    color: #2f7d4a;
}
.quiz-feedback.is-wrong .quiz-feedback-status {
    color: #b44;
}
.quiz-comment {
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--block-ink, var(--ex-ink));
}
.quiz-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.quiz-summary {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 16%, transparent);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}
.quiz-summary-text {
    margin: 0;
    font-size: 15.5px;
    color: var(--block-ink, var(--ex-ink));
}

.survey-header {
    max-width: 720px;
    margin-bottom: clamp(12px, 1.6vw, 20px);
}
.survey-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    color: var(--block-ink, var(--ex-ink));
}
.survey-header .eyebrow + .survey-title {
    margin-top: 4px;
}
.survey-lead {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.survey-empty {
    padding: 28px 20px;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--ex-muted, #5A6472) 28%, transparent);
    color: var(--block-muted, var(--ex-muted));
    font-size: 14px;
    text-align: center;
}
.survey-form {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.survey-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.survey-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--block-ink, var(--ex-ink));
    line-height: 1.4;
}
.survey-required {
    color: var(--ex-accent, #E07B18);
    margin-left: 2px;
}
.survey-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.survey-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 22%, transparent);
    border-radius: 10px;
    cursor: pointer;
    color: var(--block-ink, var(--ex-ink));
    font-size: 14.5px;
    line-height: 1.45;
    background: color-mix(in srgb, var(--ex-bg, #fff) 88%, transparent);
}
.survey-choice:hover {
    border-color: color-mix(in srgb, var(--ex-accent, #E07B18) 45%, transparent);
}
.survey-choice input {
    margin-top: 2px;
    flex: 0 0 auto;
}
.survey-input,
.survey-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 22%, transparent);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    font-size: 14.5px;
    color: var(--block-ink, var(--ex-ink));
    background: color-mix(in srgb, var(--ex-bg, #fff) 92%, transparent);
}
.survey-textarea {
    resize: vertical;
    min-height: 110px;
}
.survey-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 4px;
}
.survey-error {
    margin: 10px 0 0;
    color: #b44;
    font-size: 13.5px;
    max-width: 640px;
}
.survey-error[hidden],
.survey-success[hidden],
.survey-form[hidden] {
    display: none !important;
}
.survey-success {
    display: none;
    max-width: 640px;
    margin-top: 6px;
    padding: 18px 16px;
    border-radius: 12px;
    background: color-mix(in srgb, #2f7d4a 10%, transparent);
    color: var(--block-ink, var(--ex-ink));
    font-size: 15.5px;
    line-height: 1.5;
}
.block-survey.is-submitted .survey-form {
    display: none !important;
}
.block-survey.is-submitted .survey-success,
.survey-success:not([hidden]) {
    display: block;
}
.survey-success p {
    margin: 0;
}

.iiif-header {
    max-width: 720px;
    margin-bottom: clamp(12px, 1.6vw, 20px);
}
.iiif-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    color: var(--block-ink, var(--ex-ink));
}
.iiif-header .eyebrow + .iiif-title {
    margin-top: 4px;
}
.iiif-lead {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.iiif-empty {
    padding: 28px 20px;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--ex-muted, #5A6472) 28%, transparent);
    color: var(--block-muted, var(--ex-muted));
    font-size: 14px;
    text-align: center;
}
.iiif-main.has-side-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
}
.iiif-main.has-side-text.text-side-right {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.iiif-main.has-side-text.text-side-right .iiif-side-text {
    order: 2;
}
.iiif-main.has-side-text.text-side-right .iiif-viewer-col {
    order: 1;
}
.iiif-side-text {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--block-ink, var(--ex-ink));
}
.iiif-viewer-col {
    min-width: 0;
}
.iiif-stage {
    --iiif-height: 68;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 16%, transparent);
    background: #1a1d22;
    min-height: calc(var(--iiif-height) * 1vh);
    height: calc(var(--iiif-height) * 1vh);
    max-height: 860px;
}
.iiif-stage:fullscreen,
.iiif-stage:-webkit-full-screen {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 100%;
    border-radius: 0;
    border: 0;
}
.iiif-frame,
.iiif-frame iframe,
.iiif-frame model-viewer,
.iiif-frame-zoom {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.iiif-model-hotspots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}
.iiif-model-hotspot {
    pointer-events: auto;
    position: absolute;
    margin: 0;
    transform: translate(-50%, -50%);
}
.iiif-model-hotspot.is-active {
    transform: translate(-50%, -50%) scale(1.08);
}
.iiif-toolbar {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.iiif-tool-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    color: #1a1d22;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
.iiif-tool-btn:hover {
    background: #fff;
}
.iiif-status {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(20, 24, 30, 0.82);
    color: #f2f4f7;
    font-size: 13px;
}
.iiif-hotspot {
    width: 28px;
    height: 28px;
    margin-left: -14px;
    margin-top: -14px;
    border-radius: 999px;
    border: 2px solid #fff;
    background: var(--ex-accent, #E07B18);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    padding: 0;
}
.iiif-hotspot.is-active {
    transform: scale(1.08);
    background: #fff;
    color: var(--ex-accent, #E07B18);
    border-color: var(--ex-accent, #E07B18);
}
.iiif-hotspot.is-editable {
    cursor: grab;
    touch-action: none;
}
.iiif-hotspot.is-editable:active {
    cursor: grabbing;
}
.iiif-editor-hint {
    margin: 10px 0 0;
    font-size: 12.5px;
}
.iiif-points-panel {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 16%, transparent);
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 40%, transparent);
}
.iiif-points-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.iiif-points-panel-head strong {
    font-size: 15px;
    color: var(--block-ink, var(--ex-ink));
}
.iiif-points-close {
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--block-muted, var(--ex-muted));
    padding: 0 2px;
}
.iiif-points-panel-body {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--block-ink, var(--ex-ink));
    white-space: pre-wrap;
}
.iiif-points-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.iiif-points-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 20%, transparent);
    background: transparent;
    border-radius: 999px;
    padding: 6px 12px 6px 8px;
    cursor: pointer;
    font: inherit;
    color: var(--block-ink, var(--ex-ink));
}
.iiif-points-list-btn:hover,
.iiif-points-list-btn.is-active {
    border-color: var(--ex-accent, #E07B18);
}
.iiif-points-list-num {
    width: 1.5em;
    height: 1.5em;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: var(--ex-accent, #E07B18);
    color: #fff;
}
.iiif-points-list-label {
    font-size: 13.5px;
}
.iiif-caption {
    margin: 12px 0 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--block-muted, var(--ex-muted));
}

.placeholder-image {
    border-radius: 8px;
    background: repeating-linear-gradient(135deg,#E8EBEF 0 7px,#DFE3E8 7px 14px);
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--muted-light);
}
.placeholder-image.square {
    aspect-ratio: 1;
    min-height: auto;
}
.timeline-header {
    max-width: 720px;
    margin-bottom: clamp(12px, 1.6vw, 20px);
}
.timeline-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    color: var(--block-ink, var(--ex-ink));
}
.timeline-header .eyebrow + .timeline-title {
    margin-top: 4px;
}
.timeline-lead {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}

.timeline-track {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Horizontal timeline scroller */
.timeline-scroller {
    position: relative;
    --timeline-fade: var(--ex-bg, #FBF9F6);
}
.timeline-scroller-frame {
    display: flex;
    align-items: center;
    gap: 10px;
}
.timeline-scroller-viewport {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    scroll-snap-type: x proximity;
    outline: none;
    padding: 8px 2px 6px;
    mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.timeline-scroller.is-at-start .timeline-scroller-viewport {
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent);
}
.timeline-scroller.is-at-end .timeline-scroller-viewport {
    mask-image: linear-gradient(to right, transparent, #000 28px, #000 100%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 100%);
}
.timeline-scroller.is-at-start.is-at-end .timeline-scroller-viewport,
.timeline-scroller:not(.is-scrollable) .timeline-scroller-viewport {
    mask-image: none;
    -webkit-mask-image: none;
}
.timeline-scroller-viewport::-webkit-scrollbar {
    display: none;
}
.timeline-scroller.is-dragging .timeline-scroller-viewport {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}
.timeline-scroller-strip {
    position: relative;
    display: inline-flex;
    min-width: 100%;
    vertical-align: top;
}
.timeline-axis {
    position: absolute;
    left: 0;
    right: 0;
    top: 22px;
    height: 2px;
    background: color-mix(in srgb, var(--timeline-accent, var(--ex-accent)) 55%, transparent);
    pointer-events: none;
}
.block-timeline.timeline-mode-process .timeline-axis {
    top: 14px;
    height: 3px;
    background: color-mix(in srgb, var(--timeline-accent, var(--ex-accent)) 28%, transparent);
}
.block-timeline.timeline-orient-horizontal .timeline-track {
    display: flex;
    gap: clamp(16px, 2.5vw, 28px);
    width: max-content;
    min-width: 100%;
    padding: 0;
    overflow: visible;
}
.block-timeline.timeline-orient-horizontal .timeline-track::before {
    display: none;
}
.block-timeline.timeline-orient-horizontal .timeline-item {
    position: relative;
    flex: 0 0 min(240px, 72vw);
    scroll-snap-align: start;
    padding-top: 40px;
}
.block-timeline.timeline-orient-horizontal .timeline-marker {
    position: absolute;
    top: 10px;
    left: 0;
    z-index: 1;
}
.timeline-nav {
    position: static;
    z-index: 2;
    transform: none;
    flex: none;
    align-self: center;
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--timeline-accent, var(--ex-accent)) 28%, var(--ex-muted, #5A6472));
    border-radius: 999px;
    background: color-mix(in srgb, var(--ex-bg, #FBF9F6) 88%, #fff);
    color: var(--ex-ink, var(--ink));
    box-shadow: 0 6px 18px rgba(20, 26, 34, .08);
    cursor: pointer;
    transition: opacity .2s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.timeline-nav:hover {
    background: var(--timeline-accent, var(--ex-accent));
    border-color: var(--timeline-accent, var(--ex-accent));
    color: #fff;
}
.timeline-nav:focus-visible {
    outline: 2px solid var(--timeline-accent, var(--ex-accent));
    outline-offset: 2px;
}
.timeline-scroller.is-scrollable .timeline-nav {
    display: inline-flex;
}
.timeline-scroller.is-at-start .timeline-nav-prev,
.timeline-scroller.is-at-end .timeline-nav-next {
    opacity: .35;
    pointer-events: none;
}
.timeline-progress {
    display: none;
    margin-top: 14px;
    padding: 0 2px;
}
.timeline-scroller.is-scrollable .timeline-progress {
    display: block;
}
.timeline-progress-track {
    position: relative;
    height: 3px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--timeline-accent, var(--ex-accent)) 18%, transparent);
    overflow: hidden;
}
.timeline-progress-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 32%;
    border-radius: inherit;
    background: var(--timeline-accent, var(--ex-accent));
    transform: translateX(0);
    transition: transform .12s ease-out;
    will-change: transform;
}
.timeline-scroller.is-dragging .timeline-progress-thumb {
    transition: none;
}
.skin-galerie .timeline-nav {
    background: color-mix(in srgb, var(--ex-bg, #0F1216) 88%, #000);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

/* Vertical timeline */
.block-timeline.timeline-orient-vertical .timeline-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 4px;
}
.block-timeline.timeline-orient-vertical .timeline-track::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: color-mix(in srgb, var(--timeline-accent, var(--ex-accent)) 55%, transparent);
}
.block-timeline.timeline-orient-vertical .timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 14px;
    padding: 0 0 28px;
}
.block-timeline.timeline-orient-vertical .timeline-item:last-child {
    padding-bottom: 0;
}
.block-timeline.timeline-orient-vertical .timeline-marker {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.timeline-dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--timeline-accent, var(--ex-accent));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ex-bg, #FBF9F6) 85%, #fff);
}
.timeline-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--timeline-accent, var(--ex-accent));
    color: #fff;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ex-bg, #FBF9F6) 85%, #fff);
}
.block-timeline.timeline-orient-horizontal.timeline-mode-process .timeline-item {
    padding-top: 44px;
}
.block-timeline.timeline-orient-horizontal.timeline-mode-process .timeline-marker {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
.block-timeline.timeline-orient-vertical.timeline-mode-process .timeline-track {
    padding-left: 4px;
}
.block-timeline.timeline-orient-vertical.timeline-mode-process .timeline-track::before {
    display: block;
    left: 17px;
    width: 3px;
    height: auto;
    top: 8px;
    bottom: 8px;
    background: color-mix(in srgb, var(--timeline-accent, var(--ex-accent)) 28%, transparent);
}
.block-timeline.timeline-orient-vertical.timeline-mode-process .timeline-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 0 0 28px;
}
.block-timeline.timeline-orient-vertical.timeline-mode-process .timeline-marker {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 1;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-card {
    min-width: 0;
}
.timeline-label {
    font-size: 12.5px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--timeline-accent, var(--ex-accent));
}
.timeline-item-title {
    margin-top: 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ex-ink, var(--ink));
}
.timeline-label + .timeline-item-title {
    margin-top: 4px;
}
.timeline-item-text {
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ex-muted);
}

/* Process — distinct design */
.block-timeline.timeline-mode-process .timeline-track::before {
    background: color-mix(in srgb, var(--timeline-accent, var(--ex-accent)) 28%, transparent);
    height: 3px;
}
.block-timeline.timeline-mode-process .timeline-card {
    position: relative;
    padding: 14px 16px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 70%, transparent);
    border: 1px solid color-mix(in srgb, var(--timeline-accent, var(--ex-accent)) 18%, transparent);
}
.block-timeline.timeline-mode-process .timeline-label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 650;
}
.block-timeline.timeline-mode-process .timeline-item-title {
    font-size: 16px;
}
.skin-galerie .timeline-dot,
.skin-galerie .timeline-step {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ex-bg, #0F1216) 90%, #000);
}

@media (max-width: 768px) {
    .block-timeline.timeline-orient-horizontal .timeline-item {
        flex-basis: min(210px, 78vw);
    }
    .timeline-nav {
        width: 36px;
        height: 36px;
    }
    .timeline-scroller-frame {
        gap: 6px;
    }
}
.quote-text {
    display: block;
    width: 100%;
    font-size: 28px;
    line-height: 1.35;
    margin: 0;
}
.quote-text p {
    margin: 0 0 .55em;
}
.quote-text p:last-child {
    margin-bottom: 0;
}
.quote-text a {
    color: var(--ex-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.quote-text.align-left,
.quote-code.align-left,
.quote-source.align-left {
    text-align: left;
}
.quote-text.align-center,
.quote-code.align-center,
.quote-source.align-center {
    text-align: center;
}
.quote-text.align-right,
.quote-code.align-right,
.quote-source.align-right {
    text-align: right;
}
.quote-source {
    display: block;
    margin-top: 14px;
    font-size: 14px;
    color: var(--ex-muted);
    font-style: normal;
}
.block-quote.quote-style-frame .quote-frame .quote-source {
    margin-top: 12px;
}

.block-quote.quote-style-frame .quote-frame {
    margin: 0;
    padding: clamp(16px, 2.2vw, 24px) clamp(18px, 2.5vw, 28px);
    border-radius: 10px;
    background: var(--quote-bg, transparent);
}
.block-quote.quote-style-frame .quote-frame.border-left {
    border: none;
    border-left: 4px solid var(--quote-border, var(--ex-accent, var(--accent)));
    border-radius: 0 10px 10px 0;
}
.block-quote.quote-style-frame .quote-frame.border-full {
    border: 1px solid color-mix(in srgb, var(--quote-border, var(--ex-accent)) 32%, var(--ex-surface, #E6E1D8));
    border-left: 4px solid var(--quote-border, var(--ex-accent, var(--accent)));
}
.block-quote.quote-style-frame .quote-text {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
    font-family: var(--sans);
}

.block-quote.quote-style-code .quote-code {
    margin: 0;
    padding: clamp(14px, 2vw, 20px) clamp(16px, 2.2vw, 22px);
    border-radius: 10px;
    background: color-mix(in srgb, var(--ex-ink, #141A22) 92%, #000);
    color: #E8ECF1;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 13.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}
.block-quote.quote-style-code .quote-code code {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    padding: 0;
}
.block-quote.quote-style-code .quote-source {
    margin-top: 10px;
}
.skin-galerie .block-quote.quote-style-code .quote-code {
    background: color-mix(in srgb, var(--ex-surface, #232A32) 80%, #000);
}

.block-faq .faq-header {
    max-width: 720px;
    margin-bottom: clamp(10px, 1.4vw, 16px);
}
.block-faq .faq-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    color: var(--block-ink, var(--ex-ink));
}
.block-faq .faq-header .eyebrow + .faq-title {
    margin-top: 4px;
}
.block-faq .faq-lead {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 820px;
}
.faq-item {
    border: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 18%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 42%, transparent);
    overflow: hidden;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
    color: var(--ex-ink, var(--ink));
    user-select: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.faq-chevron {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: var(--ex-muted);
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 70%, #fff);
    transition: transform .2s ease, color .15s ease, background .15s ease;
}
.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--ex-accent, var(--accent));
}
.faq-answer {
    padding: 0 18px 18px;
    border-top: 1px solid color-mix(in srgb, var(--ex-muted, #5A6472) 12%, transparent);
    padding-top: 14px;
    margin-top: 0;
}
.faq-answer.block-text {
    color: var(--ex-muted);
}

@media (max-width: 900px) {
    .block-card-grid .card-grid-list {
        grid-template-columns: repeat(min(2, var(--card-cols, 3)), minmax(0, 1fr));
    }
    .block-knihovny .knihovny-grid {
        grid-template-columns: repeat(min(2, var(--card-cols, 3)), minmax(0, 1fr));
    }
    .block-knihovny .knihovny-tiles {
        grid-template-columns: repeat(min(2, var(--card-cols, 2)), minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .block-text-image .text-image-inner > .block-content-wrap,
    .block-text-image .text-image-layout {
        flex-direction: column;
    }
    .block-text-image.layout-left .text-image-inner > .block-content-wrap,
    .block-text-image.layout-left .text-image-layout {
        flex-direction: column;
    }
    .block-knihovny .knihovny-grid,
    .block-knihovny .knihovny-tiles {
        grid-template-columns: 1fr;
    }
    .block-text-image .text-image-actions {
        flex: 0 0 auto;
        width: 100%;
    }
    .block-text .text-block-inner > .block-content-wrap {
        gap: 18px;
    }
    .block-text .text-block-columns {
        flex-direction: column;
    }
    .block-card-grid .card-grid-list {
        grid-template-columns: 1fr;
    }
    .iiif-main.has-side-text,
    .iiif-main.has-side-text.text-side-right {
        grid-template-columns: 1fr;
    }
    .iiif-main.has-side-text.text-side-right .iiif-side-text,
    .iiif-main.has-side-text.text-side-right .iiif-viewer-col {
        order: 0;
    }
    .public-nav {
        gap: 12px;
        font-size: 13px;
    }
    .exhibition-nav {
        padding-inline: 18px;
        gap: 12px;
    }
    .exhibition-nav-current,
    .exhibition-nav-divider,
    .exhibition-nav-counter {
        display: none;
    }
    .exhibition-toc-toggle {
        padding: 7px 10px;
        font-size: 12px;
    }
    .exhibition-toc-panel {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .block-knihovny .knihovny-split-item,
    .block-knihovny .knihovny-split-item.image-right,
    .block-knihovny .knihovny-tile,
    .block-knihovny .knihovny-tile.image-right {
        flex-direction: column;
    }
    .block-knihovny .knihovny-split-media,
    .block-knihovny .knihovny-tile-media {
        flex: 0 0 auto;
        max-width: 160px;
        width: 100%;
        margin: 0 auto;
    }
}

/* Rozložení bloků — jednotná šířka všech bloků v rámci režimu (veřejná stránka) */
.exhibition-content.layout-full {
    --block-max-width: none;
}

.exhibition-content.layout-band,
.exhibition-content.layout-stacked {
    --block-max-width: min(1200px, 100%);
}

.exhibition-content[class*="layout-"] > .block {
    width: 100%;
    max-width: var(--block-max-width, none);
    margin-inline: auto;
    box-sizing: border-box;
}

.exhibition-content[class*="layout-"] .block-band-outer,
.exhibition-content[class*="layout-"] .block > .hero-inner {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

/* Pásy s okraji — full-width pozadí, omezený obsah */
.exhibition-content.layout-band > .block {
    max-width: none;
    margin-inline: 0;
}

.exhibition-content.layout-band .block-inner {
    padding-inline: 0;
}

.exhibition-content.layout-band .block-content-wrap {
    width: 100%;
    max-width: var(--block-max-width);
    margin-inline: auto;
    box-sizing: border-box;
}

.exhibition-content.layout-band .block-inner > .block-content-wrap {
    padding-inline: var(--ex-block-padding-x, 32px);
}

.exhibition-content.layout-band .hero-inner.is-fullscreen > .block-content-wrap {
    max-width: none;
}

/* Video / Zvuk */
.block-video .av-block-inner,
.block-sound .av-block-inner {
    display: block;
}
.av-block-header {
    max-width: 720px;
    margin-bottom: clamp(10px, 1.4vw, 16px);
}
.block-video.align-center .av-block-header,
.block-sound.align-center .av-block-header,
.block-video.align-center .av-stage-wrap,
.block-sound.align-center .av-stage-wrap,
.block-video.align-center .av-active-meta,
.block-sound.align-center .av-active-meta {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.block-video.align-right .av-block-header,
.block-sound.align-right .av-block-header,
.block-video.align-right .av-stage-wrap,
.block-sound.align-right .av-stage-wrap,
.block-video.align-right .av-active-meta,
.block-sound.align-right .av-active-meta {
    margin-left: auto;
    text-align: right;
}
.av-block-title {
    margin: 4px 0 0;
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--block-ink, var(--ex-ink));
}
.av-block-lead {
    margin: 6px 0 0;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--block-muted, var(--ex-muted));
}
.av-stage-wrap {
    width: calc(var(--av-player-size, 100) * 1%);
    max-width: 100%;
}
.av-stage-wrap.has-playlist {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
    gap: clamp(12px, 1.8vw, 18px);
    align-items: stretch;
    width: 100%;
}
.av-stage {
    width: 100%;
    min-width: 0;
    min-height: 0;
}
.av-embed-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111418;
    border-radius: 10px;
    overflow: hidden;
}
.av-embed-frame.is-spotify {
    aspect-ratio: auto;
    height: 152px;
    background: transparent;
}
.av-embed-frame.is-spotify-tall {
    height: 352px;
}
.av-embed-frame.is-soundcloud {
    aspect-ratio: auto;
    height: 300px;
    background: #f2f2f2;
}
.av-embed-frame.is-youtube-music {
    aspect-ratio: 16 / 9;
}
.av-embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.av-embed-external {
    margin: 8px 0 0;
    font-size: 13px;
}
.av-embed-external a {
    color: var(--ex-muted, #6b655c);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.av-video {
    display: block;
    width: 100%;
    max-height: min(70vh, 720px);
    border-radius: 10px;
    background: #111418;
}
.av-audio {
    display: block;
    width: 100%;
    margin: 0;
}
.av-embed-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 180px;
    height: 100%;
    padding: 28px;
    border-radius: 10px;
    background: var(--ex-surface, #E6E1D8);
}
.av-embed-fallback-label {
    font-size: 14px;
    color: var(--ex-muted);
}
.av-playlist-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    border-radius: 10px;
    background: color-mix(in srgb, var(--ex-surface, #E6E1D8) 72%, #fff);
    border: 1px solid rgba(20, 26, 34, .08);
    overflow: hidden;
}
.av-playlist-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.av-playlist-scroll::-webkit-scrollbar {
    display: none;
}
.av-playlist-panel::before,
.av-playlist-panel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 28px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
}
.av-playlist-panel::before {
    top: 0;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--ex-surface, #E6E1D8) 88%, #fff), transparent);
}
.av-playlist-panel::after {
    bottom: 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--ex-surface, #E6E1D8) 88%, #fff), transparent);
}
.av-playlist-panel.has-overflow-top::before,
.av-playlist-panel.has-overflow-bottom::after {
    opacity: 1;
}
.av-playlist-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 28px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #3B4553;
    box-shadow: 0 1px 4px rgba(20, 26, 34, .12);
    cursor: pointer;
    padding: 0;
}
.av-playlist-nav:hover {
    color: var(--ex-accent, #E07B18);
}
.av-playlist-nav[hidden] {
    display: none !important;
}
.av-playlist-nav-prev {
    top: 6px;
}
.av-playlist-nav-next {
    bottom: 6px;
}
.av-playlist-panel.has-overflow-top .av-playlist-scroll {
    padding-top: 30px;
}
.av-playlist-panel.has-overflow-bottom .av-playlist-scroll {
    padding-bottom: 30px;
}
.av-playlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.av-playlist-item {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: background .15s ease, border-color .15s ease;
}
.av-playlist-item:hover {
    background: #fff;
    border-color: rgba(20, 26, 34, .08);
}
.av-playlist-item.is-active {
    background: #fff;
    border-color: color-mix(in srgb, var(--ex-accent, #E07B18) 55%, #E2E5EA);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--ex-accent, #E07B18) 18%, transparent);
}
.av-playlist-index {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(20, 26, 34, .06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #6B7684;
}
.av-playlist-item.is-active .av-playlist-index {
    background: var(--ex-accent, #E07B18);
    color: #fff;
}
.av-playlist-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.av-playlist-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.av-playlist-caption {
    font-size: 12px;
    color: var(--ex-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.av-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}
.block-video.align-left .av-switcher,
.block-sound.align-left .av-switcher {
    justify-content: flex-start;
}
.block-video.align-right .av-switcher,
.block-sound.align-right .av-switcher {
    justify-content: flex-end;
}
.av-switcher-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #C9D0D9;
    cursor: pointer;
}
.av-switcher-dot.is-active {
    background: var(--ex-accent, #E07B18);
}
.av-active-meta {
    margin-top: 14px;
    max-width: 720px;
}
.av-item-title {
    font-size: 15px;
    font-weight: 600;
}
.av-item-caption {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: var(--ex-muted);
    line-height: 1.5;
}

@media (max-width: 800px) {
    .av-stage-wrap.has-playlist {
        grid-template-columns: 1fr;
    }
    .av-playlist-panel {
        height: auto;
        max-height: min(42vh, 320px);
    }
}

/* Karty — mezery a zaoblení */
.exhibition-content.layout-stacked {
    padding: var(--ex-page-padding, 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ex-block-gap, 12px);
}
.exhibition-content.layout-stacked > .exhibition-block-anchor:not(:last-child) {
    margin-bottom: 0;
}

.exhibition-content.layout-stacked > .block {
    border-radius: 14px;
    overflow: hidden;
}

.exhibition-content.layout-stacked .block-band-outer > :first-child {
    border-radius: 14px;
    overflow: hidden;
}

.exhibition-content.layout-stacked .block-section-heading .section-heading-inner:not(.has-image):not(.has-color):not([class*="has-bg-token"]),
.exhibition-content.layout-stacked .block-title-card .title-card-inner,
.exhibition-content.layout-stacked .block-inner,
.exhibition-content.layout-stacked .block-text-image .text-image-inner:not(.has-bg-token):not(.has-bg-color),
.exhibition-content.layout-stacked .block-text .text-block-inner:not(.has-bg-token):not(.has-bg-color),
.exhibition-content.layout-stacked .block-hero .hero-inner:not(.has-image) {
    background: var(--ex-surface, #E6E1D8);
}

.exhibition-content.layout-stacked .block-band-outer > :first-child {
    box-shadow: 0 1px 4px rgba(20, 26, 34, .07);
}
