.project-dialog {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    background: #00000080;
    padding: 1.5rem;
}

.project-dialog.open {
    display: grid;
}

.project-dialog__card {
    position: relative;
    width: min(1248px, 100%);
    max-height: 92dvh;
    overflow: auto;
    border: 1px solid var(--teal);
    border-radius: 30px;
    background-image: url('../img/hero-section/hero-bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.project-dialog__wrapper {
    padding: 5.688rem 5rem;
}

.project-dialog__close {
    position: absolute;
    top: 3.5rem;
    right: 5rem;
    width: 48px;
    height: 48px;
    background: transparent;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    transition: transform .3s ease-out, color .3s ease-out;
}

.project-dialog__close:hover {
    transform: scale(1.2);
    color: var(--teal);
}

.project-dialog__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.project-dialog__figure {
    aspect-ratio: 520 / 370;
    overflow: hidden;
    max-width: 520px;
    justify-self: flex-end;
}

.project-dialog__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 30px;
}

.project-dialog__number {
    color: var(--teal);
    font-weight: 700;
    font-size: var(--fs-hero);
    margin-block: 0;
}

.project-dialog__title {
    font-weight: 700;
    font-size: var(--fs-title);
    color: #fff;
    margin-block: 0;
    margin-top: 1.5rem;
}

.project-dialog__subtitle {
    font-weight: 700;
    font-size: var(--fs-xl);
    color: var(--teal);
    margin-block: 0;
    margin-top: 2.5rem;
}

.project-dialog__copy {
    font-weight: 400;
    font-size: var(--fs-body);
    color: #fff;
    margin-block: 0;
    margin-top: 1.25rem;
    max-width: 50ch;
}

.used-skills {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.used-skills__item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .5rem;
}


.used-skills__icon {
    height: 24px;
    width: 24px; 
}

.used-skills__item span {
    font-weight: 400;
    font-size: 1rem;
    color: #fff;
}

.dialog-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.dialog-actions__link img {
    margin-left: .25rem;
    width: 18px;
    transition: transform .3s ease-out;
}

.dialog-actions__link:hover img {
    transform: translate(5px, -2px);
}

.next-project {
    position: absolute;
    right: 4.688rem;
    bottom: 3.438rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--teal);
    font-size: var(--fs-body);
    transition: color .3s ease-out;
}

.next-project:hover {
    color: #fff;
}

@media (max-width: 1000px) {
    .project-dialog__wrapper {
        padding: 5.938rem .75rem;
    }

    .project-dialog__grid {
        display: flex;
        flex-direction: column-reverse;
    }

    .project-dialog__figure {
        max-width: none;
        justify-self: center;
    }

    .dialog-actions {
        margin-bottom: 5rem;
    }

    .next-project {
        right: 1rem;
        bottom: 1.875rem;
    }
}