body.festival-modal-open {
    overflow: hidden;
}

.festival-language-switcher {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9000;
    display: inline-block;
}

.festival-language-switcher__summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(12, 53, 99, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 28px rgba(8, 32, 66, 0.14);
    backdrop-filter: blur(12px);
    cursor: pointer;
    list-style: none;
}

.festival-language-switcher__summary::-webkit-details-marker {
    display: none;
}

.festival-language-switcher__summary:hover,
.festival-language-switcher[open] .festival-language-switcher__summary {
    background: rgba(255, 255, 255, 0.94);
}

.festival-language-switcher__current-flag,
.festival-language-switcher__flag {
    display: block;
    width: 22px;
    height: 16px;
    border-radius: 4px;
}

.festival-language-switcher__chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #004b99;
    border-bottom: 2px solid #004b99;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.festival-language-switcher[open] .festival-language-switcher__chevron {
    transform: rotate(225deg) translateY(-1px);
}

.festival-language-switcher__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    min-width: 216px;
    padding: 10px;
    border: 1px solid rgba(12, 53, 99, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 32px rgba(8, 32, 66, 0.16);
    backdrop-filter: blur(12px);
    transform-origin: top right;
}

.festival-language-switcher__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.festival-language-switcher__link:hover {
    transform: translateY(-1px);
    background: rgba(0, 75, 153, 0.08);
}

.festival-language-switcher__link.is-active {
    background: rgba(0, 75, 153, 0.12);
    box-shadow: inset 0 0 0 1px rgba(0, 75, 153, 0.18);
}

/* Popup runtime */
.festival-popup {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: auto;
    padding: clamp(16px, 4vw, 36px);
    background: rgba(2, 20, 46, 0.78);
}

.festival-popup.is-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.festival-popup .dialog-widget-content {
    position: relative;
    inset: auto;
    width: auto;
    max-width: 100%;
    background: var(--e-a-bg-default);
    border-radius: 3px;
    box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.festival-popup .dialog-message {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(70vw, 1100px);
    max-width: 100%;
    max-height: min(80vh, calc(100vh - 48px));
    overflow: auto;
    background: var(--e-a-bg-default);
    line-height: 1.5;
}

.festival-popup .dialog-message > * {
    min-height: 100%;
    width: 100%;
}

.festival-popup .dialog-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--e-a-color-txt);
    font-size: 30px;
    line-height: 1;
    transition: color 0.3s ease;
}

.festival-popup .dialog-close-button:hover {
    color: var(--e-a-color-txt-hover);
}

/* Lightbox runtime */
.festival-lightbox {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}

.festival-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.32s ease;
}

.festival-lightbox__inner {
    position: relative;
    max-width: min(92vw, 1280px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.97);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.festival-lightbox.is-open .festival-lightbox__inner {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.festival-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    object-fit: contain;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.festival-lightbox__close,
.festival-slider__button {
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #004b99;
    cursor: pointer;
}

.festival-lightbox__close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 42px;
    height: 42px;
    font-size: 24px;
    line-height: 1;
}

.festival-lightbox__nav {
    position: absolute;
    top: 50%;
    width: calc(100% + 56px);
    left: -28px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.festival-lightbox__nav button {
    pointer-events: auto;
    width: 42px;
    height: 42px;
    font-size: 26px;
    line-height: 1;
}

.festival-lightbox__caption {
    margin-top: 10px;
    color: #fff;
    text-align: center;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.05s, opacity 0.25s ease 0.05s;
}

.festival-lightbox.is-open .festival-lightbox__caption {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Carousel runtime */
.festival-slider {
    position: relative;
    overflow: hidden;
}

.festival-slider .festival-slider__track {
    display: flex !important;
    transition: transform 0.35s ease;
    will-change: transform;
}

.festival-slider .festival-slide {
    min-width: 100%;
    flex: 0 0 100%;
}

.festival-slider.festival-slider--fade .festival-slider__track {
    display: block !important;
    position: relative;
    transform: none !important;
}

.festival-slider.festival-slider--fade .festival-slide {
    position: absolute;
    inset: 0;
    min-width: 0;
    flex: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.festival-slider.festival-slider--fade .festival-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.festival-slider .festival-carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.festival-slider__button {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.festival-slider__button[disabled] {
    opacity: 0.5;
    cursor: default;
}

.festival-slider__button--prev {
    left: 10px;
}

.festival-slider__button--next {
    right: 10px;
}

.festival-gallery-card__image[data-thumbnail] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Contact feedback */
.festival-contact-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
}

.festival-contact-notice--success {
    background: #e7f7ee;
    color: #0f6b38;
}

.festival-contact-notice--error {
    background: #ffe9ec;
    color: #9f1f2a;
}

.festival-contact-notice--warning {
    background: #fff5df;
    color: #8a5a00;
}

/* Accessibility states */
body.festival-high-contrast,
body.festival-high-contrast * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
}

body.festival-negative {
    filter: invert(1) hue-rotate(180deg);
}

body.festival-negative img,
body.festival-negative video,
body.festival-negative iframe {
    filter: invert(1) hue-rotate(180deg);
}

body.festival-links-underline a {
    text-decoration: underline !important;
}

body.festival-readable-font,
body.festival-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}

body.festival-readable-font p,
body.festival-readable-font li,
body.festival-readable-font a,
body.festival-readable-font span {
    font-weight: 700 !important;
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .festival-language-switcher {
        top: 12px;
        right: 12px;
    }

    .festival-language-switcher__summary {
        padding: 7px 9px;
    }

    .festival-language-switcher__menu {
        gap: 6px;
        padding: 8px;
    }

    .festival-popup {
        padding: 12px;
    }

    .festival-popup .dialog-message {
        width: 85vw;
        max-height: calc(100vh - 24px);
    }

    .festival-lightbox {
        padding: 16px;
    }

    .festival-lightbox__nav {
        width: 100%;
        left: 0;
    }

    .festival-lightbox__close {
        top: 8px;
        right: 8px;
    }
}
