html,
body {
    height: 100%;
}

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

:root {
    --margin-grid: 2rem;
}

@media (max-width: 992px) {
    :root {
        --margin-grid: 1.5rem;
    }
}

@media (max-width: 576px) {
    :root {
        --margin-grid: 1rem;
    }
}

@font-face {
    font-family: "Acid Grotesk";
    src: url("fonts/FFF-AcidGrotesk-Regular-TRIAL.otf");

}

body {
    background-color: #5b4c42;
    font-family: "Acid Grotesk";
}


.container-fluid {
    padding-left: var(--margin-grid);
    padding-right: var(--margin-grid);
}

.row {
    --bs-gutter-x: 1rem;
}

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

/* ======== HEADER ======== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    padding: 0 var(--margin-grid);
    z-index: 1000;
    color: #fff800;
}

header.invertedpc{
    color: #5b4c42;
}


header.header-home {
    color:#5b4c42;
    text-decoration: none;
}

header .logo img {
    height: 3rem;
    align-items: center;
}

header .burger {
    display: none;
}

header nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

header nav ul li a {
    opacity: .4;
}

header nav ul li a.active {
    opacity: .9;
}




@media (max-width: 576px) {
    header .burger {
        position: relative;
        display: block;
        width: 2.5rem;
        height: 2.5rem;
    }

    header .burger div {
        position: absolute;
        width: 100%;
        height: 1px;
        background-color:#5b4c42;
    }

    header .burger div:nth-child(2) {
        top: .75rem;
    }

    header .burger div:nth-child(3) {
        top: 1.5rem;
    }

    header nav {
        position: fixed;
        top: 4rem;
        right: -100%;
        background-color:#fff800;
        height: calc(100dvh - 4rem);
        width: 100%;
        padding: 2rem;
        transition: right .3s;
    }

       header nav.open{
               right: 0;
       }

    header nav ul {
        display: block;
        text-align: center;
        color: #5b4c42;
    }

    header nav ul li {
        margin-bottom: 1rem;
    }

header.inverted .burger div{
    background-color: #fff800
}

}

main {
    min-height: calc(100dvh - 3rem);
}





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

main.home {
    background-color: #fff800;
    height: calc(100dvh - 3rem);
}

main.home .home-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

main.home .home-image img {
    width: 65%;
    height: auto;
    display: block;
    align-items: center;
    justify-content: center;
}

main.home .card-image {
    position: n fixed;
}

main.single {
    padding: 2rem 0;
}

/* ======== DESIGN ======== */

main.design {
    margin-top: 5rem;
}

main.design .card .card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

main.design .card .card-image img {
    aspect-ratio: 16/9;
    background-color: black;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

main.design .card-image .overlay {
    font-family: "Acid Grotesk";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

main.design .card-image:hover .overlay {
    opacity: 1;
}

main.design .card-image .overlay-text {
    font-family: "Acid Grotesk";
    color: #fff800;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

/* ======== SINGLE ======== */

.single-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: .5rem;
    margin-top: 2rem;
    color: #fff800;
}

.single-text {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    margin-top: 2rem;
    color: #fff800;
}

.single-image+.single-image {
    margin-top: 1rem;
}

.single-image {
    list-style: none;
}

.single-image img {
    width: 100%;
    height: auto;
    display: block;

}

main.single .single-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4/2.5;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

main.single .single-slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

main.single .single-slideshow img.active {
    opacity: 1;
}

/* ======== ILUSTRATION ======== */

main.illustration {
    height: 100dvh;
    margin-top: 5rem;
}

main.illustration .card {
    margin-bottom: var(--bs-gutter-x);
    transition: scale 0.3s;
}

main.illustration .card .card-image img {
    aspect-ratio: 3/4;
    background-color: black;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

}

main.illustration .card:hover {
    scale: 105%;
    overflow: hidden;
    transition: border-radius 0.3s ease;
}

/* ======== PHOTO ======== */

main.photo .card {
    margin-bottom: var(--bs-gutter-x);
    transition: scale 0.3s;
}

main.photography .card:hover {
    scale: 120%;
    overflow: hidden;
    transition: border-radius 0.3s ease;
}

/* ======== ABOUT ======== */
body.background {
    background-color: #fff800;
}

main.about .about-text {
    color: #5b4c42;
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: .5rem;
    margin-top: 4rem;
}


/* ======== FOOTER ======== */
footer {
    display: flex;
    justify-content: space-between;
    height: 3rem;
    padding: 0 2rem;
    align-items: center;
    color: #fff800
}

footer nav ul {
    display: flex;
    list-style: none;
}

footer nav ul li {
    margin-left: 1rem;
    display: block;
}

footer.inverted {
    color: #5b4c42;
    background-color: #fff800;
}

/* ======== MOBILE ======== */

@media (max-width: 576px) {
    .single-title {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: 0.2rem;
        margin-top: 2rem;
        color: #fff800;
    }

    .single-text {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 2rem;
        margin-top: 1rem;
        color: #fff800;

    }
    main.about .about-text {
        color: #5b4c42;
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        margin-top: 4rem;
    }

    main.home .home-image img {
        width: 95%;
        height: auto;
        display: block;
        align-items: center;
        justify-content: center;
    }

    footer {
        display: flex;
        justify-content: flex-end;
        justify-content: space-between;
        height: 3rem;
        padding: 0 1rem;
        align-items: center;
        color: #fff800
    }
}

/* ======== IPAD ======== */

@media (max-width: 992px) {
    :root {
        --margin-grid: 1.5rem;
    }

    .single-text {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 2rem;
        margin-top: 2rem;
        color: #fff800;

    }

    .single-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 0.2rem;
        margin-top: 2rem;
        color: #fff800;
    }

    main.home .home-image img {
        width: 95%;
        height: auto;
        display: block;
        align-items: center;
        justify-content: center;
    }
}