:root {
    --aboutPictureHeight: 450px;
}

#mainPageAbout {
    width: 100%;
    height: fit-content;
    background-color: var(--background);
    z-index: 10;
}

#mainPageAbout h3 {
    font-family: 'Playfair Display';
    font-weight: 700;
    position: relative;
    color: var(--text);
}

#aboutStroke {
    position: absolute;
}

#aboutStroke img,
#aboutStroke svg {
    width: 100%;
    fill: var(--complementDarker);
}

#mainPageAbout h4 {
    font-family: 'Playfair Display';
    font-weight: 500;
    color: var(--text);
}

#aboutContainer {
    width: 100%;
    margin: auto;
}

#aboutPicture {
    background-image: url(../images/portrait.png);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: 50%;
    position: relative;
    transition: background-size 0.5s ease-out;
}

#aboutSvgArea {
    position: absolute;
    width: 10%;
    height: 10%;
}

#aboutSvg{
    width: 100%;
    height: auto;
}

#aboutNameAndTitle {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 35%;
    text-align: left;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.755), transparent);
    display: flex;
    flex-direction: column;
    justify-content: end;
}

#aboutNameAndTitle h6 {
    margin: 0;
    padding: 0;
    font-family: Playfair Display;
    color: var(--complementLighter);
    font-weight: 700;
}
#aboutNameAndTitle p {
    margin: 0;
    padding: 0;
    color: var(--offWhite);
    font-weight: 300;
    transition: all 0.3s ease-out;
}
#aboutText svg {
    fill: var(--complementDarker);
}

#aboutText {
    color: var(--textLighter);
}

@media screen and (max-width: 600px) {
    #mainPageAbout {
        padding: 25vw 10%;
    }

    #mainPageAbout h3 {
        text-align: center;
        width: 80vw;
        font-size: 10vw;
        margin: auto;
        margin-bottom: 15vw;
    }

    #aboutStroke {
        width: 80vw;
        margin: auto
    }

    #mainPageAbout h4 {
        font-size: 6vw;
        text-align: center;
        width: 80vw;
        line-height: 1.3;
        margin-bottom: 10vw;
    }

    #aboutContainer {
        display: flex;
        flex-wrap: wrap;
    }

    #aboutPicture {
        width: 80vw;
        height: 100vw;
        margin: auto;
        background-size: 100% auto;
    }

    #aboutPicture:hover {
        background-size: 105% auto;
    }

    #aboutText {
        width: 70vw;
        margin-top: 15vw;
    }

    #quotationMarks {
        width: 18vw;
        float: left;
        margin: 0 3vw 0 0;
    }

    #aboutText svg {
        width: 100%;
    }
    
    #aboutText {
        height: fit-content;
        width: 80vw;
        line-height: 2.0;
        font-size: 4vw;
    }
    
    #aboutSvgArea {
        top: 3vw;
        right: 4vw;
    }

    #aboutNameAndTitle {
        padding: 3vw;
        gap: 2vw;
    }

    #aboutNameAndTitle h6 {
        font-size: 7vw;
    }

    #aboutNameAndTitle p {
        font-size: 3.5vw;
    }

    #aboutPicture:hover p {
        margin-bottom: 1vw;
    }
}

@media screen and (min-width: 601.01px) and (max-width: 767px) {
    #mainPageAbout {
        padding: 20vw 10%;
    }

    #mainPageAbout h3 {
        text-align: center;
        width: 80vw;
        font-size: 8vw;
        margin: auto;
        margin-bottom: 6vw;
    }

    #aboutStroke {
        position: relative;
        width: 70vw;
        margin: auto
    }

    #mainPageAbout h4 {
        font-size: 4.5vw;
        text-align: center;
        width: 80vw;
        line-height: 1.3;
        margin-bottom: 10vw;
    }

    #aboutContainer {
        display: flex;
        flex-wrap: wrap;
    }

    #aboutPicture {
        width: 75vw;
        height: 100vw;
        background-size: 120% auto;
    }

    #aboutPicture:hover {
        background-size: 125% auto;
    }

    #aboutText {
        width: 75vw;
        margin-top: 10vw;
    }

    #quotationMarks {
        width: 20vw;
        float: left;
        margin: 0 3vw 0 0;
    }

    #aboutText svg {
        width: 100%;
    }
    
    #aboutText {
        height: fit-content;
        width: 80vw;
        line-height: 2.0;
        font-size: 3vw;
    } 

    #aboutSvgArea {
        top: 3vw;
        right: 4vw;
    }

    #aboutNameAndTitle {
        padding: 3vw;
        gap: 2vw;
    }

    #aboutNameAndTitle h6 {
        font-size: 6vw;
    }

    #aboutNameAndTitle p {
        font-size: 2.5vw;
    }

    #aboutPicture:hover p {
        margin-bottom: 1.5vw;
    }
}

