﻿.Oeuvre .MiddleSection {
    align-items: flex-start;
}

.TopSection h1 {
    font-size: 5vh;
    font-variant: small-caps;
    margin: 0;
    text-shadow: 3px 3px 3px black;
    text-align: center;
}

.OeuvreImg {
    cursor: url('../Images/cursorzoom.svg'), auto;
    max-width: 95%;
    max-height: 95%;
}

#bacchus .OeuvreImg {
    cursor: default;
}

.OeuvreImg, .OriginalImg {
    box-shadow: rgba(0,0,0,0.6) 4px 4px 4px;
    border-style: solid;
    border-width: 2px;
    border-color: rgba(255,255,255,0.2);
    border-radius: 0.3vh;
    box-sizing: border-box;
}

.OriginalImg {
    max-width: 75%;
    max-height: 75%;
}

#alexandre .OriginalImg {
    height: auto !important;
    width: 100% !important;
    max-width: none;
}

.OeuvreContainer, .TabContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 50%;
    padding-left: 1vw;
    padding-right: 1vw;
    box-sizing: border-box;
}

.OeuvreContainer {
    justify-content: center;
}

.TabContainer {
    justify-content: space-between;
    border-style: solid;
    border-color: rgba(255,255,255,0.2);
    border-width: 0;
    border-left-width: 2px;
}

.TabTitlesContainer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 1.2vw;
    height: 7vh;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    text-shadow: 3px 3px 3px black;
}

.TabTitle {
    cursor: pointer;
}

    .TabTitle:hover, .TabTitleSelected {
        text-decoration: underline;
    }

.TabContentsContainer {
    display: block;
    width: 100%;
    height: 94%;
    position: relative;
}

.TabContent {
    display: flex;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: 1s;
    position: absolute;
    z-index: 0;
}

.TabContentSelected {
    opacity: 1;
    z-index: 5;
}

.TabOriginal {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.OriginalInfos, .OeuvreInfos {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-size: 1.5vh;
}

.OriginalInfos {
    margin-bottom: 7vh;
}

    .OriginalInfos span, .OriginalInfos a, .OeuvreInfos span {
        margin-top: 0.2vh;
    }

.OeuvreInfos span {
    margin-top: 0.5vh;
}

.WorkInfosArtist {
    font-size: 1.1em;
    margin-top: 1.5vh;
    font-variant: small-caps;
}

.WorkInfosTechDim {
    font-style: italic;
}

.WorkInfosCoteAML {
    font-size: 0.8em;
}

.TabDescription, .TabSource {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-left: 3vw;
    padding-right: 3vw;
    box-sizing: border-box;
}

.TabDescription {
    font-size: 0.75vw;
    overflow-y: auto;
}

    .TabDescription div:last-of-type {
        font-style: italic;
        margin-top: 2vh;
    }

    .TabDescription p {
        text-align: justify;
        margin: 0;
        margin-top: 0.2vh;
    }

.TabSource {
    font-size: 0.85vw;
}

.TabSourceTexteColumns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.TabSourceTexteColumn {
    width: 49%;
}

    .TabSourceTexteColumn:first-of-type {
        font-style: italic;
        width: 52%;
    }

    .TabSourceTexteColumn:last-of-type {
        font-size: 0.9em;
        width: 46%;
    }

    .TabSourceTexteColumn p {
        text-align: justify;
        margin: 0;
        margin-bottom: 0.2vh;
    }

    .TabSourceTexteColumn sup {
        font-size: 0.7em;
    }

.TabSourceInfos, .TabSourceTraduction {
    width: 75%;
    text-align: center;
}

.TabSourceInfos {
    margin-top: 2vh;
}

.TabSourceInfosAuteur {
    font-variant: small-caps;
}

.TabSourceInfosOeuvre {
    font-style: italic;
}

.TabSourceTraduction {
    margin-top: 0.5vh;
    font-size: 0.8em;
}

@media screen and (orientation: portrait) {
    .Oeuvre .MiddleSection {
        flex-direction: column;
        align-items: flex-start;
    }

    .TopSection h1 {
        font-size: 5vw;
        max-width: 70%;
    }

    .OeuvreContainer, .TabContainer {
        flex-direction: column;
        align-items: center;
        height: 50%;
        width: 100%;
        padding-left: 1vw;
        padding-right: 1vw;
        box-sizing: border-box;
    }

    .TabContainer {
        padding-top: 3vh;
    }

    .TabTitlesContainer {
        font-size: 3.5vw;
    }

    .OriginalImg {
        max-height: 65%;
        margin-top: 2vh;
    }

    .TabContent {
        height: 100%;
    }

    .TabDescription p {
        font-size: 1vh;
    }

    .TabSource {
        font-size: 1.5vh;
    }

    .TabSourceTexteColumns {
        height: 80%;
    }

    .TabSourceTexteColumn {
        overflow-y: auto;
        height: 100%;
    }

        .TabSourceTexteColumn:first-of-type {
            width: 50%;
        }

        .TabSourceTexteColumn:last-of-type {
            width: 44%;
        }

    .TabSourceInfos, .TabSourceTraduction {
        width: 90%;
    }

    article[id="alexandre"] {
        background-size: cover;
    }
}
