.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;
    border-radius: var(--rp-gallery-radius, 12px);
    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);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    touch-action: pan-y;
    z-index: 999999;
}

.rp-lightbox__stage {
    align-items: center;
    display: flex;
    justify-content: center;
    max-height: 92vh;
    max-width: 92vw;
}

.rp-lightbox img {
    border-radius: var(--rp-gallery-radius, 12px);
    max-height: 88vh;
    max-width: 88vw;
    object-fit: contain;
    user-select: none;
}

.rp-lightbox__nav,
.rp-lightbox__close {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 26px;
    height: 48px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: fixed;
    transition: background .15s ease;
    width: 48px;
    z-index: 2;
}

.rp-lightbox__nav:hover,
.rp-lightbox__nav:focus,
.rp-lightbox__close:hover,
.rp-lightbox__close:focus {
    background: rgba(255, 255, 255, .28);
    color: #fff;
    outline: none;
}

.rp-lightbox__nav--prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.rp-lightbox__nav--next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.rp-lightbox__close {
    font-size: 30px;
    right: 16px;
    top: 16px;
}

.rp-lightbox__counter {
    bottom: 18px;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    font-weight: 600;
    left: 50%;
    letter-spacing: .04em;
    position: fixed;
    transform: translateX(-50%);
    z-index: 2;
}

@media (max-width: 600px) {
    .rp-lightbox__nav,
    .rp-lightbox__close {
        font-size: 22px;
        height: 40px;
        width: 40px;
    }

    .rp-lightbox__nav--prev {
        left: 8px;
    }

    .rp-lightbox__nav--next {
        right: 8px;
    }
}

@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;
    }
}
