@font-face {
    font-family: "Space Grotesk";
    src: url("./fonts/Space_Grotesk/SpaceGrotesk-VariableFont_wght.ttf");
}

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

html,
body {
    height: 100%;
    background: #ffffff;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family:
        "Space Grotesk",
        "SpaceGrotesk",
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
}

.image-label-container {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 380px;
    z-index: 5;
    pointer-events: none;
}

.image-label {
    font-size: 78px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    letter-spacing: -1px;
    position: relative;
}

.image-counter {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    position: relative;
}

.track-wrapper {
    width: 100%;
    height: 100%;
    overflow-x: scroll;
    overflow-y: visible;
    position: relative;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.track-wrapper::-webkit-scrollbar {
    display: none;
}

.track-wrapper:active {
    cursor: grabbing;
}

.track-wrapper::before,
.track-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.track {
    display: flex;
    gap: 10px;
    padding: 40px calc(50vw - 880px);
    width: max-content;
    height: 100%;
    align-items: flex-end;
    padding-bottom: 70px;
}

.img-item {
    flex-shrink: 0;
    width: 153px;
    height: 106px;
    overflow: hidden;
    user-select: none;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transition:
        width 320ms ease,
        height 320ms ease;
    will-change: width, height;
}

.img-item.center {
    width: 960px;
    height: 660px;
    z-index: 3;
}

.img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 20px;
    background: #ffffff;
    font-family: "Space Grotesk";
    z-index: 10;
}

.nav-logo {
    height: 28px;
    width: auto;
    margin-right: auto;
}

.nav-items-container {
    display: flex;
    gap: 40px;
}

.nav-item {
    text-decoration: none;
    color: #000000;
    font-size: 24px;
    font-weight: 400;
    padding: 8px 16px;
    cursor: pointer;
}

.nav-item.active {
    font-weight: 700;
}
