*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ff:'Inter', sans-serif;

    --fw-reg: 400;
    --fw-bold: 600;

    --clr-light: #fff;
    --clr-dark: #000;
    --clr-accent: #FF9AA9;

    --fs-h1: 1.7rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1.25rem;
    --fs-body: 1.125rem;
    --fs-link: .7rem;

}

    @media (min-width: 700px) {
        :root {
            --fs-h1: 1.5rem;
            --fs-h3: 1.25rem;
            --fs-link: .8rem;
        }
}

html {
    scroll-behavior: smooth;
}

body {
    width: 90%;
    margin: 0 auto;
    padding: 0;
    background: var(--clr-accent);
    color: var(--clr-dark);
    font-family: var(--ff);
    font-size: var(--fs-body);
    line-height: 1.5;
}

img {
    width: 100%;
    margin: 0 auto;
}

a {
    outline: none;
}

/* PORTFOLIO PAGE */

.header {
    text-align: center;
}

.bio p {
    font-size: var(--fs-h1);
    text-transform: uppercase;
    padding: .5em;
    border: var(--clr-dark) solid 2px;
    border-bottom: var(--clr-dark) solid 20px;
    max-width: 300px;
    margin: 3em auto 1em;
    background: var(--clr-light);
}

.project-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin: 0 auto;
}

.teaser {
    width: 100%;
    height: 300px;
    margin: 0 auto;
    cursor: pointer;
    object-fit: cover;
}

.project-img:hover,
.project-img:focus,
.teaser:hover,
.teaser:focus {
    border: var(--clr-light) 2px solid;
}

@media (min-width: 900px) {

    .bio p {
        padding: .5em;
    }
    .project-img {
        width: 270px;
        height: 150px;
        object-fit: cover;
    }
    
    .teaser {
        width: 270px;
        height: 150px;
        cursor: pointer;
        object-fit: cover;
    }
}

.project-caption {
    font-size: var(--fs-link);
    text-align: left;
}

.container-projects {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    gap: 2em;
    margin: 5em auto;
}

.portfolio__item__link {
    text-decoration: none;
    color: var(--clr-dark);
    text-transform: uppercase;
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    cursor: pointer;
    border: var(--clr-dark) solid 2px;
    padding: 0 .3em;
    display: inline-block;
}

.portfolio__item__link:hover,
.portfolio__item__link:focus {
    background: var(--clr-light);
}

/* GENERAL DISPLAY */

.portfolio-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin: 3em auto;
}

.portfolio__link {
    font-size: var(--fs-link);
}

.active {
    background: var(--clr-light);
}

strong {
    font-weight: 500;
}

/* ABOUT PAGE */

.long-bio {
    text-align: center;
    margin: 5em auto;
}

.cv-list {
    margin: 3em auto;
    line-height: 1.3;
}

.long-bio,
.cv-list {
    max-width: 800px;
}

.curiosashorts {
    text-decoration: none;
    color: var(--clr-light);
}

.curiosashorts:hover {
    color: var(--clr-dark);
}

/* VIDEOS PROJECTS */

.portfolio_project {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 95%;
    margin: 0 auto;
}

.project-info  {
    max-width: 600px;
    margin:  5em auto 0;
}

.project-title {
    font-size: var(--fs-h2);
    margin: 0;
}

.project-subtitle {
    margin: 0;
}

.project-location {
    font-size: var(--fs-link);
}

.project-content {
    margin: 0 auto;
}

.project-credits {
    font-size: var(--fs-link);
}

.video {
    width: 100%;
    max-width: 900px;
    margin: 3em auto 3em;
}

.video-caption {
    margin-top: -4em;
}

/* PHOTO PROJECTS */

.photo-project {
    margin: 5em auto;
}

.photo-item {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2em;
}


/* CONTACT PAGE */

.contact-line {
    text-align: center;
    margin: 5em auto;
}

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

.contact-link {
    text-decoration: none;
    color: var(--clr-dark);
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    cursor: pointer;
    border: var(--clr-dark) solid 2px;
    background: var(--clr-light);
    padding: 0 .3em;
    margin: 1em;
}

.contact-link:hover,
.contact-link:focus {
    background: var(--clr-accent);
}

/* FOOTER */

.work-btn-bottom {
    text-align: center;
    margin: 2em auto 4em;
}

.footer {
    display: flex;
    justify-content: center;
    margin-bottom: 1em;
}

.footer .contact-link {
    margin: 1em .5em 0;
    font-size: var(--fs-link);
}