/* On a single post the block follows the article, so it carries the default
   section spacing above it as well as below. */
/* body. only to outweigh the global section-spacing rule in style.css */
body.single-post .block-featured-posts {
    margin-block-start: clamp(96px, 9.1vw + 60px, 192px);
}

/* Slides per view for this block only — the global defaults stay put */
.gsap-slider.block-featured-posts__slider {
    --slider-spv-desktop: 2.5;
    --slider-spv-tablet: 2.25;
    --slider-spv-mobile: 1.15;
}

/* The header sits at the same measure as the slides it belongs to. The slides
   take theirs from --slider-measure, which the breakpoint below already
   handles, so only the header needs saying twice. */
.block-featured-posts__slider .gsap-slider__header {
    width: 83%;
}

@media (max-width: 1049px) {
    .block-featured-posts__slider .gsap-slider__header {
        width: 100%;
    }
}

/* ==========================================================================
   Block: Updates
   ========================================================================== */

.block-featured-posts__inner {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title — size, family and weight come from the theme's heading styles */
.block-featured-posts__title {
    margin: 0;
}

/* ==========================================================================
   Card grid
   ========================================================================== */

/* ==========================================================================
   Card
   ========================================================================== */

.block-featured-posts__card {
    background: var(--wp--preset--color--white);
    border-radius: var(--radius-06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.block-featured-posts__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 0;
}

.block-featured-posts__card-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
    border-radius: 10px;
}

/* Card image */
.block-featured-posts__card-image {
    position: relative;
    /* Flex items default to min-height:auto, and the image's intrinsic height
       becomes that minimum — which overrides the aspect ratio below. */
    min-height: 0;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    flex-shrink: 0;
}

/* Only where there is a photo — the placeholder colour needs no scrim */
.block-featured-posts__card-image:has(img)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.48) 100%);
    pointer-events: none;
}

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

/* Category badge */
.block-featured-posts__card-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    /* Over a photo. On a placeholder, style.css tints it to match the icon. */
    color: var(--wp--preset--color--helder-blauw-licht);
}

/* Card content */
.block-featured-posts__card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 40px 24px 40px;
    text-align: center;
}

/* Card title */
.block-featured-posts__card-title {
    margin: 0 0 12px;
}

/* Card meta (event-type cards) */
.block-featured-posts__card-meta {
    display: flex;
    align-items: center;
    gap: 10px 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.block-featured-posts__card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.block-featured-posts__card-meta-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Card button */
/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    }

