.gs-acf-cards {
    display: grid;
    grid-template-columns: repeat(var(--gs-acf-cards-columns, 3), minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.gs-acf-cards > .gs-acf-cards__card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    min-height: 520px;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0;
    padding: 24px;
    border-radius: 18px;
    background: #f7f7f7;
    box-shadow: 0 8px 16px rgb(0 20 50 / 22%);
    text-align: left;
}

.gs-acf-cards__card::before {
    content: "";
    flex: 0 0 240px;
    pointer-events: none;
}

.gs-acf-cards__card > .gs-acf-cards__image {
    position: absolute;
    z-index: -2;
    inset: 0 0 auto;
    display: block;
    width: 100%;
    height: 66.6667%;
    max-width: none;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}

.gs-acf-cards__card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgb(255 255 255 / 5%) 10%, rgb(255 255 255 / 20%) 36%, rgb(255 255 255 / 90%) 60%, #fff 66.6667%);
    opacity: 1;
    pointer-events: none;
}

.gs-acf-cards__card > .gs-acf-cards__text {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #171717;
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.gs-acf-cards__text p { margin: 0 0 1em; }
.gs-acf-cards__text > :first-child { margin-top: 0; }
.gs-acf-cards__text > :last-child { margin-bottom: 0; }
.gs-acf-cards__text ul,
.gs-acf-cards__text ol { margin: 0 0 1em; padding-inline-start: 1em; }
.gs-acf-cards__text ul { list-style: disc outside; }
.gs-acf-cards__text ol { list-style: decimal outside; }
.gs-acf-cards__text li { margin: 0 0 1em; padding: 0; }
.gs-acf-cards__text li:last-child { margin-bottom: 0; }
.gs-acf-cards__text strong,
.gs-acf-cards__text b { font-weight: 700; }

.gs-acf-cards__card > .gs-acf-cards__link {
    position: absolute;
    /* Cover the image, text and padding with the same lightbox link. */
    z-index: 3;
    inset: 0;
    display: block;
    border-radius: inherit;
    cursor: zoom-in;
}

.gs-acf-cards__link:focus-visible {
    outline: 2px solid #000F9B;
    outline-offset: -4px;
}

@media (max-width: 1024px) {
    .gs-acf-cards {
        --gs-acf-cards-columns: 2;
    }
}

@media (max-width: 767px) {
    .gs-acf-cards {
        --gs-acf-cards-columns: 1;
    }
}
