/*  Reset */

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

ul,
li {
    list-style-type: none;
}

iframe {
    border: 0;
}

input {
    border-radius: 0;
    -webkit-appearance: none;
}

:focus {
    border: 0px;
    outline: none;
}

:root {
    --font-size1: 35px;
    --font-size2: 15px;
    --font-size3: 20px;
    --color: #6E5D50;
    --background: rgba(250, 250, 250, 1);

}

a,
a:hover {
    text-decoration: none;
    color: inherit;
}

/*  Typography */

@font-face {
    font-family: 'ibm';
    src: url('fonts/ibm-regular.woff2') format('woff2'),
        url('fonts/ibm-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: fallback;
}

body,
html,
h1,
h2,
h3,
h4,
::placeholder,
input,
button,
small {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0.04em;
    font-size: var(--font-size1);
    line-height: 1.25em;
    font-weight: normal;
    font-style: normal;
    color: var(--color);
}

p {
    padding: 0;
    margin: 0;
}

body {
    height: 100vh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    background: var(--background);
}

.underline {
    border-bottom: 3px var(--color) solid;
}

html {
    scroll-behavior: smooth;
}

.hidden {
    display: none;
}

section {
    padding-bottom: 4em;
}

/*  Header */
h1 {
    font-size: var(--font-size3);
    position: fixed;
    top: 0;
    left: 0;
    padding: 0.8rem 1rem;
    z-index: 20;
    letter-spacing: 0.25em;
    width: 100%;
    background: var(--background);
}

h1 span {
    display: block;
}

.logo-title {
    font-weight: bold;
}

.logo-subtitle {
    font-size: 0.8em;
}

h2 {
    text-align: center;
    padding-bottom: 2em;
}

nav {
    font-size: var(--font-size1);
    z-index: 10;
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 2.2em;
    transition: opacity 0.3s;
    background-color: var(--background);
}

nav.fixed {
    position: fixed;
    top: 0;
    opacity: 0;
}

nav.visible {
    position: fixed;
    top: 0;
    opacity: 1;
}

nav ul {
    top: 0;
    z-index: 10;
    padding: 0.8rem 1rem 1rem 1rem;
    font-size: var(--font-size3);
    line-height: 1.25em;
}

nav ul,
.footer-menu ul {
    display: flex;
    justify-content: center;
    gap: 1em;
    width: 100%;
}


/*
nav ul,
 .header ul {
    display: flex;
    justify-content: center;
    gap: 1em;
    padding: 0 1rem;
    display: none;
} 

.header:hover h2 {
    display: none;
}

.header:hover ul {
    display: flex;
}

*/
.languages {
    position: fixed;
    top: 0.8rem;
    right: 1rem;
    font-size: var(--font-size2);
    line-height: 1.25em;
    text-transform: uppercase;
    display: flex;
    gap: 1em;
    z-index: 20;
}

/*  Slideshow */
.slideshow-items {
    /*     margin-top: 50vh;
 */
}

.slideshow-items-item {
    padding: 2rem;
    position: sticky;
    top: 1.5rem;
    text-align: center;
    height: calc(100vh - 2rem);
    max-width: 50rem;
    margin: auto;
    margin-bottom: 2rem;
    transform-origin: center top;
    background: var(--background);
}

/* .project .slideshow-items-item {
    position: relative;
    height: auto;
    margin-bottom: 0;
}
 */
.slideshow-items-item p {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-color: var(--background);
    max-width: 30em;
    margin: auto;
}

.slideshow-items-item figure {
    height: auto;
}

.slideshow-items-item p {
    position: relative;
}

.slideshow-items-item p:before {
    content: '';
    position: absolute;
    top: calc(50% - 1em);
    left: 0;
    width: 100%;
    height: 2em;
    background-color: var(--background);
    filter: blur(3em);
    z-index: -1;
}

.header:before {
    top: -1.5rem;
    height: 2rem;
    filter: blur(0.5em);
    z-index: -1;
    opacity: 0.8;
}

.slideshow-items-item figure {
    height: calc(100vh - 6rem);
}

/* .project .slideshow-items-item figure.portrait {
    height: calc(100vh - 0.5rem);
    width: auto;
} */
/* 
.project .slideshow-items-item figure.landscape {
    width: 100%;
    max-width: 90rem;
    height: auto;
} */

.slideshow-items-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

figcaption {
    font-size: var(--font-size2);
    line-height: 1.25em;
    text-align: center;
    padding: 1em;
}

/* Projects grid */
.preexpertise {
    font-size: var(--font-size1);
    line-height: 1.25em;
    text-align: center;
    max-width: 30em;
    margin: auto;
    padding: 1em 1em 3em 1em;
}

.projects-items {
    padding: 2rem 1em;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    row-gap: 3rem;
}

.project-description p {
    padding-bottom: 2em;
}

.projects-items img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.portfolio {
    padding: 1rem 1rem 3rem 1rem;
    text-align: center;
    max-width: 30em;
    margin: auto;
}

.about {
    padding-top: 3em;
}

.about-portrait img {
    display: block;
    width: calc(100% - 2em);
    max-width: 10em;
    margin: auto;
}

.contacts {
    padding-top: 3em;
    height: calc(100vh - 2em);
}

.contacts p {
    text-align: center;
    padding: 2em 1em 3em 1em;
    font-size: var(--font-size3);
    line-height: 1.25em;
}


/*  Blocks */

.paragraph {
    text-align: left;
    padding: 2em 1em 2em 1em;
    max-width: 35em;
    margin: auto;
    font-size: var(--font-size3);
    line-height: 1.25em;
}

.paragraph.small-text p {
    font-size: var(--font-size3);
    line-height: 1.25em;
    text-align: left;
    max-width: 40em;
    margin: auto;
}

.paragraph h2 {
    padding-bottom: 0.1em;
    margin-bottom: 0.25em;
    text-align: left;
    font-size: 1.25em;
}

.images {
    padding: 1em 1em 2em 1em;
}

.images[data-images="2"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.images[data-images="3"] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.images figure img.landscape {
    width: 100%;
    object-fit: cover;
}

.landscape {
    aspect-ratio: 3/2;
    max-width: 20em;
    margin: auto;
    display: block;
}

.portrait {
    aspect-ratio: 2/3;
    max-height: 20em;
    margin: auto;
    display: block;
}

.footer-menu {
    font-size: var(--font-size3);
    line-height: 1.25em;
    padding: 3em 1em 1em 1em;
}

.sentence {
    font-size: var(--font-size1);
    line-height: 1.25em;
    text-align: center;
    max-width: 30em;
    margin: auto;
    padding: 4em 1em 4em 1em;
}

/*  Media Query */

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

    .projects-items {
        padding: 2rem 1em;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        row-gap: 3rem;
    }

    .paragraph {
        padding: 1.5em 1em 1.5em 1em;
    }

    :root {
        --font-size1: 20px;
        --font-size2: 12px;
        --font-size3: 15px
    }

    .slideshow-items-item {
        display: flex;
        align-items: center;
        padding: 1rem;
    }

    .underline {
        border-bottom: 2px black solid;
    }

    nav ul {
        position: relative;
        padding-top: 3em;
    }

    .languages {
        font-size: var(--font-size2);
        line-height: 1.25em;
    }

    .images[data-images="3"],
    .images[data-images="2"] {
        grid-template-columns: 1fr;
    }

    figure img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .slide-wrapper {
        margin: auto;
    }

    .slideshow-items-item figure {
        height: auto;
        width: 100%;
    }

    .slideshow-items-item img {
        object-fit: cover;
    }

    nav {
        position: relative;
    }

    nav ul {
        padding: 2em 1em 1rem 1em;
    }

    .footer-menu ul {
        padding-bottom: 2em;
    }

    h1 {
        background: var(--background);
        width: 100%;
    }
}