:root {
    --orange: #fbae3b;
    --grey: #f0f0f0;
    --padding: 0.6em;
    --scroll-offset: 0;
}

@font-face {
    font-family: 'Olive';
    src: url('../fonts/LOB-Olive-Kino.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CMU Concrete Extra';
    src: url('../fonts/CMUConcrete-Roman-Extra.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: auto;
}

html,
body {
    width: 100%;
    height: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis-weight: none;
}

body {
    font-family: 'Olive', Helvetica, Arial, sans-serif;
    font-size: 1.8vw;
    line-height: 1.1;
    color: #000;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

h1,
h2 {
    font-weight: normal;
    font-size: inherit;
    text-align: center;
}

h3 {
    font-weight: normal;
    font-size: inherit;
    text-align: left;
}

h2,
.big {
    font-size: 3vw !important;
}

.program-city-title {
    --eye-width: 12vw;
    width: var(--eye-width);
    aspect-ratio: 4 / 2.5;
    display: grid;
    place-items: center;
    margin: 0 auto;
    background: url("../img/GSFF_Auge.svg") no-repeat center / 100% 100%;
    line-height: 1;
    text-align: center;
}

a {
    color: var(--orange);
    text-decoration: none;
}

nav {
    margin: 0 auto;
    padding: 0 var(--padding);
}

main {
    margin: 0 auto;
    padding: 3.5em var(--padding) 0;
}

a:hover {
    color: black;
}

.cmu {
    font-family: 'CMU Concrete Extra', 'Courier New', Courier, monospace;
    font-size: 1.4vw;
    line-height: 1.1;
}

button {
    font-family: 'Olive', Helvetica, Arial, sans-serif;
    font-size: 1.8vw;
    line-height: 1.1;
    color: #000;
}

.site-header {
    position: absolute;
    top: 2.73em;
    left: 2em;
    z-index: 5;
}

.site-logo img {
    display: block;
    height: 3.25em;
    width: auto;
}

.menu-button {
    position: absolute;
    top: 1em;
    right: 1em;
}

.main-menu a {
    display: block;
    width: 100%;
    padding: .2em 0;
    font-size: 5vw;
}

.main-menu a.active {
    color: black;
}

.main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.main-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.main-menu-inner {
    width: 100%;
    text-align: center;
    transform: translateY(-1em);
    transition: transform 0.3s ease;
}

.main-menu.is-open .main-menu-inner {
    transform: translateY(0);
}

.menu-bottom-links {
    opacity: 0;
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    color: var(--orange);
}

.menu-bottom-links a {
    color: var(--orange);
    text-decoration: none;
}

.menu-bottom-links a:hover {
    color: black;
}

.hero-info {
    position: absolute;
    top: var(--padding);
    left: 50%;
    transform: translateX(-50%);
    color: var(--orange);
    text-decoration: none;
    z-index: 6;
}

.hero-date {
    position: absolute;
    top: var(--padding);
    right: var(--padding);
    color: var(--orange);
    z-index: 6;
}

.hero-title {
    position: absolute;
    left: var(--padding);
    bottom: var(--padding);
    color: var(--orange);
    z-index: 6;
    max-width: 30%;
}

.hero-meta {
    position: absolute;
    right: var(--padding);
    bottom: var(--padding);
    color: var(--orange);
    text-align: right;
    z-index: 6;
    max-width: 30%;
}

.home-intro {
    margin: 2em auto 0;
    max-width: 65vw;
}

.home-introtop {
    margin: 0 auto;
    padding-left: 4em;
    padding-bottom: 3.5em;
    text-align: center;
    max-width: 65vw;
    line-height: 1;
}

.program-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--padding);
    margin-top: 2em;
}

.program-card {
    background: var(--grey);
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: var(--padding);
}

.program-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.program-card-header h3 {
    font-size: 3vw;
    margin: 0;
}

.program-city {
    position: relative;
    display: grid;
    place-items: center;
    line-height: 1;
    aspect-ratio: 4 / 2.5;
    width: 10vw;
    background: url("../img/GSFF_Auge_white.svg") no-repeat center / contain;
}

.program-mini {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--padding);
}

.program-mini li {
    display: flex;
    align-items: flex-start;
    gap: var(--padding);
}

.program-mini span {
    min-width: 3.5em;
}

.program-mini a {
    color: black;
    text-decoration: none;
}

.program-mini a:hover {
    color: var(--orange);
}

.home-title-bullet {
    display: grid;
    grid-template-columns: 1em 1fr;
}

.mini-shorts {
    list-style: none;
    margin-left: 1em;
}

.short-film-home {
    margin-left: 6em;
    line-height: 1;
}

