main {
    padding-top: var(--small-main-top);
}

.collection-first-section {
    height: calc(100vh - var(--small-main-top));
    height: calc(100dvh - var(--small-main-top));
}

/* SWIPER */

.collection-swiper {
    max-height: calc(90vh - 1.5em);
    max-height: calc(90dvh - 1.5em);
}

.collection-swiper .swiper-slide {
    width: auto;
    height: calc(90vh - 1.5em);
    height: calc(90dvh - 1.5em);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    padding: 0 var(--small-margin);
}

.collection-swiper .media-wrapper {
    height: calc(75vh - 1.5em);
    height: calc(75dvh - 1.5em);
}

.collection-swiper .swiper-slide img {
    display: block;
    margin: 0 auto;
    /* height: calc(75dvh - 1.5em); */
}

.collection-swiper .swiper-pagination {
    position: absolute;
    top: 47%;
    left: var(--small-margin);
    width: auto;
    /* font-variant-numeric: var(--aligne-tabulaire); */
}

/* DETAILS */

.collection-details {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: var(--small-margin);

    position: absolute;
    bottom: 0;
    padding: 10px var(--small-margin);
    z-index: 1;
}

/* #collection-size {
    font-variant-numeric: var(--aligne-tabulaire);
}

#collection-date {
    font-variant-numeric: var(--aligne-proportionnel);
} */

/* PARTIE RELATED PROJECTS */

.collection-related-section {
    margin-top: var(--big-space);
}

.collection-related-section h2 {
    margin-bottom: 4em;
    text-align: center;
    /* text-transform: uppercase; */
    text-decoration: underline;
    text-underline-offset: 0.13em;
}

.collection-related-swiper .swiper-slide {
    width: calc(100vw / 3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.collection-related-swiper .related-thumbnail-wrapper {
    width: calc(var(--colonne) * 4);
    min-width: 150px;
    /* aspect-ratio: 5 / 7;
    overflow: hidden; */
}

.collection-related-swiper .swiper-slide img {
    /* height: 300px;
    width: auto; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Centrer le groupe de slides quand il y en a moins de 3 */
.collection-related-swiper .swiper-wrapper:not(:has(> .swiper-slide:nth-child(3))) {
  justify-content: center;
}

/* Par sécurité (Swiper le met déjà), mais inoffensif si redondant */
.collection-related-swiper .swiper-wrapper {
  display: flex;
}


.related-title {
    margin-top: 0.25em;
}

.collection-details-mobile {
    display: none;
}

@media screen and (max-width: 990px) {

    .collection-related-swiper .swiper-slide a {
        width: 15vw;
        min-width: auto;
    }

    .collection-related-swiper .related-thumbnail-wrapper {
        width: inherit;
        min-width: auto;
    }
}

@media screen and (max-width: 650px) {
    .mobile-page-titles {
        width: auto;
        margin: 0 auto;
        z-index: 111;
        left: 50%;
        transform: translateX(-50%);
    }

    .collection-first-section {
        height: calc(100vh - var(--small-main-top));
        height: calc(100svh - var(--small-main-top));
    }

    .collection-swiper {
        height: calc(95vh - calc(var(--small-main-top) + calc(1em + calc(var(--small-margin) * 2))));
        /* height: calc(95dvh - calc(var(--small-main-top) + calc(1em + calc(var(--small-margin) * 2)))); */
        height: calc(95svh - calc(var(--small-main-top) + calc(1em + calc(var(--small-margin) * 2))));
    }

    .collection-swiper .swiper-slide {
        height: inherit;
    }

    .collection-related-swiper .swiper-slide a {
        width: auto;
    }

    .collection-swiper .media-wrapper {
        width: calc(var(--colonne-mobile) * 8);
        height: auto;
    }

    /* .collection-swiper .swiper-slide img {
        max-height: none;
        width: calc(var(--colonne-mobile) * 8);
        padding: 0;
    } */

    .collection-swiper .swiper-pagination {
        top: 49%;
    }

    .details-desktop {
        display: none;
    }

    .collection-details-mobile {
        position: absolute;
        display: flex;
        flex-direction: row;
        gap: var(--small-margin);
        padding: var(--small-margin);
        bottom: 0;
        left: 0;
        width: 100vw;
        align-items: end;
        justify-content: space-between;
    }

    .collection-details-mobile .left-col,
    .collection-details-mobile .right-col {
        width: calc(50vw - calc(var(--small-margin) + calc(var(--small-margin) / 2)));
    }

    .collection-details-mobile .right-col {
        text-align: right;
    }

    .collection-details-mobile .underline a {
        text-decoration: underline;
        text-underline-offset: 0.13em;
    }


    .collection-related-section {
        margin: var(--big-space-mobile) var(--small-margin);
    }

    .collection-related-swiper .swiper-wrapper {
        flex-wrap: wrap;
        gap: calc(var(--colonne-mobile) * 2);
        justify-content: space-between;
    }

    .collection-related-swiper .swiper-slide {
        width: calc(var(--colonne-mobile) * 4);
    }

    .collection-related-swiper .related-thumbnail-wrapper {
        width: calc(var(--colonne-mobile) * 4);
    }
}