:root {
    --primary-bg: #81251a;
    --primary-bg-acc: #912f24;
    --secondary-bg: #f4e3b8;
    --secondary-bg-acc: #ccba8c;

    --primary-font: "Bordonaro Spur";
    --secondary-font: "Niva";
}

@font-face {
    font-family: "Bordonaro Spur";
    src: url("../font/BordonaroSpur.otf");
}

body {
    background: var(--primary-bg); /* var(--primary-bg) */
}

header {
    width: 100vw;
    background: var(--primary-bg);
    color: var(--primary-text);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.bascule-wrapper {
    position: fixed;
    display: flex;
    justify-content: center;
}

.bascule-wrapper img {
    height: 100vh;
    max-width: 100vw;
    object-fit: contain;
    object-position: bottom;
}

section {
    background: var(--secondary-bg);
    color: var(--secondary-text);
    padding: 15vh 5vw;
    width: 100vw;
}

.ribbon {
    padding: 5vh 5vw;
    background: var(--primary-bg);
    color: var(--primary-text);
    font-size: 20px;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.mobile-nav-menu,
.mobile-nav,
nav {
    width: 100vw;
}
nav {
    padding: 5vh 0;
    gap: 20px;
    display: none;
    justify-content: center;
}

.mobile-nav {
    position: relative;
    padding: 5vh 4vw;
}

.mobile-nav-menu a,
.mobile-nav span,
nav a {
    font-family: var(--secondary-font);
    color: var(--primary-text);
    font-weight: bold;
    white-space: nowrap;
    font-size: 18px;
}
nav a {
    border-bottom: 2px solid transparent;
    transition: .2s;
    cursor: pointer;
}

nav a:hover {
    border-color: var(--primary-text);
}

.mobile-nav img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 4vw;
    height: 18px;
    z-index: 1001;
}

.mobile-nav-menu {
    position: fixed;
    z-index: 1000;
    height: 100vh;
    background-color: var(--secondary-bg);
    top: 0;
    right: -110%;
    transition: .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-menu a {
    font-size: 30px;
    color: var(--secondary-text);
}

header .title {
    padding: 15vh 0 15vh 0;
    text-align: center;
}

header h1 {
    font-size: 20vh;
    text-shadow: 5px 6px 2px black;
}

header h2 {
    font-family: var(--secondary-font);
}

header .bascule-wrapper {
    z-index: 10;
    will-change: clip-path;
}

.about {
    position: relative;
}

.about h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.about .bascule-wrapper {
    position: fixed;
    z-index: 1;
}

.about.stopped .bascule-wrapper {
    position: relative;
}

.about .trailer {
    aspect-ratio: 16/10;
    margin: 25px 0px;
}

.about .trailer img, /* delete */
.about .trailer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom  25% right 0;
}

.cadred {
    position: relative;
    z-index: 1;
}
.cadred::before {
    content: "";
    position: absolute;
    width: 100%;
    height: calc(100% - 4px);
    top: 5px;
    left: 5px;
    background: #000000;
    background-image: linear-gradient(to bottom right, rgb(0, 0, 0), rgb(65, 65, 65));
    z-index: -1;
    transition: .3s;
}

.cadred img,
.cadred video {
    border: 5px solid var(--primary-bg);
}

.gallery-preview {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}

.gallery-preview .second {
    display: none;
}

.gallery-preview img {
    width: 100%;
    height: calc(100% - 4px);
    object-fit: cover;
}

.gallery-preview .cta {
    position: relative;
}
.gallery-preview .cta a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: var(--primary-text);
    font-family: var(--secondary-font);
}

.gallery-preview .cta img {
    filter: brightness(0.5);
}

.ribbon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 0%, var(--primary-bg) 200%);
    pointer-events: none;
}

#ribbon {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 10s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.performances,
.calendar-wrapper {
    margin: 25px 0px;
    display: flex;
    gap: 5vw;
    justify-content: center;
}

.performances {
    flex-direction: column;
}

.performance {
    flex: 1;
    text-align: center;
    height: 80vh;
    max-width: 500px;
    margin: 0px auto;
}

.performance .cadred {
    height: 100%;
    width: 100%;
}

.performance img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: .3s;
}
.performance img:hover {
    filter: brightness(0.7);
}

.about button,
.performance button {
    margin: 25px 0px;
}

.calendar-wrapper {
    flex-wrap: wrap;
}

.events {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
}
b.event-title {
    display: block;
    margin-bottom: 12.5px;
}

.events i {
    color: var(--secondary-text-acc);
    font-size: 14px;
}

.calendar:not(.events) {
    flex: 1;
}

.event {
    display: flex;
    gap: 1vw;
    align-items: center;
}
.event:not(:last-child) {
    margin-bottom: 25px;
}

.date {
    font-size: 14px;
    background: var(--secondary-bg-acc);
    padding: 3px 25px 10px 25px;
    text-align: center;
}
.date h2 {
    font-size: 40px;
}

.event p {
    color: var(--secondary-text-acc);
}

.month-wrapper {
    text-align: center;
}

.month {
    display: flex;
    justify-content: center;
    gap: 1vw;
}

.month .day {
    margin: 2px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
}
.month .day.active {
    background: var(--primary-bg);
    color: var(--primary-text);
}

.people {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    max-width: calc(750px + 15vw);
    margin: 0px auto;
    gap: 5vw;
}

.person {
    max-width: 350px;
    width: 100%;
}

.person img {
    width: 100%;
    height: 65vh;
    object-fit: cover;
}

.person h2 {
    font-size: 30px;
    margin: 25px 0px 10px 0px;
}

.person p {
    text-align: justify;
}

footer.ribbon {
    text-align: center;
    font-weight: normal;
    padding: 10vh 8vw;
}

footer .socials {
    max-width: 520px;
    margin: 25px auto;
}

footer img {
    width: 20px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 10px;
    margin: 15px 0;
}

footer li span {
    width: 100%;
    text-align: left;
}

footer a {
    color: var(--primary-text)
}

footer p {
    font-size: 14px;
}

@media (min-width: 652px) {
    nav {
        display: flex;
    }
    .mobile-nav {
        display: none;
    }

    .events {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-preview {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-preview .second {
        display: block;
    }

    footer li {
        flex-wrap: nowrap;
    }
}

@media (max-width: 652px) {
    .event {
        justify-content: center;
    }

}

@media (min-width: 1024px) {
    header {
        height: 100vh;
    }

    header .title {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        max-width: 50%;
        padding: 5vh 5vw;
        text-align: left;
    }

    nav {
        justify-content: left;
        margin: 0 5vw;
    }

    header .bascule-wrapper {
        transform: translateZ(0);
    }

    .bascule-wrapper {
        right: 0;
        width: 50%;
        bottom: 0;
    }

    .performances {
        flex-direction: row;
    }

    .events {
        flex: 1;
        width: unset;
        display: block;
    }

    #ribbon {
        animation-duration: 25s;
    }

    .about.stopped .bascule-wrapper {
        position: absolute;
        right: 11px;
        top: 50%;
        transform: translateY(-50%);
        bottom: unset;
    }

    section .content {
        width: calc(50% - 5vw);
    }
}

@media (max-width: 1024px) {
    header {
        min-height: 150vh;
    }

    .bascule-wrapper {
        left: 50%;
        transform: translateX(-50%);
        position: relative;
        bottom: 0;
    }

    section .content {
        margin-top: 100vh;
    }

    .about.stopped .content {
        margin-top: 0;
    }

    .about .bascule-wrapper {
        margin-top: -15vh;
    }
}