@media screen and (min-width: 767.01px) and (max-width: 991.98px),
       screen and (min-width: 991.98px) and (max-width: 1024.98px) and (orientation: portrait) {
    #mainPageAbout {
        padding: 100px 10%;
        width: 100vw;
    }

    #mainPageAbout h3 {
        width: fit-content;
        font-size: 4.5vw;
        line-height: 1.3;
        margin-bottom: 50px;
    }

    #aboutStroke {
        width: 150%;
        top: 5vw;
        left: -5vw;
    }

    #mainPageAbout h4 {
        font-size: 2.5vw;
        width: 90%;
        line-height: 1.3;
        margin-bottom: 30px;
    }

    #aboutContainer {
        display: flex;
    }

    #aboutPicture {
        width: 45%;
        height: 50vw;
        background-size: 120% auto;
    }

    #aboutPicture:hover {
        background-size: 125% auto;
    }

    #aboutText {
        width: 55%;
        padding-left: 60px;
    }

    #quotationMarks {
        width: 100%;
        height: 6vw;
        float: left;
        margin: 0 3vw 2vw 0;
    }

    #aboutText svg {
        height: 100%;
    }
    
    #aboutText {
        height: fit-content;
        width: 80%;
        line-height: 2.0;
        font-size: 1.5vw;
    }

    #aboutSvgArea {
        top: 1vw;
        right: 1.5vw;
    }

    #aboutNameAndTitle {
        padding: 2vw;
        gap: 1vw;
    }

    #aboutNameAndTitle h6 {
        font-size: 3vw;
    }

    #aboutNameAndTitle p {
        font-size: 1.5vw;
    }

    #aboutPicture:hover p {
        margin-bottom: 1vw;
    }
}

@media screen and (min-width: 992px) and (max-width: 1024.98px) and (orientation: landscape),
       screen and (min-width: 1025px) {
    #mainPageAbout {
        padding: 100px 10%;
    }

    #mainPageAbout h3 {
        width: fit-content;
        font-size: 40px;
        line-height: 1.3;
        margin-bottom: 50px;
    }

    #aboutStroke {
        width: 150%;
        top: 50px;
        left: -40px;
    }

    #mainPageAbout h4 {
        font-size: 30px;
        width: 70%;
        line-height: 1.3;
        margin-bottom: 50px;
    }

    #aboutContainer {
        height: var(--aboutPictureHeight);
        display: flex;
    }

    #aboutPicture {
        width: 40%;
    }

    #aboutPicture:hover {
        background-size: 105% auto;
    }

    #aboutText {
        width: 60%;
        padding-left: 60px;
    }

    html:lang(fr) #quotationMarks {
        height: 60px;
    }

    html:lang(ru) #quotationMarks {
        height: 70px;
    }

    #quotationMarks {
        width: 100%;
        height: 80px;
        float: left;
        margin: 0 0 25px;
    }

    #aboutText svg {
        height: 100%;
    }

    html:lang(fr) #aboutText {
        font-size: 14px;
    }

    html:lang(ru) #aboutText {
        font-size: 15px;
    }
    
    #aboutText {
        width: 80%;
        line-height: 2.0;
        font-size: 16px;
        display: block;
    }

    #aboutSvgArea {
        top: 10px;
        right: 12px;
    }

    #aboutNameAndTitle {
        padding: 20px 20px;
        gap: 5px;
    }

    #aboutNameAndTitle h6 {
        font-size:25px;
    }

    #aboutNameAndTitle p {
        font-size: 14px;
    }

    #aboutPicture:hover p {
        margin-bottom: 3px;
    }
}