@media screen and (max-width: 1235px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    section.projects > p {
        margin-left: 24px;
        margin-right: 24px;
    }
}
@media screen and (max-height: 600px) {
    header .row-hire {
        padding: 12px 28px;
        bottom: 25vh;
        font-size: 0.9em;
    }
    header .row-hire i.icon {
        width: 32px;
    }
    header .main-contact {
        bottom: calc(10vh + 24px);
    }
    header .view-projects {
        bottom: 14vh;
    }
}
@media screen and (max-width: 900px) {
    section.projects > h2,
    section.about h2,
    section.about h3 {
        font-size: 1.25em;
    }
    section.about p {
        text-align: justify;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    section.projects > p {
        margin-left: 48px;
        margin-right: 48px;
    }
    
    header .main-contact-side {
        right: 20px;
        gap: 12px;
    }
    header .main-contact-side a {
        width: 28px;
        padding: 6px;
    }
}

@media screen and (max-width: 830px) {
    .grid {
        grid-template-columns: repeat(1, 1fr);
    }
    section.about .col {
        width: calc(100% - 48px);
    }
}

@media screen and (max-width: 425px) {
    nav a.text {
        font-size: .75em;
    }
    nav img {
        width: 40px;
        height: auto;
    }

    section.service .col {
        width: calc(100% - 24px);
        margin: 12px;
        font-size: 0.875;
    }
    section.service .col:not(.tags) {
        text-align: justify;
    }

    section.service .tag.discord > svg, section.service .tag.mail > svg {
        margin: 12px !important;
    }
    
    header .main-contact-side {
        right: 10px;
        gap: 8px;
    }
    header .main-contact-side a {
        width: 24px;
        padding: 4px;
    }
    
    header .view-projects-btn {
        font-size: 0.9em;
        padding: 12px 20px;
    }
}

@media screen and (max-width: 415px) {
    .project-item > img {
        width: 300px;
        height: auto;
    }
    .effect > p {
        font-size: 0.625em;
    }
    .effect > h2 {
        margin-top: 80px;
    }
    .effect:hover > h2 {
        margin-top: 100px;
    }
    .effect:hover > p {
        bottom: 24px;
        opacity: 1;
    }
}

@media screen and (max-width: 350px) {
    .project-item > img {
        width: 250px;
        height: auto;
    }
    .effect > p {
        font-size: 0.625em;
    }
    .effect > h2 {
        margin-top: 70px;
    }
    .effect:hover > h2 {
        margin-top: 90px;
    }
    .effect:hover > p {
        bottom: 24px;
        opacity: 1;
    }

    section.service .col {
        font-size: .75em !important;
    }
    section.service .tag.discord > svg, section.service .tag.mail > svg {
        margin: 6px !important;
    }
}

@media (max-width: 299px), screen and (width: 666px) and (height: 666px) {
    * {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
        visibility: hidden;
        overflow: hidden;
    }
    html {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 100%;

        color: #ffffff;
        background: linear-gradient(to top, #37404b, #4d6070);
        background: #4d6070;
    }
    html::before {
        content: 'Cette page ne peux pas être affichée sur un écran de moins de 300 pixels.';
        margin: 0 auto;
        margin: 12px;
        visibility: visible;
    }
}
@media screen and (width: 666px) and (height: 666px) {
    html::before {
        color: #000;
        width: 100%;
        text-align: center;
        content: 'Vade retro satana';
    }
}