.presentationWindow {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    box-sizing: border-box;

    height: 100svh;
}

.presentationWindowLeftColumn {
    display: flex;
    flex-direction: column;
    align-content: stretch;
    flex-grow: 1;
    height: 100%;
}

.imageGalerySpacer {
    position: relative;
    flex-grow: 1;
    flex-shrink: 1;

    margin: 2svh 0;
}

.imageGaleryAbsoluteContainer {
    position: absolute;

    height: 100%;
    width: 100%;
}

.imageGaleryRatioContainer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    top: 50%;
    translate: 0 -50%;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 16 / 9;

    border-left: 1.2rem solid transparent;
    border-bottom: 1.2rem solid transparent;
}

.imagegaleryContent {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}

.imageGalery {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.currentImage {
    z-index: 1;
}

.previousImage {
    z-index: 1;
}

.imageGaleryRatioContainer>button {
    position: relative;
    z-index: 2;
    height: 2%;
    width: 3%;

    margin: 2% 2%;

    border: none;
    background-color: var(--main-decoration-color);
    transform-origin: center;
    transform: skewX(-45deg);
    transition: scale 0.5s, background-color 0.5s;
    cursor: pointer;
}

.imageGaleryRatioContainer>button:hover {
    scale: 1.5;
}

.imageGaleryRatioContainer>.currentImageButton {
    background-color: var(--main-window-color);
}

.presentationPanelContent {
    display: flex;
    flex-direction: column;
    position: relative;

    max-width: 50vw;

    margin: 3vh auto;

    border-left: 1.2rem solid transparent;
    border-bottom: 1.2rem solid transparent;
    font-size: 3.8vw;
    color: var(--main-window-color);
    text-align: center;

    max-height: 20vh;
}

.presentationPanelContent h1 {
    margin: 0 1vw;

    font-family: 'Oswald', sans-serif;
    font-size: 1em;
    line-height: 1.2;
}

.presentationPanelContent p {
    margin: 1vw;
    margin-top: 0.5vw;

    font-size: 0.61em;
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
}

.profilPicture {
    display: flex;

    max-width: 32vw;
    max-height: 75vh;

    -webkit-mask-image: -webkit-linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);

    margin: 0 auto;
}

.portraitModeOnly {
    display: none;
}

.spacer {
    flex-grow: 0;
    flex-shrink: 0;
    height: calc(8rem + 2vh);
}

#spacerPortraitOnly {
    display: none;
}

.sectionArticles {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    position: relative;

    margin-top: 4rem;
    margin-bottom: 4rem;

    border-left: 1.2rem solid transparent;
    border-bottom: 1.2rem solid transparent;
}

h2>span {
    display: inline-block;

    margin: 1rem 2rem;

    color: var(--main-window-color);
    font-size: 6rem;
    font-family: 'Oswald', sans-serif;
    text-align: center;
}

article {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;

    max-width: calc(100vw * 9 / 16);
    min-width: 1080px;

    margin-top: 1.2rem;
    margin-bottom: 4rem;
    padding: 0 2.8rem;
    padding-right: 4rem;
    box-sizing: border-box;

    border-left: 1.2rem solid transparent;
    border-bottom: 1.2rem solid transparent;
    background: var(--main-window-color);
    background-clip: padding-box;
    color: var(--main-text-color);
}

article h3 {
    margin: 2rem 0;

    font-size: 4rem;
    font-family: 'Oswald', sans-serif;
}

article h4 {
    margin: 1rem 0;

    font-size: 3rem;
    font-family: 'Oswald', sans-serif;
}

article ul {
    margin: 0;

    font-size: 2.4rem;
    font-family: 'Roboto Slab', serif;
    font-weight: 300;

    list-style-image: url('./images/Camille\ Laborderie\ -\ Marker.svg');
}

article p {
    margin: 2rem 0;

    font-size: 3rem;
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    text-align: justify;
    text-justify: inter-word;
}

article span {
    margin: 2rem 0;

    font-size: 3rem;
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    text-align: justify;
    text-justify: inter-word;
}

article .comment
{
    font-size: 1rem !important;
}

@media (max-width:1080px) {
    article {
        max-width: none;
        min-width: auto;
        width: 100vw;
    }
}

@media (max-width:876px) {
    article p {
        font-size: 2.4rem;
    }

    h2>span {
        font-size: 4rem;
    }
}

@media (max-width:500px) {
    h2 > span {
        font-size: 3rem;
    }

    article p {
        margin-top: 0;
        margin-bottom: 1rem;
        font-size: 2rem;
    }

    article h3 {
        margin: 1rem 0;
        font-size: 3rem;
    }

    article h4 {
        font-size: 2.4rem;
    }
    
    article ul {
        font-size: 2rem;
    }
}

@media (orientation: portrait) {
    .presentationWindow {
        flex-direction: column-reverse;
        justify-content: flex-start;
        align-items: stretch;
    }

    .portraitModeOnly {
        display: flex;
    }

    .profilPictureFrame {
        justify-content: center;
        flex-shrink: 1;
        max-height: 25svh;
    }

    .presentationPanelContent {
        font-size: 7vw;
        max-width: 90vw;
    }

    .landscapeModeOnly {
        display: none;
    }

    .profilPicture {
        max-width: 96%;
        max-height: 100%;
        margin: 0 2svw;
    }

    #spacerPortraitOnly {
        display: block;
        flex-shrink: 0;
        flex-grow: 0;
    }

    .presentationPanel {
        flex-shrink: 0;
        flex-grow: 0;
    }

    .presentationPanel {
        margin-bottom: 2svh;
        margin-left: 0;
        max-width: 100%;
    }

    .presentationPanel h1 {
        font-size: 6.4vw;
    }

    .presentationPanel p {
        font-size: calc(6.4vw * 0.7);
    }
}

/* for wide screen */

@media (max-aspect-ratio: 1) {
    .presentationPanelContent {
        font-size: 3vw;
        max-width: 75vw;
    }
}

@media (max-aspect-ratio: 0.85) {
    .presentationPanelContent {
        font-size: 5vw;
        max-width: 90vw;
    }
}

@media (max-aspect-ratio: 0.65) {
    .presentationPanelContent {
        font-size: 6vw;
    }
}

@media (max-aspect-ratio: 0.573) {
    .presentationPanelContent {
        font-size: 7vw;
    }
}

@media (min-aspect-ratio: 1.2) {
    .presentationPanelContent {
        font-size: 4.5vh;
        max-width: 63vh;
    }
    .presentationPanelContent h1 {
        margin: 0 2vh;
    }
    .presentationPanelContent p {
        margin: 2vh;
        margin-top: 1vh;
    }
}

@media (min-aspect-ratio: 1.638) {
    .presentationWindow {
        margin: 0 auto;
        aspect-ratio: 1.638;
    }
}