:root {
    --white: #fff;
    --black: #1d1d1d;
    --light: #f5f1e8;
    --primary: #a29061;
    --body-family: "gotham", sans-serif;
    --title-family: "Chronicle Display", serif;
}

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

body {
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden;
    font-family: var(--body-family);
}

h1 {
    font-family: var(--title-family);
    color: var(--primary);
    font-size: 40px;
    margin-top: 0.5rem;
}

h1 + p {
    margin-top: 2rem;
}

p + p {
    margin-top: 1rem;
}

.light .title {
    width: 80%;
    max-width: 800px;
}

.dark .title {
    width: 100%;
    margin-bottom: 32px;
}

main {
    width: 100vw;
    height: 100vh;
    display: grid;
    place-items: center;
    gap: 1rem;
    background-color: var(--white);
    position: relative;
}

main > * {
    animation: fadeIn 0.4s;
}

main.dark {
    background-color: var(--black);
    color: var(--white);
    padding: 1rem;
}

main.light {
    place-items: start;
    grid-template-rows: auto 1fr;
}

.intro {
    padding: 5vw;
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    position: relative;
}

.intro,
.big_img {
    border-radius: 1em;
    overflow: hidden;
}

.big_img {
    background-color: #000;
    display: none;
}

.big_img img {
    object-fit: contain;
}

.logo {
    width: 120px;
    height: auto;
}

header {
    text-align: center;
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.pancarte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-gap: 2rem;
    padding: 0 5%;
    padding-bottom: 100px;
    width: 100%;
    overflow-y: auto;
    border-radius: 1em;
}
.grid-item {
    position: relative;
    border-radius: 1rem;
}

.pancarte-grid h3 {
    font-size: 18px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem 3rem 1rem;
    text-align: center;
    color: var(--light);
    background: linear-gradient(0deg, transparent, var(--black));
    border-radius: 1rem 1rem 0 0;
}

.pancarte-grid img {
    max-width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
}

.video-btn {
    cursor: pointer;
}

.light .navigation-container {
    position: absolute;
    bottom: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
    background: linear-gradient(transparent 0%, var(--white) 50%);
    width: 100%;
    text-align: center;
    z-index: 99;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-2em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-button,
.forward-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    text-decoration: none;
    transition:
        transform 0.2s,
        background-color 0.2s,
        box-shadow 0.2s;
    box-shadow: 0 0.3em 0.8em rgba(0, 0, 0, 0.2);
}

.back-button svg,
.forward-button svg {
    width: 50%;
    height: 50%;
}

.back-button:hover,
.forward-button:hover {
    transform: scale(1.1);
}

.back-button {
    background-color: var(--primary);
    color: var(--white);
}

.back-button:hover {
    background-color: #333;
}

.forward-button {
    background-color: var(--white);
    color: var(--primary);
}

.forward-button:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0.3em 0.8em rgba(255, 255, 255, 0.2);
}

.button-container {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 0.5rem;
    width: 100%;
    padding: 1rem;
}

.video-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.video-btn:active {
    transform: scale(0.95);
}

.video-btn.btn-fout {
    color: #ff4d4d;
}

.video-btn.btn-fout:hover {
    color: #e63939;
    background-color: #fff5f5;
}

.video-btn.btn-juist {
    color: #2ecc71;
}

.video-btn.btn-juist:hover {
    color: #27ae60;
    background-color: #f5fcf7;
}

.video-btn svg {
    display: block;
    width: 24px;
    height: 24px;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--black);
    z-index: 9999;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.4s ease-out;
    pointer-events: none;
}

.video-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: all;
}

.video-overlay video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: 1;
}

#close-video {
    position: absolute;
    top: 3vw;
    right: 3vw;
    width: 2em;
    height: 2em;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
    color: var(--white);
    font-size: 1.2em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

#close-video:hover {
    background: rgba(255, 255, 255, 0.3);
}

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    padding: 0 50vw;
    margin-left: -50vw;
}

.page-transition.is-sliding {
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.page-transition.is-white {
    background-color: var(--white);
}
.page-transition.is-dark {
    background-color: var(--black);
}

.page-transition.start-right {
    transform: translateX(150vw) skewX(-20deg);
}
.page-transition.start-left {
    transform: translateX(-150vw) skewX(-20deg);
}

.page-transition.active {
    transform: translateX(0) skewX(-20deg) !important;
    pointer-events: all;
}

.loop-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center bottom;
    background-color: var(--black);
}

@media (min-width: 768px) {
    main.dark {
        grid-template-columns: 1fr 1fr;
    }

    .big_img {
        display: block;
    }

    .big_img,
    .big_img img {
        width: 100%;
        height: 100%;
    }
}
@media (max-width: 1587px) {
    .light .navigation-container {
        padding-right: 1rem;
    }
    main.light {
        place-items: unset;
    }
    .pancarte-grid {
        height: 100%;
    }
}
