* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    scrollbar-color: red rgb(245, 245, 245);
}

::selection {
  background: red;
  color: rgb(245, 245, 245);
  text-shadow: none;
}

::-moz-selection {
  background: red;
  color: rgb(245, 245, 245);
  text-shadow: none;
}


@font-face {
    font-family: "PPEditorialNew-Regular";
    src: url(./fonts/PPEditorialNew-Regular.woff2);
}

@font-face {
    font-family: "LabGrotesque-Regular";
    src: url(./fonts/LabGrotesque-Regular.woff2);
}

@font-face {
    font-family: "LabGrotesqueMono-Bold";
    src: url(./fonts/LabGrotesqueMono-Bold.woff2);
}

body {
    font-family: "PPEditorialNew-Regular";
    background-color: rgb(245, 245, 245);
    cursor: url(../img/cursor-1.svg) 0 0, auto;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: url(../img/cursor-2.svg) 0 0, pointer;
}

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

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 0 2rem;
    background-color: rgb(245, 245, 245);
    z-index: 100;
}

header nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "PPEditorialNew-Regular", serif;
    font-size: 4rem;
    color: red;
    border-bottom: 2px solid #ff0000;
    padding-top: 1rem;
}

header nav ul li a {
    display: inline-block;
    height: 4.2rem;
}

header nav ul li a:hover {
    border-bottom: 2px solid #ff0000;
}

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

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


header nav ul img {
    height: 4rem;
    display: block;
}


@media (max-width: 992px) {
    header nav ul {
        font-size: 3.5rem;
    }

    header nav ul li a {
        display: inline-block;
        height: 3.9rem;
    }

}

@media (max-width: 577px) {

    .grid {
        padding: 0 1.5rem;
    }

    header {
        padding: 0 1.5rem;
    }

    header nav ul {
        font-size: 2.25rem;
    }

    header nav ul li a {
        height: 2.8rem;
    }
}

.index .logo {
    height: calc(100vh - 1rem);
    display: flex;
    align-items: flex-end;
}

.index .logo img {
    width: 100%;
    padding: 2rem;
}

section {
   padding-top: 8rem;
}

section.work .card {
    grid-column: 4 span;
}

.card-title {
    font-family: "PPEditorialNew-Regular", serif;
    color: red;
    font-size: 2.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
}

section.work .card .card-image {
    aspect-ratio: 5/6;
    gap: 2rem;
    position: relative;

}

.card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    transition: opacity 0.3s ease;
    background-color: rgb(255, 248, 248);
}

.work .thumbnail:hover {
    opacity: 0%;
}


@media (max-width: 992px) {
    section {
        padding-top: 7rem;
    }

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

    .card-title {
        font-size: 2rem;
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 577px) {
    section {
        padding-top: 5.5rem;
    }

    section.work .card {
        grid-column: 12 span;
    }

    .card-title {
        font-size: 2rem;
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
    }
}

.project .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 2rem;
    gap: 2rem;
}

.project .project-text {
    position: sticky;
    top: 8rem;
}

.project .project-title {
    color: red;
    font-family: "PPEditorialNew-Regular", serif;
    font-size: 4rem;
    line-height: 5rem;
    border-bottom: 2px solid #ff0000;
}

.project-tags {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: red;
    font-family: "LabGrotesqueMono-Bold", sans-serif;
    font-size: 1rem;
}

.project-description {
    margin-top: 1rem;
    border-top: 2px solid #ff0000;
    border-bottom: 2px solid #ff0000;
    padding: 1rem 0rem 1rem 0rem;
    color: red;
    font-family: "LabGrotesque-Regular", sans-serif;
    font-size: 1rem;
}

.project-images {
    margin-top: 6rem;
}

.project .project-images img {
    width: 100%;
    height: auto;
    display: block;

}

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

.project .project-images iframe {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
    background-color: rgb(255, 248, 248);

}

@media (max-width: 992px) {

    .project .container {
        padding: 1.5rem;
    }

    .project .project-text {
        margin-top: 5rem;
    }

    .project .project-title {
        font-size: 3.5rem;
        line-height: 4rem;
    }

}

@media (max-width: 577px) {

    .project .project-text {
        margin-top: 2.5rem;
    }

    .project .container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .project .project-title {
        margin: 0rem;
        font-size: 2.5rem;
        line-height: 3rem;
        bottom: 20rem;
        padding-bottom: 0.5rem;
    }

    .project-images {
        margin-top: 0rem;
    }
}

footer {
    padding: 2rem;
}

.about section {
    margin-top: 5rem;
    padding: 0 2rem;
    min-height: calc(100dvh - 16.8rem);
}

.about .section-text p {
    font-family: "PPEditorialNew-Regular", serif;
    font-size: 2rem;
    color: #ff0000;
    border-bottom: 2px solid red;
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}

.about .container {
    border-top: 2px solid #ff0000;
    border-bottom: 2px solid #ff0000;
    padding-top: 1rem;
    padding-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
}

.contacts {
    display: flex;
    color: #ff0000;
    font-size: 1.5rem;
    justify-content: space-between;

}

.socials {
    color: #ff0000;
    font-size: 1.5rem;
    text-align: right;
}

.socials li a:hover {
    border-bottom: 2px solid #ff0000;
}

@media (max-width: 992px) {
    .about section {
        margin-top: 4rem;
        min-height: calc(100dvh - 15.8rem);
    }

    .about .section-text p {
        font-size: 1.75rem;
    }

    .about .section-title {
        font-size: 2rem;
    }


}

@media (max-width: 577px) {
    .about section {
        margin-top: 2.75rem;
        padding: 0 1.5rem;
        min-height: calc(100dvh - 13.9rem);
    }

    .about .section-text p {
        font-size: 1.5rem;
    }

    .about .container {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        padding: 1.5rem;
    }
}

@media (max-width: 470px) {

    .about section {
        min-height: calc(100dvh - 12.6rem);
    }

    .contacts {
        font-size: 1.25rem;
    }

    .socials {
        font-size: 1.25rem;
    }

}