/* 
  CSS Reset
  Simplified version of https://piccalil.li/blog/a-more-modern-css-reset/
*/

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin-block: 0;
}

/* Remove list item padding */
ul,
ol {
  padding-inline-start: 0;
}

/* Remove list styles */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* A elements lose default styling */
a {
  color: inherit;
  text-decoration: inherit;
}

/* Make images easier to work with */
img,
picture,
video,
audio {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* END OF RESET */


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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    /* overflow: hidden; */
    font-family: "Times LT Pro", "Times New Roman", serif;
}


/* --------------------------------
   HOMEPAGE
-------------------------------- */

#main-home {
    position: relative;

    width: 100vw;
    height: 100vh;

    background: black;

    isolation: isolate;
}

/* --------------------------------
   TOP BUTTONS / LINKS
-------------------------------- */

.top-buttons {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 100;
    pointer-events: none;
}

.top-button {
    pointer-events: auto;

    margin: 0;
    padding: 0;

    color: white;
    text-align: center;

    font-family: "Times LT Pro", "Times New Roman", serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 1.4px;

    text-decoration: none;
    cursor: pointer;
}

.portfolio-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    color: white;
    font-family: "Times LT Pro", "Times New Roman", serif;
    font-size: 8px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0px ;
    pointer-events: none;
}


/* --------------------------------
   VERTICAL NICOLA MICHEL
-------------------------------- */

.nicola-name {
    position: absolute;

    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 88px;
    height: 100vh;

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

    gap: 50px;

    z-index: 50;

    pointer-events: none;

    color: white;
    text-align: center;

    font-family: "Times LT Pro", "Times New Roman", serif;
    font-size: 9px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 1.4px;

    mix-blend-mode: difference;
}

.nicola-name-horizontal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    min-height: 88px;

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

    z-index: 51;
    pointer-events: none;

    color: white;
    text-align: center;
    font-family: "Times LT Pro", "Times New Roman", serif;
    font-size: 9px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 80px;

    mix-blend-mode: difference;
}


/* --------------------------------
   FULL BLEED IMAGES
-------------------------------- */

.project-images {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 1;

    background: black;
}

.project-images > * {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 60%;
    height: 60%;

    object-fit: cover;

    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;

    transition-delay: 0s;
}

.project-images > *.contain {
    object-fit: contain;
}


/* ACTIVE / INCOMING IMAGE */

.project-images > *.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);

    transition:
        opacity 0.2s ease 0.2s,
        transform 1s ease 0.2s;
}


#preview-diplome {
    transform: translate(-50%, -50%) scale(1);
}


/* --------------------------------
   NAVIGATION
-------------------------------- */

.project-navigation {
    position: absolute;
    inset: 0;

    z-index: 2;

    height: 100%;
    width: 100%;

    margin: 0;
    padding: 0;

    color: white;
    text-align: center;

    font-family: "Times LT Pro", "Times New Roman", serif;

    /* DEFAULT PROJECT SIZE */
    font-size: 8px;

    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 4px;

    text-decoration: none;

    mix-blend-mode: difference;

    /*
       DESKTOP:
       fade navigation towards
       left and right viewport edges
    */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
}

.swiper-wrapper {
    min-width: 100vw;

    margin: 0;
    padding: 0;
}


/* --------------------------------
   EACH ITEM = ONE VERTICAL AREA
-------------------------------- */

.project-item.swiper-slide {
    position: relative;
    display: block;

    height: 100%;
    width: calc(100% / 12);
    min-width: fit-content;

    margin: 0;
    padding: 0;

    color: inherit;
    text-align: inherit;

    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;

    text-decoration: none;
    cursor: pointer;
}


/* --------------------------------
   ACTIVE PROJECT
-------------------------------- */

.project-item.swiper-slide-active {
    font-size: 10px;
    letter-spacing: 4px;
    
}


/* --------------------------------
   PROJECT NAME
-------------------------------- */

.project-item span {
    position: absolute;
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    white-space: nowrap;

    font: inherit;
    letter-spacing: inherit;

    color: white;
}


/* --------------------------------
   PROJECT PAGE
-------------------------------- */

.project-page {
    margin: 0;
    width: 100%;

    background: black;

    font-family: "Times LT Pro", "Times New Roman", serif;
}


/* --------------------------------
   TOP PARAGRAPHS
-------------------------------- */

.project-header {
    position: absolute;

    top: 20px;
    left: 20px;
    right: 20px;

    z-index: 100;

    display: flex;
    justify-content: space-between;

    color: white;

    pointer-events: none;
}

.project-header p {
    margin: 0;

    font-size: 14px;
    line-height: 1;
    font-weight: bold;
}


/* --------------------------------
   IMAGES
-------------------------------- */

.project-content {
    width: 100%;
}

.project-full-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* --------------------------------
   VERTICAL SWIPER BREAKPOINT
-------------------------------- */

@media (max-width: 768px) {

    /* Hide NICOLA MICHEL when navigation becomes vertical */
    .nicola-name {
        display: none;
    }


    /* Full-screen Swiper container */
    .project-navigation {
        position: absolute;

        top: 0;
        left: 0;
        right: auto;
        bottom: auto;

        transform: none;

        width: 100vw;
        height: 100vh;

        overflow: hidden;

        /*
           MOBILE:
           replace horizontal fade with
           top / bottom fade
        */
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            black 12%,
            black 88%,
            transparent 100%
        );

        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            black 12%,
            black 88%,
            transparent 100%
        );
    }


    /* Vertical column exactly in horizontal center */
    .project-navigation .swiper-wrapper {
        position: absolute;

        top: 0;
        left: 0;

        width: 100%;
        height: 100%;

        min-width: 0;
    }


    /* Each project occupies one vertical section */
    .project-item.swiper-slide {
        width: 100%;
        min-width: 0;
        height: 6rem;

        display: flex;

        align-items: center;
        justify-content: center;

        text-align: center;
    }


    /* Project title */
    .project-item span {
        position: static;

        top: auto;
        left: auto;

        transform: none;

        white-space: nowrap;
    }
}


/* --------------------------------
   ABOUT
-------------------------------- */