@media (max-width: 768px) {
    .program-preview {
        grid-template-columns: 1fr;
    }
}

.program-row-body {
    padding: 0 var(--padding);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.program-row.is-open .program-row-body {
    opacity: 1;
}

.program-list {
    list-style: none;
    margin: 0;
    padding: 0;
}


.program-day {
    margin-bottom: 2em;
}

.program-row {
    background: var(--grey);
    scroll-margin-top: var(--scroll-offset);
}

.program-row-head {
    display: grid;
    grid-template-columns: 4em 1fr 2.5em 1fr 1fr 5em;
    gap: 0.5rem;
    width: 100%;
    padding: var(--padding);
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.program-row-head:hover,
.program-row.is-open .program-row-head {
    color: var(--orange);
}

.program-col--runtime {
    text-align: right;
}

.program-synopsis {
    margin: 1em 0;
}

.program-synopsis p,
.info-intro p,
.sponsors-intro p,
.home-intro p {
    margin-bottom: var(--padding);
}

.tag-qa {
    margin-right: var(--padding);
}

.program-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.program-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: .75em 0;
}

.program-col--title {
    display: grid;
    grid-template-columns: 1em 1fr;
}

.program-row--short .program-col--title {
    margin-left: 1.5em;
}

.btn {
    text-decoration: none;
}

.program-close {
    display: block;
    margin: var(--padding) auto;
    background: none;
    text-align: center;
    border: 0;
    color: var(--orange);
    cursor: pointer;
}

.program-gallery {
    position: relative;
}

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-height: 90vh;
    height: 90vh;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: var(--orange);
    cursor: pointer;
}

.slider-prev {
    left: var(--padding);
}

.slider-next {
    right: var(--padding);
}

.slider {
    position: relative;
    overflow: hidden;
}

.slider-dots {
    position: absolute;
    bottom: 1em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--padding);
    justify-content: center;
    align-items: center;
}

.slider-dot {
    display: block;
    width: var(--padding);
    height: var(--padding);
    border-radius: 50%;
    background: var(--orange);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slider-dot.is-active {
    transform: scale(1.5);
}

.trailer-open {
    position: absolute;
    left: var(--padding);
    top: var(--padding);
    z-index: 3;
    width: 2vw;
    height: 3vw;
    padding: 0;
    border: 0;
    background: var(--orange);
    cursor: pointer;
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    will-change: clip-path, transform;
}

.trailer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.trailer-overlay.is-open {
    display: flex;
}

.trailer-dialog {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.trailer-close {
    position: absolute;
    top: 1em;
    right: 1em;
    background: none;
    border: 0;
    color: var(--orange);
    cursor: pointer;
    z-index: 1001;
}

.slider:has(.trailer-overlay.is-open) .slider-track {
    transform: none !important;
}

.slider:has(.trailer-overlay.is-open) {
    overflow: visible;
}

.cb-player-overlayer-button {
    border: none;
    outline: 0;
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
}

.cb-player-overlayer-button:after {
    border-width: 30px 0 30px 50px;
    border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) var(--orange);
    cursor: pointer;
}

.cb-player-controls {
    background: none;
}

.cb-player-progress {
    background-color: transparent;
    height: 3px;
    margin-bottom: 20px;
}

.cb-player-progress-play {
    background-color: transparent;
    margin-left: 30px;
}

.cb-player-progress-play:after {
    content: "";
    border-radius: 50%;
    background-color: var(--orange);
    position: absolute;
    right: 0;
    top: -6px;
    transform: translateX(10px);
    height: 15px;
    width: 15px;
}

.cb-player-progress:after {
    content: "";
    background-color: var(--orange);
    border-radius: 50px;
    display: block;
    position: absolute;
    left: 30px;
    right: 30px;
    top: 0;
    height: 100%;
    width: calc(100% - 60px);
}

.cb-player-toggle-play {
    display: none;
}

.cb-player-progress-load {
    display: none;
}

.cb-player-button-play,
.cb-player-button-pause,
.cb-player-button-mute,
.cb-player-button-sound,
.cb-player-volume-wrap,
.cb-player-sound-on,
.cb-player-sound-off,
.cb-player-button-fullscreen-off,
.cb-player-button-fullscreen-on,
.cb-player-fullscreen,
.cb-player-toggle-fullscreen {
    display: none !important;
}

@keyframes cb-big-spin {
    to {
        transform: rotate(360deg);
    }
}

.cb-player.cb-player--loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    margin: -35px 0 0 -35px;
    border-radius: 50%;
    border: 3px solid var(--orange);
    border-top-color: transparent;
    animation: cb-big-spin 1s linear infinite;
    z-index: 9999;
    pointer-events: none;
}

