.pld-project-grid,
.pld-project-image-gallery {
    display: grid;
    gap: 28px;
}

.pld-project-columns-1 { grid-template-columns: 1fr; }
.pld-project-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pld-project-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pld-project-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pld-project-card {
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.pld-project-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(0,0,0,.05);
}

.pld-project-card-image img,
.pld-project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pld-project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 24px;
    font-size: 15px;
    opacity: .7;
}

.pld-project-card-content {
    padding: 22px;
}

.pld-project-card-meta {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .72;
}

.pld-project-card h3 {
    margin: 0 0 10px;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.2;
}

.pld-project-card h3 a,
.pld-project-link,
.pld-project-cta-button {
    text-decoration: none;
}

.pld-project-scope {
    margin: 0 0 10px;
    font-weight: 600;
}

.pld-project-excerpt {
    margin: 0 0 18px;
}

.pld-project-link,
.pld-project-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.pld-project-link::after {
    content: '→';
}

.pld-project-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.pld-project-meta-list li {
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 10px;
    background: rgba(0,0,0,.02);
}

.pld-project-image-gallery .pld-project-gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
}

.pld-project-cta {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(0,0,0,.035);
}

.pld-project-cta h3 {
    margin: 0 0 10px;
}

.pld-project-cta p {
    margin: 0 0 18px;
}

@media (max-width: 1024px) {
    .pld-project-columns-3,
    .pld-project-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .pld-project-columns-2,
    .pld-project-columns-3,
    .pld-project-columns-4 {
        grid-template-columns: 1fr;
    }

    .pld-project-grid,
    .pld-project-image-gallery {
        gap: 22px;
    }
}

/* v1.4 Elementor widget helpers */
.pld-before-after-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}
.pld-before-after-panel h4 {
    margin: 0 0 12px;
    font-size: 1rem;
}
.pld-before-after-panel .pld-project-image-gallery {
    margin: 0;
}
@media (max-width: 767px) {
    .pld-before-after-wrap {
        grid-template-columns: 1fr;
    }
}

/* v1.5.3 gallery spacing controls */
.pld-project-image-gallery {
    column-gap: var(--pld-gallery-gap, 28px);
    row-gap: var(--pld-gallery-row-gap, var(--pld-gallery-gap, 28px));
}
.pld-project-image-gallery .pld-project-gallery-item {
    border-radius: var(--pld-gallery-radius, 12px);
}
.pld-project-image-gallery .pld-project-gallery-item img {
    object-fit: var(--pld-gallery-fit, cover);
}

/* v1.5.4 gallery crop / height controls */
.pld-project-image-gallery .pld-project-gallery-item {
    aspect-ratio: var(--pld-gallery-aspect, auto);
    height: var(--pld-gallery-height, auto);
}
.pld-project-image-gallery .pld-project-gallery-item img {
    object-position: var(--pld-gallery-position, center center);
}


/* v1.5.6 gallery natural/no-crop fix */
.pld-project-image-gallery.pld-gallery-natural .pld-project-gallery-item {
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
    line-height: 0;
}
.pld-project-image-gallery.pld-gallery-natural .pld-project-gallery-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.pld-project-image-gallery.pld-gallery-framed .pld-project-gallery-item {
    overflow: hidden;
    line-height: 0;
}
.pld-project-image-gallery.pld-gallery-framed .pld-project-gallery-item img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
}

/* v1.5.6 default no-crop gallery behavior */
.pld-gallery-natural .pld-project-gallery-item,
.pld-gallery-natural .pld-cpt-gallery-item,
.pld-gallery-natural .pld-pro-gallery-item {
    aspect-ratio: auto;
    height: auto;
    line-height: 0;
}
.pld-gallery-natural img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
