/* Shared compact cards for the portfolio, services and locations. */
.wp-site-blocks .tp-project-grid.tp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
}
.tp-card-grid > .tp-project-card {
    min-width: 0;
    border-color: #d5e4e8;
}
.tp-card-grid > .tp-project-card > img,
.tp-card-grid > .tp-project-card > p > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.tp-card-grid .tp-card-body {
    padding: .8rem .9rem .4rem;
}
.tp-card-grid .tp-card-body :is(h2, h3) {
    margin: .2rem 0 .4rem;
    font-size: 1.1rem;
    line-height: 1.26;
    overflow-wrap: anywhere;
}
.tp-card-grid .tp-card-body p {
    margin: .35rem 0;
    font-size: .9rem;
    line-height: 1.4;
}
.tp-card-grid .tp-card-service {
    display: none;
}
.tp-card-grid .tp-card-body p:not([class]) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.tp-card-grid .tp-card-more {
    font-size: .9rem;
}
.tp-explorer .tp-area-results:not([hidden]) {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.tp-explorer .tp-area-results > li {
    margin: 0;
    overflow: hidden;
    border: 1px solid #d5e4e8;
    border-radius: 8px;
    background: #fff;
}
.tp-explorer .tp-area-results > li > a {
    display: grid;
    gap: .65rem;
    padding: 0 .8rem .8rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.26;
}
.tp-explorer .tp-area-results > li > a:focus-visible {
    outline-offset: -3px;
}
.tp-explorer .tp-area-results > li img {
    width: calc(100% + 1.6rem);
    max-width: none;
    margin: 0 -.8rem;
    aspect-ratio: 16 / 9;
}

.tp-explorer nav [data-tp-recent-order][hidden] {
    display: none;
}

.tp-explorer .tp-area-plot {
    height: clamp(25rem, 62vh, 38rem);
}

.tp-explorer .tp-area-results[hidden] {
    display: none;
}

.tp-explorer .tp-map-marker:focus-visible {
    outline: 3px solid #1b2529;
    outline-offset: 2px;
}

.tp-explorer .tp-map-job-links {
    display: grid;
    gap: .45rem;
    margin: .6rem 0 0;
    padding-inline-start: 1.2rem;
}

.tp-explorer .tp-map-job-links a {
    display: inline-block;
    padding-block: .2rem;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .tp-explorer .tp-area-plot {
        min-height: 20rem;
        height: clamp(20rem, 55vh, 29rem);
    }
}
