@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

/* ======================================================
   RESET
====================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ======================================================
   BASE
====================================================== */

body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    color: rgba(0, 0, 0, 0.85);
    background: #fff;
}

/* ======================================================
   HEADER
====================================================== */

.header {
    position: relative;
    width: 100%;
    height: 50px;
    margin-top: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    font-size: 30pt;
    font-weight: 600;
    white-space: nowrap;
}

.header__menu-left,
.header__menu-right {
    font-size: 8pt;
    line-height: 1rem;
    font-weight: 500;
}

.header__menu-left {
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
}

.header__menu-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
}

li::marker {
    color: transparent;
}

/* ======================================================
   MAIN
====================================================== */

main {
    width: 100vw;
    height: calc(100vh - 120px);

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

/* ======================================================
   ✅ CAROUSEL (FIXED CENTER VIEW)
====================================================== */

.carousel {
    position: relative;
    width: 100%;
    height: 100%;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel:active {
    cursor: grabbing;
}

/* ✅ TRACK MUST RECEIVE EVENTS */
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;

    pointer-events: auto;
}

/* ======================================================
   CAROUSEL ITEMS (POSITIONED BY JS)
====================================================== */

.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
    transform-origin: center center;

    width: 240px;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0.45;
    filter: grayscale(1);

    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        filter 0.35s ease;

    will-change: transform;
}

.carousel-item.active {
    width: 420px;

    opacity: 1;
    filter: none;

    z-index: 5;
}

/* ======================================================
   ✅ THREESIXTY
====================================================== */

.threesixty {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;

    user-select: none;
    touch-action: none;

    cursor: grab;
}

.threesixty:active {
    cursor: grabbing;
}

.threesixty-frame {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;
    display: none;

    pointer-events: none;
}

/* ======================================================
   BUTTONS
====================================================== */

.carousel-controls {
    position: absolute;
}
.prev, .next {
    position: relative;
    bottom: -220px;
    margin-left: 120px;
    margin-right: 120px;
    background-color: none;
    border: 0px none;
    background-color: white;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    font-size: 0.7rem;
}

/* ======================================================
   LINKS
====================================================== */

a {
    color: rgba(0, 0, 0, 0.85);
    text-decoration: none;
}

/* ======================================================
   📱 MOBILE
====================================================== */

@media (max-width: 768px) {
    .header {
        height: 100px;
    }

    .header__logo {
        font-size: 22pt;
    }

    .header__menu-left,
    .header__menu-right {
        font-size: 7pt;
    }

    main {
        height: calc(100vh - 100px);
    }

    .carousel-item {
        width: 160px;
        pointer-events: none;
    }

    .carousel-item.active {
        width: 280px;
        pointer-events: auto;
    }
}