.page-wrapper-projects {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    padding: 1rem 0 3rem 0;
}

.project-card {
    width: 100%;
}

.project-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.project-title {
    color: white;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    text-align: center;
    transition: color 0.2s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card:hover .project-title {
    color: #ff66c4;
}

.project-card-btn {
    background: none;
    border: none;
    padding: 0;
    text-align: inherit;
    font: inherit;
    color: inherit;
    cursor: pointer;
    width: 100%;
}

.project-modal {
    padding: 0;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #111111;
    color: #ffffff;
    max-width: 800px;
    width: 90vw;
    margin: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.project-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    padding: 2.5rem 2rem 2rem 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ff66c4;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#modal-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 4px;
}

#modal-title {
    font-size: 1.75rem;
    color: #ff66c4;
    margin-bottom: 0.25rem;
    margin-top: 0;
    padding: 0;
}

.modal-category {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-description {
    line-height: 1.6;
    font-size: 1.05rem;
    color: #ddd;
}

.modal-media {
    margin-top: 1.25rem;
    width: 100%;
}

.modal-media iframe {
    border-radius: 4px;
    border: none;
    background-color: #000000;
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
        align-items: flex-start;
    }

    .modal-image-container {
        flex: 0 0 45%;
    }

    .modal-text-container {
        flex: 0 0 50%;
    }
}

@media (max-width: 767px) {
    .page-wrapper-projects {
        width: 100vw;
        padding: 1rem;
    }
}

@media (min-width: 600px) and (max-width: 1023px) {
    .projects-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {

    .projects-wrapper {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
        align-items: start;
    }

    .project-title {
        font-size: 1.2rem;
    }
}