.wbn-advanced-card-group {
    &.row {
        --bs-gutter-x: 2rem;
        --bs-gutter-y: 2rem;
    }

    .wbn-advanced-card-title {
        color: #4A545D;
    }

    .card {
        --bs-card-border-width: 0;
        --bs-card-spacer-y: 3rem;
        --bs-card-spacer-x: 3rem;
        box-shadow: 0 8px 32px 0 rgba(11, 14, 17, 0.10);
    }

    .card-img-top {
        object-fit: cover;
        height: 100%;
    }

    .wbn-advanced-card-actions {
        padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
    }

    .card-body + .wbn-advanced-card-actions {
        padding-top: 0;
    }

    /* Hover effect: the image (text cards only) and the actions are revealed on hover or keyboard focus. */
    .wbn-advanced-card--hover {
        .wbn-advanced-card-hover-image,
        .wbn-advanced-card-actions {
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
        }

        /* Without hover (touch devices), text cards keep the always visible actions in the flow below the text. */
        .wbn-advanced-card-actions {
            position: relative;
            z-index: 1;
        }

        /*
         * The actions are overlaid at the bottom of the card, so they do not make it taller:
         * - image-only cards, as there is no text to push the actions down
         * - all cards on devices that can hover, as the image covers the text while the actions are visible
         */
        .card-img-top + .wbn-advanced-card-actions {
            position: absolute;
            bottom: 0;
            left: 0;
        }

        @media (hover: hover) {
            .wbn-advanced-card-actions {
                position: absolute;
                bottom: 0;
                left: 0;
            }
        }

        &:hover,
        &:focus-within {
            .wbn-advanced-card-hover-image,
            .wbn-advanced-card-actions {
                opacity: 1;
            }
        }
    }

    /* Touch devices cannot hover, so the actions stay visible there. */
    @media (hover: none) {
        .wbn-advanced-card--hover .wbn-advanced-card-actions {
            opacity: 1;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .wbn-advanced-card--hover .wbn-advanced-card-hover-image,
        .wbn-advanced-card--hover .wbn-advanced-card-actions {
            transition: none;
        }
    }
}