.cb-player.cb-player--loading .cb-player-overlayer-button {
    display: none !important;
}

.afterprogram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.afterprogram-intro {
    grid-column: 1 / -1;
}

.afterprogram>.afterprogram-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.afterprogram>.afterprogram-section:first-of-type {
    grid-column: 1 / 2;
}

.afterprogram>.afterprogram-section:nth-of-type(n+2) {
    grid-column: 2 / 3;
}

.ap-text p {
    margin-bottom: 1em;
}

.ap-item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1em;
}

.ap-image img {
    max-height: 90vh;
    object-fit: cover;
}

.ap-image figcaption {
    margin-top: .35rem;
}

.info-intro {
    margin: 2em 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    margin-bottom: 2em;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: var(--padding);
}

.info-card-title {
    text-align: center;
}

.info-card-text p {
    margin: 0 0 var(--padding) 0;
}

.kv-grid {
    display: flex;
    flex-direction: column;
}

.kv-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: var(--padding);
}

.kv-desc {
    margin: 0;
}

.sponsors {
    margin-bottom: 4rem;
}

.sponsors-intro {
    margin-bottom: 2rem;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.sponsor {
    flex: 1 1 15%;
    max-width: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor img {
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
}

.sponsors-detail {
    margin-top: .5rem;
}

footer {
    padding-top: 50vh;
}

.year {
    text-align: center;
    margin: 0 auto;
}

.full-size {
    width: 100%;
    text-align: center;
    font-size: 6.5vw;
}

@media only screen and (max-width: 768px) {

    body,
    button {
        font-size: 16px;
    }

    main {
        margin: 0 auto;
        padding: 100px 10px 0;
    }

    .cmu {
        font-size: 14px;
    }

    h2,
    .big,
    .program-card-header h3 {
        font-size: 24px !important;
    }

    .site-header {
        top: 20px;
        left: var(--padding);
    }

    .menu-button {
        top: 30px;
        right: 10px;
        font-size: 24px;
    }

    .menu-bottom-links {
        opacity: 1;
    }

    .main-menu a {
        font-size: 24px;
    }

    .main-menu,
    .trailer-overlay {
        inset: 0;
        width: auto;
        height: auto;
        min-height: 100dvh;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        overscroll-behavior: contain;
    }

    .home-intro {
        display: none;
    }

    .home-introtop {
        padding-left: 0;
        padding-bottom: 30px;
        text-align: center;
        max-width: 100%;
    }

    .hero-info {
        left: var(--padding);
        transform: none;
    }

    .hero-title,
    .hero-meta {
        max-width: 50%;
    }

    .slider {
        max-height: 60vh;
        height: 60vh;
    }

    .slider-dots {
        display: none;
    }

    .trailer-open {
        position: absolute;
        left: calc(50% - 10px);
        top: calc(50% - 20px);
        width: 20px;
        height: 40px;
    }

    .home .program-card-header {
        align-items: baseline;
    }

    .home .program-city {
        position: relative;
        display: block;
        line-height: inherit;
        aspect-ratio: none;
        width: auto;
        background: none;
    }

    .program-day-title {
        margin-top: 10px;
    }

    .program .program-city-title {
        --eye-width: 100px;
    }

    .program-list {
        margin-bottom: 20px;
    }

    .program-row-head {
        display: grid;
        grid-template-columns: 50px 1fr 100px;
        grid-template-areas:
            "time title runtime"
            ". meta-left meta-left"
            ". meta-right meta-right";
        gap: .3rem .6rem;
        align-items: start;
    }

    .program-col--title {
        grid-area: title;
        display: grid;
        grid-template-columns: 1em 1fr;
    }

    .program-col--runtime {
        grid-area: runtime;
        text-align: right;
        white-space: nowrap;
    }

    .program-col--meta-left {
        grid-area: meta-left;
    }

    .program-col--meta-right {
        grid-area: meta-right;
    }

    .program-col--meta-left .meta-line,
    .program-col--meta-right .meta-line {
        display: block;
    }

    .tag-qa {
        display: none;
    }

    .afterprogram {
        display: block;
        margin-top: 20px;
    }

    .afterprogram-intro {
        margin-bottom: 20px;
    }

    .afterprogram-grid .ap-item {
        width: 100%;
    }

    .afterprogram>.afterprogram-section {
        gap: 5px;
    }

    .ap-image img {
        max-height: 60vh;
        object-fit: cover;
    }

    .info-grid {
        display: block;
    }

    .sponsor {
        flex: 1 1 25%;
        max-width: 25%;
    }
}