.project-info {
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 3;
    pointer-events: none;
    position: fixed;
    top: var(--navbar-height);
    width: 100dvw;
    height: calc(100dvh - var(--navbar-height));
    background-color: var(--dark-color);
    padding: 3em 2em;
    color: white;
    overflow: auto;
    scrollbar-width: thin;
}
.project-info:target {
    opacity: 1;
    pointer-events: all;
}

body:has(.project-info:target) {
    overflow: hidden;
}

.project-info header {
    display: flex;
    justify-content: space-between;
}

.project-info header .close-project-info {
    width: 2.1rem;
    height: 2.1rem;
    position: relative;
    transition: 0.2s;
}
.project-info header .close-project-info:hover {
    opacity: 0.6;
}

.project-info header .close-project-info::before,
.project-info header .close-project-info::after {
    content: "";
    position: absolute;
    background-color: white;
    left: 0.2rem;
    top: 50%;
    translate: 0 -50%;
    width: 100%;
    aspect-ratio: 10 / 1;
    rotate: 45deg;
}
.project-info header .close-project-info::after {
    rotate: -45deg;
}

.project-info-content {
    margin: auto;
    max-width: 60em;
}

.project-info-content img {
    width: 60em;
    max-width: 100%;
    border-radius: 0.5em;
}

.project-info-content .skills-list {
    margin-top: 1em;
    display: flex;
    flex-direction: row;
    gap: 1em;
    flex-wrap: wrap;
}

.project-info-content .skills-list .skill-item {
    background-color: white;
    padding: 0.5em;
    border-radius: 0.5em;
    width: 3em;
}

@media (max-width: 900px) {
    .project-info {
        font-size: var(--small-font-size);
    }
}

@media (max-width: 490px) {
    .project-info {
        padding: 2em 1em;
        font-size: var(--tiny-font-size);
    }
}
