/* The festival begins at the top of the page, without the liact site navigation. */
body.page-id-6470 #ajax-content-wrap > .container-wrap {
    margin-top: 0;
    padding-top: 0;
}

.toggles .toggle > [hidden] {
    display: none !important;
}

.toggles[data-style="default"] .toggle > div:not([hidden]) {
    display: block;
}

.toggles[data-style="default"] .toggle h3 .toggle-heading {
    position: relative;
    display: block;
    width: 100%;
    padding: 14px 14px 16px 43px;
    border: 0;
    border-radius: 0;
    background: #f2f2f2;
    color: #555;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.toggles[data-style="default"] .toggle h3 .toggle-heading:hover,
.toggles[data-style="default"] .toggle h3 .toggle-heading[aria-expanded="true"] {
    background: #e9e9e9;
}

.toggle-heading:focus-visible,
.nectar_icon a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

body .toggle[data-inner-wrap="true"] > div:not([hidden]) {
    max-height: none;
}

.toggle > .toggle-title button i {
    position: absolute;
    left: 13px;
    top: 13px;
    width: 18px;
    height: 16px;
    color: #888;
    font-size: 15px;
    line-height: 18px;
}

/* WPBakery sizes this flexible wrapper after page load on the original page. */
.img-news-page > .vc_column-inner > .wpb_wrapper {
    width: 100%;
}

.festival-section {
    margin: 54px 0;
}

.festival-section h2,
#footer-outer .festival-contact-title {
    color: #0c5693;
    font-family: Nunito, sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.2;
}

.festival-recap {
    position: relative;
    display: grid;
    align-items: end;
    min-height: clamp(300px, 42vw, 510px);
    background: #0c5693 center / cover no-repeat;
    isolation: isolate;
    overflow: hidden;
}

.festival-recap::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(0deg, #03192c 0%, transparent 84%);
}

.festival-recap-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.festival-recap-content {
    padding: clamp(22px, 5vw, 64px);
}

.festival-recap-content h2,
.festival-recap-content p {
    color: #fff;
}

body .festival-action,
body .festival-video-toggle {
    display: inline-block;
    margin: 8px 12px 8px 0;
    padding: 9px 16px;
    background: #0c5693;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

body .festival-video-toggle {
    background: #051e33;
    border-color: #fff;
}

body .festival-video-toggle[hidden] {
    display: none;
}

body .festival-action:hover,
body .festival-video-toggle:hover {
    background: #073c65;
    color: #fff;
}

.festival-film {
    margin-top: 18px;
}

.festival-film summary {
    cursor: pointer;
    font-weight: 700;
    color: #0c5693;
}

.festival-film video,
.festival-media-grid video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #061a2b;
}

.festival-film video {
    margin-top: 20px;
}

.festival-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
    gap: 18px;
}

.festival-media-grid figure {
    margin: 0;
}

.festival-media-grid figcaption {
    padding-bottom: 6px;
    font-weight: 700;
}

.festival-photo-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.festival-lightbox {
    width: min(95vw, 1200px);
    max-height: 95vh;
    margin: auto;
    padding: 12px;
    border: 0;
}

.festival-lightbox img {
    display: block;
    margin-inline: auto;
    max-height: 80vh;
}

.festival-lightbox form {
    text-align: right;
}

.festival-lightbox::backdrop {
    background: #001321d9;
}

.festival-evening {
    max-width: 950px;
    margin-inline: auto;
}

.festival-evening-banner {
    margin: 18px 0 36px;
    padding: clamp(22px, 5vw, 64px);
    background: linear-gradient(135deg, #0c5693, #6595b9);
    color: white;
}

.festival-evening-banner img {
    width: min(100%, 370px);
}

.festival-evening-banner h1,
.festival-evening-banner p {
    color: white;
}

.festival-evening-image {
    display: block;
    margin-top: 18px;
    height: auto;
}

#footer-outer .festival-contact-title {
    font-size: 24px;
    margin-bottom: 12px;
}

.festival-action:focus-visible,
.festival-video-toggle:focus-visible,
.festival-photo-grid a:focus-visible {
    outline: 2px solid #0c5693;
    outline-offset: 3px;
}

.festival-recap :focus-visible {
    outline-color: #fff;
}

body .festival-partners {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 20px;
    margin: 26px 0 0;
    padding-left: 0;
    list-style-type: none;
    text-align: center;
}

body .festival-partners li {
    list-style: none;
}

.festival-partners a {
    display: grid;
    place-items: center;
    min-height: clamp(76px, 12vw, 155px);
    margin-top: 12px;
}

.festival-partners img {
    max-width: 100%;
    max-height: clamp(76px, 12vw, 155px);
    object-fit: contain;
}

@media (max-width: 690px) {
    body .festival-partners {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.festival-archive-link {
    color: #0c5693;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.festival-evening-clip {
    margin-top: 26px;
}

body .festival-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem clamp(.5rem, 3vw, 2.5rem);
    padding: .65rem 0;
    background: white;
    color: #0c5693;
    font-family: Nunito, sans-serif;
    font-weight: 700;
}

body .festival-nav a {
    padding: .35rem .2rem;
    color: inherit;
}

.festival-nav a:hover {
    text-decoration: underline;
}

#programm, #rueckblick, #bildergalerie, #partner, #kontakt {
    scroll-margin-top: 22px;
}

.festival-social {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .3rem;
}

body .festival-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #0c5693;
}

body .festival-social i {
    width: auto;
    height: auto;
    color: inherit;
    font-size: 28px;
    line-height: 1;
}

body .festival-recap .festival-video-toggle {
    position: absolute;
    inset: auto 12px 12px auto;
    min-width: 42px;
    margin: 0;
    padding: 4px 10px;
}

.festival-programme-photo {
    display: block;
    width: min(100%, 760px);
    height: auto;
    margin: 16px 0;
}

.festival-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.festival-gallery-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.festival-photo-grid[hidden], .festival-gallery-pagination[hidden] {
    display: none;
}

.festival-gallery-pagination button {
    min-width: 40px;
    min-height: 40px;
    padding: .25rem;
    border: 1px solid #0c5693;
    border-radius: 4px;
    background: white;
    color: #0c5693;
    cursor: pointer;
}

.festival-gallery-pagination [aria-current="page"] {
    background: #0c5693;
    color: white;
}

@media (max-width: 690px) {
    .festival-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
