/* Fonts */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&display=swap');

/* General Reset */

body,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Hanken Grotesk", sans-serif;
}

a {
    text-decoration: none;
    color: #000;
}

a:hover {
    color: #b2b2b2;
}

/* Homepage */

.home {
    position: relative;
    height: 100vh;
    background: #fff;
    margin: 50px;
    /* overflow: hidden; */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6rem;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0;
    line-height: normal;
    text-decoration: none;
}

nav .logo {
    color: #000;
    transition: 0.3s ease;
}

nav .logo:hover {
    color: #b2b2b2;
}

nav .info {
    color: #b2b2b2;
    transition: 0.3s ease;
}

nav .info:hover {
    color: #000;
}

/* .slider {
    width: 100%;
    height: 100%;
    max-height: fit-content;
    background-color: #b2b2b2;
} */

.slider {
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background-color: #b2b2b2;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fade 24s infinite;
}

/* Each image starts its animation with a delay */
.slides img:nth-child(1) { animation-delay: 0s; }
.slides img:nth-child(2) { animation-delay: 6s; }
.slides img:nth-child(3) { animation-delay: 12s; }
.slides img:nth-child(4) { animation-delay: 18s; }

@keyframes fade {
    0% { opacity: 0; }
    8% { opacity: 1; }
    25% { opacity: 1; }
    33% { opacity: 0; }
    100% { opacity: 0; }
}

/* Info */

.about {
    position: relative;
    background: #fff;
    margin: 50px;
}

.divider {
    border: none;
    height: 1px;
    background-color: #EFF2F5;
    margin: 6rem 0;
    width: 100%;
}

.content {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.bio {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.bio img {
    flex: 0 0 30%;
    width: 6rem;
    height: auto;
    object-fit: cover;
    margin: 0;
    display: block;
}

.text-bio {
    flex: 1;
    font-size: 1.5rem;
    line-height: 1.6;
    margin: 0;
    margin-right: 6rem;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.bio-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.bio-content h3 {
    flex: 0 0 30%;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    padding-top: 0.2rem;
    box-sizing: border-box;
}

.bio-content .exhibitions-list {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.exhibitions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.125rem;
    color: #000;
    line-height: 1.6;
}

.exhibitions-list li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.exhibitions-list li:last-child {
    border-bottom: none;
}



/* Footer */

footer {
    font-size: 0.765rem;
    font-weight: 400;
    color: #b2b2b2;
    margin-top: 6rem;
    padding-bottom: 1rem;
}

::selection {
    background-color: #b2b2b2;
    color: #000;
}

/* Responsive Design */

@media (max-width: 1024px) {
    .slider {
        height: 60vh;
    }

    .slides img {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .slider {
        height: 50vh;
    }


    .slides img {
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 40vh;
    }

    .slides img {
        height: 40vh;
    }
}

@media (max-width: 1024px) {

    .home,
    .about {
        margin: 2rem;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        font-size: 1rem;
    }

    .bio,
    .bio-content {
        gap: 2rem;
    }

    .bio img {
        flex: 0 0 40%;
    }

    .text-bio {
        font-size: 1.25rem;
        margin-right: 0;
    }

    .bio-content h3 {
        font-size: 1.5rem;
    }

    .bio-content .exhibitions-list {
        font-size: 1rem;
    }

    .divider {
        margin: 4rem 0;
    }
}

@media (max-width: 768px) {

    .home,
    .about {
        margin: 1.5rem;
    }

    .bio,
    .bio-content {
        flex-direction: column;
        gap: 2rem;
    }

    .bio img,
    .bio-content h3 {
        flex: 0 0 auto;
        width: 100%;
    }

    .text-bio,
    .bio-content .exhibitions-list {
        flex: 0 0 auto;
        width: 100%;
        margin-right: 0;
        font-size: 1.125rem;
    }

    .exhibitions-list li {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    footer {
        text-align: left;
        font-size: 0.75rem;
        margin-top: 4rem;
    }
}

@media (max-width: 480px) {

    .home,
    .about {
        margin: 1rem;
    }

    nav {
        font-size: 0.9rem;
    }

    .text-bio {
        font-size: 1rem;
        line-height: 1.5;
    }

    .bio-content h3 {
        font-size: 1.25rem;
    }

    .exhibitions-list {
        font-size: 0.95rem;
    }

    footer {
        font-size: 0.7rem;
        text-align: center;
    }
}