@font-face {
    font-family: "gyreheros-bold";
    src: url("../../fonts/gyreheros-bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

:root {
    --spacing: 16px;
}

body {
    margin: 0;
    overflow: hidden;
    background: #000;
    position: fixed;
    width: 100%;
    height: 100%;
}

.gallery {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    gap: var(--spacing);
    padding: 0 calc(var(--spacing) / 2);
    box-sizing: border-box;
    overflow: hidden;
}

.gallery_line {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.track {
    display: flex;
    flex-direction: column;
    animation: scroll-up linear infinite;
}

.track img {
    width: 100%;
    display: block;
    object-fit: cover;
    margin-bottom: var(--spacing);
}

.center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Test", sans-serif;
    text-decoration: none;
    color: white;
    text-align: center;
    pointer-events: auto;
}

.center-text .line {
    display: block;
    font-size: 6.3rem;
    line-height: 1.1;
    white-space: nowrap;
}

.center-text .line-left {
    transform: translateX(-1.2em);
    font-weight: 400;
}

.center-text .line-right {
    transform: translateX(0.6em);
    font-weight: 400;
}

.gallery_line:nth-child(1) .track {
    animation-duration: 130s;
    animation-delay: 0s;
}

.gallery_line:nth-child(2) .track {
    animation-duration: 200s;
    animation-delay: -40s;
    animation-direction: reverse;
}

.gallery_line:nth-child(3) .track {
    animation-duration: 205s;
    animation-delay: -20s;
}

@keyframes scroll-up {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing: 10px;
    }

    .gallery_line:nth-child(3) {
        display: none;
    }

    .center-text .line {
        font-size: 3.5rem;
    }

    .center-text .line-left {
        transform: translateX(-0.8em);
    }

    .center-text .line-right {
        transform: translateX(0.4em);
    }
}
