
/* GLOBAL STYLES */
:root {
    --accent: #D06677;
}
body { 
    margin: 0;
    background-color: white;
    font-family: "Cantarell", sans-serif; 
    max-width: 1100px;
    margin: 0px auto;
    padding: 0px 20px;
}
button { 
    all: unset; 
    cursor: pointer; 
}

/* HEADER */

header {
    margin: 48px auto;
    display: flex; 
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

nav {
    display: flex; 
    gap: 32px;
    align-items: center;
}
nav a {
    display: flex;
    color: black;
    margin-right: 8px;
}
nav a:hover {
    color: var(--accent);
}
.nav-links {
    display: flex;
    gap: 16px;
}
.nav-btn {
    font-size: 18px;
}

h1 {
    margin: 0px;
    font-size: 2.75em; 
    font-weight: normal;
    line-height: 1;
    letter-spacing: -1px;
    width: max-content;
}

/* ABOUT SECTION */

.about {
    margin: 96px 8px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.about-intro {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
}

.about-intro p {
    max-width: 600px;
    line-height: 1.6;
}

.profile-photo {
    width: 240px;
    flex-shrink: 0;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-gallery figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-gallery img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.about-gallery figcaption {
    text-align: center;
    color: #555;
}

/* WORK SECTION & IMAGE GALLERY  */

.work {
    margin: 96px 0px;
}

.controls {
    margin: 24px 8px; 
    font-size: 18px;
    display: flex; 
    flex-direction: row;
    gap: 24px;
}

.filter,
.nav-btn {
    display: block;
    width: max-content;
    line-height: 1.2;
    text-align: center;
}

.filter:before,
.nav-btn:before {
    content: attr(data-text);
    display: block;
    font-weight: 900;
    letter-spacing: -1px;
    height: 0;
    visibility: hidden;
    overflow: hidden;
}

.filter:hover,
.nav-btn:hover {
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--accent);
}

.filter.active,
.nav-btn.active {
    font-weight: 900;
    letter-spacing: -1px;
    color: black;
}

.filter {
    padding-bottom: 8px;
}

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

.images-container {
    column-count: 3;
    column-gap: 8px;
}

.gallery-item {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
    /* border-radius: 16px; */
}

@media (max-width: 750px) {
    body {
        padding: 0 8px;
    }
    .images-container { column-count: 1; }

    header {
        margin: 48px 0 0 8px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
    }
    h1 {
        font-size: 2.25em;
    }

    nav {
        margin: 36px 0;
        /* margin: 32px 0 16px 6px;
        font-size: 18px;
        display: flex; */
        /* flex-direction: column; */
        /* gap: 0px; */
    }
    nav a {
        display: none;
    }
    .nav-links {
        flex-direction: column;
    }
    .work { margin: 16px 8px;}
    .about { margin: 16px 8px; }

    .controls {
        width: 100%;
        justify-content: left;
        margin: 0 0 16px 6px; 
        font-size: 18px;
        display: flex; 
        flex-direction: row;
        gap: 16px;
    }

    .filter { 
        text-align: left;
        font-size: 16px;
        line-height: 1.3;

    }
    .filter::before { all: none; }

    .about-intro {
        flex-direction: column;
        gap: 24px;
    }

    .about-gallery {
        grid-template-columns: 1fr;
    }

    .about-gallery img {
        height: auto;
    }
}


.hide {
    display: none;
}