.project-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.modal-content.projects {
    gap: 23px;
    /* flex-direction: row; */
    max-width: 2200px;
    /* margin: 0; */
    display: grid;
    grid-template-columns: 33% 66%;
}
.project-item > img {
    aspect-ratio: 1/1;
    object-fit: cover;
}
.project-item button {
    all: unset;
    cursor: pointer;
    display: block;
    text-align: left;
}
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.project-modal.hidden {
    display: none;
}
.modal-content {
    background: white;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    position: relative;
}
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    background: var(--wp--preset--color--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 50%;
}
.read-more {
    display: inline-block;
    margin-top: 1rem;
    background: #4040A3;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
}
.modal-content.projects h2 {
    margin-top: 20px;
}
.project-item img {
    border-radius: 12px;
    margin-bottom: 10px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.projects-modal h3 {
    font-size: var(--wp--preset--font-size--large);
    color: white;
}

.project-item {
    cursor: pointer;
}