html,
body {}

main {}

main section.scroll {}


div.team {
    scroll-snap-align: center;
    --swiper-theme-color: var(--bg-color);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100svh;
    padding: 2rem;
    box-sizing: border-box;

    position: relative;
    z-index: 1;

    background-color: var(--bg-color);

    opacity: 1;
    scale: 0.95;
    transition: all var(--animation-duration) var(--animation-easing);

    p {
        color: white;
        text-transform: initial;
        font-size: 2rem;
    }

    div.contacts a:hover {
        text-decoration: underline;
        text-decoration-thickness: .01em;
        text-underline-offset: .2em;
    }

    .info-title {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: "Helvetius";
        color: white;
        opacity: 0;
        pointer-events: none;
        z-index: 10;
    }
}

div.team.visible {
    scale: 1;

    .info-title {
        animation: appearTitle 2.5s ease;
    }
}

@keyframes appearTitle {
    from {
        opacity: 0;
    }

    75% {
        opacity: 1;
        scale: 1;
    }

    100% {
        opacity: 0;
        scale: 1;
    }
}


/* ─── Swiper principal ─── */
.swiper {
    width: 100%;

    height: 90dvh;
    padding: var(--bm);
    box-sizing: border-box;
    background-color: black;
    border-radius: var(--border-radius);


    &.principal {
        aspect-ratio: 4/3;
        height: 70dvh;

        max-width: 1300px;


    }

    .center {
        text-align: center;

    }


    .name-role {
        display: flex;
        flex-direction: column;
    }

    .name-role.after {
        span.movie {
            order: 2;

        }
    }

    .contacts {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
        flex-wrap: wrap;

        &.small {
            font-size: .8rem;
        }
    }

    .small {
        font-size: 0.8rem;
        max-width: 88ch;
    }

    &.admin-swiper .swiper-slide {
        .role {
            display: none;
        }
    }

    &:not(.admin-swiper) .swiper-slide {
        .admin {
            display: none;
        }
    }

    .role {
        max-width: 40%;

        text-transform: uppercase;
        text-align: center;

    }

    .website {
        text-align: right;

        align-self: flex-end;
    }
}

.swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--bm);
    box-sizing: border-box;
    font-family: "Futura Stencil";
    font-size: 2rem;
    color: var(--bg-color);
}



.swiper-slide.extra.quote {

    font-size: 3rem;
    justify-content: center;
    text-align: center;
    color: white;
}

.swiper-slide.extra.image {
    padding: 0;

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

.principal .swiper-slide.extra.number {
    justify-content: center;
    font-size: 80vh;
    color: white;
}

.principal .swiper-slide.extra.ornament {
    justify-content: center;
    font-size: 80vh;
    align-items: center;
    font-family: "Futura Stencil Rotated";
}

.controller .swiper-slide,
.controller .swiper-slide.extra {
    border-radius: var(--border-radius);
}

.controller .swiper-slide-thumb-active {
    opacity: 1 !important;
}

.controller .swiper-slide.extra {
    background-repeat: repeat-x;
    animation: animatedBackground 0s linear infinite alternate;
    background-image: url("../../images/clouds-background.webp");
    color: rgba(0, 0, 0, 0);
    background-size: 400%;
    font-size: .6rem;
    background-clip: text;
    justify-content: center;
    z-index: 1;

    ::before {
        content: "a";
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(0, 0, 0);
        opacity: 1;
        z-index: -1;
        mix-blend-mode: lighten;

    }

}


.controller {
    height: auto;
    margin-top: 1rem;
    padding: 0;
    background-color: transparent;

    .swiper-wrapper {
        margin-top: 10px;
    }

    .swiper-slide {
        width: 4rem;
        height: auto;
        aspect-ratio: 4 / 3;
        padding: calc(var(--bm) / 2);
        box-sizing: initial;

        font-family: "Helvetius";
        font-size: 0.5rem;
        text-align: center;
        background-color: black;

        opacity: 0.5;
        transition: opacity var(--animation-duration) var(--animation-easing);
    }

    .swipfer-slide-thumb-active {
        opacity: 1;
    }
}


@media (width < 968px) {

    h3 {
        margin: var(--gap);
    }

    section.credits.mobile-visible {

        details>summary {
            list-style: none;
        }

        details>summary::marker,
        details>summary::-webkit-details-marker {
            display: none;
        }

        .team {
            display: flex;
            text-align: center;
            flex-direction: column;
            gap: var(--gap);





            summary::marker {
                display: none;
                list-style: none;
            }

            summary::-webkit-details-marker {
                display: none;
            }

            .team-member {
                padding: var(--button-paddings);
                display: flex;
                flex-direction: column;
                gap: var(--gap);
                align-items: center;
                background-color: var(--far-away);

            }

            &.teachers {

                .team-member {

                    summary {
                        display: flex;
                        text-align: left;
                        align-content: space-around;
                        flex-direction: column;
                        width: 100%;
                        justify-content: space-between;

                        span.plus {
                            text-align: center;
                        }
                    }

                    .who {
                        display: flex;
                        flex-direction: column;
                        gap: var(--gap);
                        text-align: center;
                    }

                    .infos {
                        text-align: left;
                        flex-direction: column;
                        gap: var(--gap);
                        display: flex;

                        a.button {
                            width: fit-content;
                            text-align: right;
                            align-self: end;
                        }

                    }
                }


            }
        }


    }
}