* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: warbler-text, sans-serif;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    padding: 0 2rem;
    gap: 0 1.5rem;
}

@media (max-width: 577px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

body {
    font-family: "Warbler";
    background-color: #2e2e2e;
}

a {
    color: white;
    text-decoration: none;
}

/* ===== Heather ===== */

header {
    position: fixed;
    width: 100%;
    top: 0;
    bottom: 0;
    align-items: center;
    height: 5rem;
    padding: 0 2rem;
    background-color: #1e1e1e;
    z-index: 100;
}

header nav ul {
    display: flex;
    align-items: center;
    height: 5rem;
}

header nav ul li {
    width: 33.33%;
}

header nav ul li a img {
    height: 65px;
}

header nav ul li:nth-child(2) {
    text-align: center;
}

header nav ul li:nth-child(3) {
    text-align: right;
}

/* ===== MAIN ===== */

main {
    margin-top: 5rem;
    min-height: calc(100vh - 5rem - 3rem);
}

/* ===== SECTION ===== */

section {
    padding: 7rem 0;
}

section.work .card {
    grid-column: span 6;
    margin-bottom: 2rem;
}

@media (max-width: 577px) {
    section.work .card {
        grid-column: span 12;
    }
}

section.work .card .card-image {
    aspect-ratio: 4/2.5;

    background-color: gray;
}

section.topic .about-image {
    grid-column: 3 / span 4;
    aspect-ratio: 1/1;
    background-color: gray;
}

section.topic .about-text {
    grid-column: 9 / span 4;
}

section.list {
    padding: 7rem;
}


section.topic {
    display: flex;
    justify-content: center;
    padding: 8rem 0;
    width: 100%;
    height: auto;
}

section.topic .topic-title {
    font-family: inherit;
    color: white;
    font-size: 15vw;
}

@media (max-width: 577px) {
    section.topic .topic-title {
        font-size: 12vw;
    }

}

/* ===== ABOUT ===== */

.about .about-image {
    grid-column: 8 / span 4;
    aspect-ratio: auto;
    background-color: gray;
}

.about .about-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about .about-text {
    grid-column: 2 / span 6;
    text-align: left;
    font-size: 2rem;
}


@media (max-width: 577px) {

    .about section {
        padding: 1.5rem;
    }

    .about .about-text {
        grid-column: span 12;
        font-size: 1.5rem;
    }

    .about .about-image {
        grid-column: span 12;
        aspect-ratio: auto;
        background-color: gray;
    }

}

/* ===== WORK ===== */

section.list .card {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    margin-top: -1px;
}

section.list .card .grid {
    padding: .75rem 0;
}


section.list .card .card-title {
    grid-column: span 6;
}

section.list .card .card-category {
    grid-column: span 3;
}

section.list .card .card-date {
    grid-column: span 3;
    text-align: left;
}

/* =====PROJECT===== */

.project .about {
    display: grid;
    padding: 2rem;
    gap: 1.5rem;
}

.about .project-images {
    grid-column: 5 / span 8;
    background-color: transparent;
}

.about .project-images img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about .project-images iframe {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    display: block;
}

.project .project-text {
    grid-column: 1 / span 4;
    text-align: left;
    font-size: 1.5rem;

}

.project .project-images img~img,
.project .project-images img~iframe,
.project .project-images iframe~img,
.project .project-images iframe~iframe {
    margin-top: 1.5rem;
}

.project .project-text>div {
    position: sticky;
    top: 7rem;
}

@media (max-width: 577px) {

    .project section {
        padding: 1.5rem;
    }

    .project .project-text {
        grid-column: span 12;
        font-size: .5rem;
    }

    .project .project-images {
        grid-column: span 12;
        aspect-ratio: auto;
        ;
    }

    .project .project-images iframe {
        grid-column: span 12;
        aspect-ratio: auto;
    }

    .project .project-images img~img,
    .project .project-images img~iframe,
    .project .project-images iframe~img,
    .project .project-images iframe~iframe {
        margin-top: 1.5rem;
    }

}

/* =====FOOTER===== */

footer {
    align-items: flex-end;
    height: 4rem;
    width: 100%;
    padding: 0 2rem;
    background-color: #1e1e1e;
    top: 0;
    bottom: 0;
    z-index: 100;
}

footer nav ul {
    display: flex;
    align-items: center;
    height: 4rem;
}


footer nav ul li {
    width: 33.3%;
}

footer nav ul li a img {
    height: 2rem;
}

footer nav ul li:nth-child(2) {
    text-align: center;
}

footer nav ul li:nth-child(3) {
    text-align: right;
}


@media (max-width: 577px) {
    footer {
        padding: 0 1.5rem;
    }
}