.block-cards {
    padding: 8rem 0;
    background: url(../../../assets/images/gradient-2.png);
    background-size: contain;
}


.block-cards__heading {
    text-align: center;
    margin: 0 0 3rem !important;
}

.block-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Column count chosen in the editor */
.block-cards__grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.block-cards__grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.block-cards__card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    border-radius: 10px;
    overflow: hidden;
}

.block-cards__image-link {
    display: block;
    margin: 10px 10px 0;
    border-radius: 5px;
    overflow: hidden;
}

.block-cards__image {
    margin: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.block-cards__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-cards__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.25rem 1.5rem;
}

.block-cards__title {
    font-family: var(--wp--preset--font-family--maax);
    font-size: var(--wp--preset--font-size--large);
    font-weight: 500;
    line-height: 1.14;
    margin: 0 0 0.75rem;
}

.block-cards__title a {
    color: currentColor;
    text-decoration: none;
}

.block-cards__title a:hover,
.block-cards__title a:focus-visible {
    text-decoration: none;
}

.block-cards__excerpt {
    font-size: var(--wp--preset--font-size--normal);
    line-height: 1.5;
    margin: 0 0 1.25rem;
    color: currentColor;
    opacity: 0.75;
}

.block-cards__button {
    margin-top: auto;
}

.block-cards__empty {
    font-size: var(--wp--preset--font-size--normal);
    opacity: 0.5;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Only the 4-column variant steps down here; the 3-column one is already there */
@media (max-width: 1200px) {
    .block-cards__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 960px) {
    .block-cards__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .block-cards__grid {
        grid-template-columns: 1fr;
    }
}

