.rp-project-gallery {
    display: grid;
    gap: var(--rp-gallery-gap, 16px);
    grid-template-columns: repeat(var(--rp-gallery-columns, 3), minmax(0, 1fr));
}

.rp-project-gallery__item {
    aspect-ratio: 4 / 3;
    display: block;
    overflow: hidden;
}

.rp-project-gallery__item img,
.rp-project-featured-image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.rp-project-card,
.rp-project-archive-grid {
    display: grid;
    gap: 18px;
}

.rp-project-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rp-project-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.rp-project-card__body {
    padding: 18px;
}

.rp-project-card__body h3 {
    margin-top: 0;
}

.rp-project-meta {
    color: #64748b;
    display: block;
    margin-bottom: 10px;
}

.rp-project-card__button {
    display: inline-flex;
    font-weight: 700;
    margin-top: 8px;
}

.rp-project-icon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rp-project-icon-list__item a {
    align-items: center;
    background: #6FA7B4;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    min-height: 20px;
    padding: 0 6px;
    text-decoration: none;
}

.rp-project-icon-list__item a:hover,
.rp-project-icon-list__item a:focus {
    background: #6FA7B4;
    color: #fff;
    text-decoration: none;
}

.rp-project-icon-list__icon {
    display: none;
}

.rp-lightbox {
    align-items: center;
    background: rgba(15, 23, 42, .88);
    cursor: zoom-out;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 999999;
}

.rp-lightbox img {
    max-height: 92vh;
    max-width: 92vw;
}

@media (max-width: 900px) {
    .rp-project-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rp-project-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .rp-project-gallery,
    .rp-project-archive-grid {
        grid-template-columns: 1fr;
    }
}
