@keyframes marquee {
    0% {
        left: 0%;
    }

    50% {
        left: -100%;
    }

    50.5% {
        left: -100%;
    }

    100% {
        left: 0%;
    }
}

main[data-barba-namespace="team"] {
    width: 100%;
    height: 100dvh;
    font-family: "Neue Montreal", sans-serif;
    overflow: hidden;

    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .marquee-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #0a0a0a;
        clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    }

    .marquee-wrapper.t-1 {
        clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 0% 0%);
    }

    .marquee-wrapper h1 {
        position: absolute;
        top: 50%;
        left: 0%;
        transform: translateY(-50%);
        white-space: nowrap;
        font-size: 240px;
        text-transform: uppercase;
        font-weight: 400;
        color: #fff;
        animation: marquee 60s linear infinite;
    }

    .modal {
        width: 450px;
        height: 650px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .modal-images {
        width: 100%;
        height: 550px;
    }

    .team {
        position: absolute;
        width: 100%;
        height: 550px;
        clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    }

    .team#t-1 {
        clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 0% 0%);
    }

    .team img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .info {
        margin-top: 24px;
        color: #fff;
    }

    .info h2 {
        font-size: 20px;
        color: #fff;
    }

    .role {
        margin: 5px 0;
        color: rgba(255, 255, 255, 0.8);
    }

    .t-1 {
        background-color: #1a1a1a;
    }

    .t-2 {
        background-color: #2a2a2a;
    }

    .team-bg-text {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        transform: translateY(-50%);
        font-size: clamp(80px, 20vw, 240px);
        font-weight: 400;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.05);
        pointer-events: none;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        z-index: 0;
    }

    main[data-barba-namespace="team"] .overlay,
    main[data-barba-namespace="team"] .modal {
        z-index: 1;
    }

    .team-caption {
        margin-top: 1rem;
        font-size: 14px;
        color: #999;
        font-style: italic;
    }

    .switch {
        margin-top: 24px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-content: space-between;
    }

    .switch button {
        width: fit-content;
        visibility: visible;
        pointer-events: auto;
    }

    .switch button:last-child {
        margin-left: auto;
    }

    .switch button.hidden {
        visibility: hidden;
        pointer-events: none;
    }

    .switch i {
        font-size: 30px;
    }

    @media screen and (max-width: 900px) {
        .marquee-wrapper h1 {
            animation: marquee 30s linear infinite;
        }

        .modal {
            width: 350px;
            height: 550px;
        }

        .modal-images {
            width: 100%;
            height: 450px;

        }

        .team {
            width: 100%;
            height: 450px;
        }
    }

    @media screen and (max-width: 480px) {
        .modal {
            width: 250px;
            height: 450px;
        }

        .modal-images {
            width: 100%;
            height: 350px;

        }

        .team {
            width: 100%;
            height: 350px;
        }
    }
}