/* Our Recent Projects – card grid (one row, cards match the Elementor design)
   No forced responsive layout: Elementor controls the width/breakpoints.
   Breakpoints: 991px = 2 columns, 767px and 480px = 1 column (override with columns_tablet / columns_mobile in shortcode). */
.orp-grid {
    display: grid;
    grid-template-columns: repeat(var(--orp-cols, 3), minmax(0, 1fr));
    gap: 20px;
    font-family: 'Manrope', sans-serif;
    width: 100%;
    height: 427px;              /* Desktop: fixed height as before */
    align-items: stretch;
}

.orp-card {
    position: relative;
    display: block;
    min-height: var(--orp-height, 427px);
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #2b2b2b;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}

.orp-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.orp-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.orp-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 0 20px 17px;
}

.orp-title {
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    font-family: Manrope;
    letter-spacing: 0px;
}

.orp-desc {
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: Manrope;
    letter-spacing: 0px;
}

.orp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
}

.orp-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px !important;
    font-family: Manrope;
    font-weight: 600;
    letter-spacing: 0px;
}

.orp-pin {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
}

.orp-loc {
    text-align: right;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0px;
}

.orp-empty {
    font-family: 'Manrope', sans-serif;
}

/* 991px and below – tablet: 2 cards on top, 1 below */
@media (max-width:991px) {
    .orp-grid {
        grid-template-columns: repeat(var(--orp-cols-tablet, 2), minmax(0, 1fr));
        height: auto;           /* grid grows with the cards, no overlap */
    }

    .orp-card {
        min-height: 418px;
        height: auto;
        border-radius: 20px;
    }

    .orp-content {
        padding: 0 20px 30px;
    }

    .orp-title {
        font-size: 21px;
        line-height: 1.5;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .orp-desc {
        font-size: 15px;
        line-height: 1.6;
    }

    .orp-footer {
        font-size: 14px;
        line-height: 1.2;
        margin-top: 44px;
    }
}

/* 767px and below – 1 card per row */
@media (max-width:767px) {
    .orp-grid {
        grid-template-columns: repeat(var(--orp-cols-mobile, 1), minmax(0, 1fr));
        height: auto;
    }

    .orp-card {
        min-height: 570px;
        height: auto;
        border-radius: 20px;
    }

    .orp-content {
        padding: 0 10px 22px;
    }

    .orp-title {
        font-size: 20px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .orp-desc {
        font-size: 15px;
        line-height: 1.7;
    }

    .orp-footer {
        font-size: 15px;
        margin-top: 24px;
    }
}

/* 480px and below – small mobile: 1 card per row */
@media (max-width:480px) {
    .orp-grid {
        grid-template-columns: repeat(var(--orp-cols-mobile, 1), minmax(0, 1fr));
        gap: 16px;
        height: auto;
    }

    .orp-card {
        min-height: 418px;
        height: auto;
        border-radius: 20px;
    }

    .orp-content {
        padding: 0 20px 30px;
    }

    .orp-title {
        font-size: 21px;
        line-height: 1.5;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .orp-desc {
        font-size: 15px;
        line-height: 1.6;
    }

    .orp-footer {
        font-size: 14px;
        line-height: 1.2;
        margin-top: 44px;
    }
}