@font-face {
    font-family: 'Perandory Festival';
    src: url('fonts/PerandorySemiCondensed.otf') format('opentype');
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

:root {
    --calisia-gold: #a48044;
    --calisia-gold-dark: #806233;
    --calisia-white: #f4f4f4;
}

html {
    overflow-x: hidden;
    background: #000;
    scroll-behavior: smooth;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-tap-highlight-color: rgba(164, 128, 68, 0.22);
}

.festival-back-navigation {
    display: flex;
    width: min(100%, 1100px);
    margin: 18px auto 6px;
    padding: 0 4px;
    justify-content: flex-start;
}

.festival-back-link,
.festival-back-link:visited {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 7px 13px 7px 11px;
    border: 1px solid rgba(164, 128, 68, 0.48);
    border-radius: 999px;
    background: rgba(164, 128, 68, 0.07);
    color: #d4b073 !important;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.festival-back-link:hover {
    border-color: rgba(212, 176, 115, 0.86);
    background: rgba(164, 128, 68, 0.15);
    color: #fff !important;
    transform: translateX(-2px);
}

.festival-back-link:focus-visible {
    border-color: #d4b073;
    outline: 2px solid rgba(212, 176, 115, 0.62);
    outline-offset: 3px;
}

.festival-back-icon {
    font-size: 19px;
    font-weight: 400;
    line-height: 0.8;
    transform: translateY(-1px);
}

.festival-back-navigation + .team-h,
.festival-back-navigation + .jury-box > .team-h {
    margin-top: 28px !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

a,
a:visited,
a:hover,
a:active,
a:focus {
    text-decoration: none;
}

body a:visited,
body a:active,
body a:focus {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--calisia-gold) !important;
    outline-offset: 3px;
    box-shadow: none !important;
}

.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li > a:active,
.navbar-default .navbar-nav > .active > a:focus,
.int-collapse-menu:focus,
.int-collapse-menu:active {
    background: transparent !important;
    border-color: var(--calisia-gold) !important;
    color: var(--calisia-gold) !important;
}

.card,
.card:visited {
    min-height: 96px;
    height: auto !important;
    margin: 8px !important;
    padding: 18px 12px !important;
    border-color: var(--calisia-gold) !important;
    background: #000 !important;
    color: var(--calisia-white) !important;
    line-height: 1.25;
}

.card:hover,
.card:focus-visible {
    border-color: var(--calisia-gold) !important;
    background: var(--calisia-gold) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.card:active {
    border-color: var(--calisia-gold-dark) !important;
    background: var(--calisia-gold-dark) !important;
    color: #fff !important;
    transform: none;
}

.btn-secondary,
.btn-secondary:visited {
    border-color: #6c757d !important;
    background-color: #6c757d !important;
    color: #fff !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active,
.show > .btn-secondary.dropdown-toggle {
    border-color: var(--calisia-gold) !important;
    background-color: var(--calisia-gold) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.team-container {
    width: min(1100px, calc(100% - 32px)) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.team-h,
.about-h {
    width: min(900px, calc(100% - 32px)) !important;
    margin-top: clamp(52px, 7vw, 88px) !important;
    margin-right: auto !important;
    margin-bottom: clamp(32px, 4vw, 48px) !important;
    margin-left: auto !important;
}

.h1-team,
.h1-about {
    padding: 0 12px;
    line-height: 1.25;
}

.main-festiwal,
.main-festiwal-korekta,
.margin-korekta,
.margin-bez,
.margin-bez2 {
    min-height: 124px;
    height: auto !important;
    margin-bottom: 28px !important;
    padding: 8px 0;
    align-items: center;
    align-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.main-festiwal.festival-years {
    min-height: 0;
    height: auto !important;
    padding-bottom: 48px;
}

.team-text,
.p-team,
.p-1-kalisz,
.text-application {
    text-align: left !important;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.team-text {
    width: 100%;
    max-width: 920px;
    margin-right: auto;
    margin-left: auto;
    padding: clamp(16px, 3vw, 30px) !important;
}

.box-1-team {
    margin-bottom: 38px !important;
    padding: clamp(16px, 3vw, 30px) !important;
}

.flex-about-row {
    width: min(1000px, calc(100% - 32px)) !important;
    gap: 30px;
    align-items: flex-start;
}

.flex-about-row > div {
    min-width: 0;
}

.p-1-kalisz,
.image-about-1 {
    width: 100% !important;
}

.width-form {
    width: min(1000px, calc(100% - 32px)) !important;
}

.container-form {
    gap: 28px;
    padding-bottom: 64px !important;
}

.input-icon-form {
    height: auto !important;
    min-height: 250px;
    margin-top: 42px !important;
    padding: 24px;
}

.detailed-p {
    margin-bottom: 56px !important;
}

.jury-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
}

.line {
    max-width: 100%;
}

.modal-dialog {
    margin-right: auto;
    margin-left: auto;
}

.modal-body {
    line-height: 1.7;
    text-align: left;
}

.lightgallery {
    width: min(1200px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
    gap: 12px;
}

.lightgallery .image {
    min-width: 0;
    width: calc(33.333% - 8px) !important;
    margin: 0 !important;
    color: var(--calisia-white) !important;
}

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

:is(.festival-photo-page, .competition-photo-page) .lightgallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    padding-bottom: 56px;
}

:is(.festival-photo-page, .competition-photo-page) .lightgallery .image {
    display: block;
    width: 100% !important;
    height: 100%;
    margin: 0 !important;
}

:is(.festival-photo-page, .competition-photo-page) .lightgallery .image p {
    margin: 0;
    padding: 14px 10px 6px;
    color: var(--calisia-white);
    line-height: 1.5;
    text-align: center;
}

:is(.festival-photo-page, .competition-photo-page) #footer {
    clear: both;
    position: relative;
    visibility: visible !important;
}

:is(.festival-photo-page, .competition-photo-page) > .container,
:is(.festival-photo-page, .competition-photo-page) #footer .container {
    height: auto !important;
    min-height: 0;
}

.festival-program-page .team-h {
    margin-top: 44px !important;
    margin-bottom: 24px !important;
}

.festival-program-page .main-festiwal {
    min-height: 0;
    margin-bottom: 24px !important;
    padding: 0;
}

.festival-program-page .flex-team,
.festival-program-page .box-1-team {
    margin-top: 0 !important;
}

/* Festival archive programs: visual language shared with Festival 2026. */
.archive-program-page .team-h {
    margin-top: 44px !important;
    margin-bottom: 24px !important;
}

.archive-program-page .program-links {
    min-height: 0;
    margin-bottom: 24px !important;
    padding: 0;
}

.archive-program-page .archive-program-list {
    display: grid !important;
    float: none;
    gap: 24px;
    width: min(920px, calc(100% - 40px)) !important;
    margin: 0 auto !important;
}

.archive-program-page .archive-program-event {
    width: 100% !important;
    margin: 0 !important;
}

.archive-program-page .archive-program-date {
    width: auto !important;
    min-height: 210px;
    margin: 0 !important;
    padding: 28px 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.archive-program-page .archive-date-label {
    margin: 0 !important;
    color: #fff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 27px !important;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
}

.archive-program-page .archive-program-details {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 32px 30px !important;
    background: transparent !important;
    text-align: left !important;
}

.archive-program-page .archive-program-details .p-team {
    margin: 0;
    color: #e2e2e2;
    font-size: 16px;
    line-height: 1.65;
    text-align: left;
}

.archive-program-page .archive-program-details .gold {
    color: #d4b073 !important;
    font-weight: 700;
}

.archive-program-page .archive-program-details .link2 {
    display: inline-block;
    margin-top: 10px;
    color: #d4b073 !important;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(212, 176, 115, 0.55);
    text-underline-offset: 4px;
}

.archive-program-2025 .flex-team,
.archive-program-2025 .box-1-team,
.archive-program-2025 .team-text {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] {
    overflow: hidden;
    max-width: 920px !important;
    margin: 0 auto 24px !important;
    padding: 28px 32px 32px !important;
    border: 1px solid rgba(164, 128, 68, 0.6);
    border-radius: 12px !important;
    background: #151515 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    color: #e2e2e2 !important;
    font-size: 16px;
    line-height: 1.55 !important;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] > div[style*="margin-bottom: 25px"] {
    margin: -28px -32px 26px !important;
    padding: 22px 32px !important;
    background: linear-gradient(145deg, #a48044, #6f542c);
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] > div[style*="margin-bottom: 25px"] p {
    color: #fff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 23px !important;
    font-weight: 500 !important;
    line-height: 1.35;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] > p:first-child {
    margin: 0 0 20px !important;
    color: #d4b073;
    font-size: 15px !important;
    line-height: 1.55;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] > p:first-child + hr {
    display: none;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] > p:first-child ~ div[style*="margin-bottom: 25px"] {
    margin: 0 -32px 26px !important;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] h2 {
    margin: 0 0 10px !important;
    color: #fff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 26px !important;
    font-weight: 500;
    line-height: 1.3;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] h3 {
    margin: 18px 0 10px !important;
    color: #d4b073 !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] hr {
    margin: 28px 0 20px !important;
    border-color: rgba(164, 128, 68, 0.55) !important;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] ul {
    margin: 0 !important;
    padding: 0 !important;
    color: #dedede !important;
    list-style: none;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] li {
    margin: 5px 0;
    line-height: 1.5;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] li.program-composer {
    margin: 0 0 3px !important;
    color: #f2f2f2;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] li::before {
    margin-right: 9px;
    color: #a48044;
    content: '•';
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] li.program-composer::before {
    display: none !important;
    content: none !important;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] li.program-composer + li {
    margin-top: 0;
}

.archive-program-2025 .team-text > div[style*="max-width: 700px"] li:empty,
.archive-program-2025 .team-text > div[style*="max-width: 700px"] li:empty::before {
    display: none;
}

.competition-about-page .main-festiwal {
    min-height: 0;
    margin-bottom: 30px !important;
}

.competition-about-page .container-text-photos2 {
    margin-top: 0 !important;
}

.footer-wrapper {
    padding: 36px 0 !important;
}

.homepage-2026 .home-image {
    min-height: 800px;
    height: auto;
    padding: 52px 16px;
}

.homepage-2026 .home-content {
    display: flex;
    width: 100%;
    padding: 0 !important;
    justify-content: center;
}

.home-festival-poster {
    display: flex;
    width: min(760px, 100%);
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-align: center;
}

.home-festival-circle {
    display: flex;
    width: min(540px, 78vw);
    aspect-ratio: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(30px, 5vw, 54px);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.84);
}

.home-festival-mark {
    display: block;
    width: 62%;
    margin: 0 auto clamp(16px, 2.2vw, 24px);
}

.home-festival-title {
    margin: 0;
    color: #fff;
    font-family: 'Perandory Festival', 'Perandory Semi-Condensed', 'Bodoni MT', Didot, Georgia, serif;
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 400;
    letter-spacing: 0.015em;
    line-height: 0.92;
    text-transform: uppercase;
}

.home-festival-title > span {
    display: block;
}

.home-festival-edition {
    white-space: nowrap;
}

.home-festival-edition sup {
    position: relative;
    top: -1.2em;
    margin-left: 0.04em;
    font-family: inherit;
    font-size: 0.28em;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.home-festival-date {
    margin: clamp(9px, 1.2vw, 14px) 0 0;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: clamp(25px, 3.2vw, 42px);
    font-weight: 500;
    letter-spacing: 0.035em;
    line-height: 1;
}

.home-festival-date--long {
    font-size: clamp(14px, 2.1vw, 26px);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.home-festival-ticket {
    max-width: 740px;
    margin: 24px auto 0;
    padding: 16px 22px;
    background: rgba(0, 0, 0, 0.88);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: clamp(13px, 1.35vw, 17px);
    font-weight: 600;
    letter-spacing: 0.035em;
    line-height: 1.45;
    text-transform: uppercase;
}

.home-festival-ticket a,
.home-festival-ticket a:visited,
.home-festival-ticket a:hover,
.home-festival-ticket a:focus {
    color: #fff !important;
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .festival-back-navigation {
        width: 100%;
        margin: 12px auto 2px;
        padding: 0 2px;
    }

    .festival-back-link,
    .festival-back-link:visited {
        min-height: 36px;
        padding: 6px 12px 6px 10px;
        font-size: 11px;
    }

    .archive-program-page .archive-program-list {
        width: min(100% - 20px, 920px) !important;
    }

    .archive-program-page .archive-program-date {
        min-height: 0;
        padding: 20px !important;
    }

    .archive-program-page .archive-date-label {
        font-size: 24px !important;
    }

    .archive-program-page .archive-program-details {
        padding: 24px 22px 28px !important;
    }

    .archive-program-page .archive-program-details .p-team {
        font-size: 15px;
        line-height: 1.6;
    }

    .archive-program-2025 .team-text {
        padding: 0 10px !important;
    }

    .archive-program-2025 .team-text > div[style*="max-width: 700px"] {
        margin-bottom: 18px !important;
        padding: 24px 20px 26px !important;
    }

    .archive-program-2025 .team-text > div[style*="max-width: 700px"] > div[style*="margin-bottom: 25px"] {
        margin: -24px -20px 22px !important;
        padding: 18px 20px !important;
    }

    .archive-program-2025 .team-text > div[style*="max-width: 700px"] > p:first-child ~ div[style*="margin-bottom: 25px"] {
        margin: 0 -20px 22px !important;
    }

    .archive-program-2025 .team-text > div[style*="max-width: 700px"] > div[style*="margin-bottom: 25px"] p {
        font-size: 20px !important;
    }

    .archive-program-2025 .team-text > div[style*="max-width: 700px"] h2 {
        font-size: 23px !important;
    }

    .team-container {
        width: min(100% - 20px, 1100px) !important;
    }

    .team-h,
    .about-h {
        width: calc(100% - 20px) !important;
        margin-top: 36px !important;
        margin-bottom: 28px !important;
    }

    .main-festiwal,
    .main-festiwal-korekta,
    .margin-korekta,
    .margin-bez,
    .margin-bez2 {
        min-height: 0;
        height: auto !important;
        margin-bottom: 32px !important;
        padding: 4px 0;
        flex-flow: column nowrap;
        justify-content: flex-start;
    }

    .card {
        width: min(260px, calc(100% - 16px));
    }

    .flex-about-row {
        width: calc(100% - 24px) !important;
        gap: 22px;
    }

    .input-icon-form,
    .contact-input {
        width: 100% !important;
    }

    .lightgallery .image {
        width: calc(50% - 6px) !important;
    }

    :is(.festival-photo-page, .competition-photo-page) .lightgallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 20px);
        gap: 18px 12px;
        padding-bottom: 36px;
    }

    :is(.festival-photo-page, .competition-photo-page) .lightgallery .image {
        width: 100% !important;
    }
}

@media (max-width: 520px) {
    :is(.festival-photo-page, .competition-photo-page) .lightgallery {
        grid-template-columns: 1fr;
    }

    .competition-about-page .main-festiwal {
        margin-bottom: 32px !important;
    }

    .competition-about-page .container-text-photos2,
    .competition-about-page .text-application {
        margin-top: 0 !important;
    }

    .festival-program-page .team-h {
        margin-top: 28px !important;
        margin-bottom: 22px !important;
    }

    .festival-program-page .main-festiwal {
        margin-bottom: 20px !important;
    }

    .homepage-2026 .home-image {
        min-height: 690px;
        padding: 34px 12px;
        background-position: center;
    }

    .home-festival-circle {
        width: min(420px, 88vw);
        padding: clamp(24px, 7vw, 42px);
    }

    .home-festival-mark {
        width: 64%;
        margin-bottom: 15px;
    }

    .home-festival-title {
        font-size: clamp(29px, 9vw, 43px);
    }

    .home-festival-date {
        margin-top: 10px;
        font-size: clamp(23px, 7vw, 34px);
    }

    .home-festival-date--long {
        font-size: clamp(14px, 4.1vw, 20px);
    }

    .home-festival-ticket {
        margin-top: 18px;
        padding: 13px 14px;
        font-size: 12px;
        line-height: 1.4;
    }
}

@media (max-width: 460px) {
    .lightgallery .image {
        width: 100% !important;
    }

    .footer-wrapper {
        padding: 28px 0 !important;
    }
}
