/* Patient Section block styles.
   Extracted from template-parts/blocks/patient_section.php — DO NOT redefine inline.
   Loaded by lucern_block_assets('patient_section') from the block template. */

/* Button CTA wrapper — centered below slider */
.patient-stories__cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: var(--size-9);
}

/* Homepage circle component: at desktop the JS in patient_section.php
   relocates the .patient-stories__cta-wrapper inside .patient-stories__intro
   (gets a `--inline` modifier on both elements). The intro then becomes a
   flex row with the description text on the left and the CTA pushed to
   the right. Mobile/tablet leaves both elements in their original DOM
   positions and uses the existing in-slider mobile CTA. */
@media (min-width: 998px) {
    .home .section-patient-stories--circle .patient-stories__intro--has-inline-cta {
        display: flex;
        align-items: start;
        gap: var(--size-13);
    }

    .home .section-patient-stories--circle .patient-stories__intro--has-inline-cta > :first-child {
        flex: 1;
    }

    .home .section-patient-stories--circle .patient-stories__cta-wrapper--inline {
        margin-top: 0;
        margin-left: auto;
        flex-shrink: 0;
        justify-content: flex-end;
    }
}

/* SLIDER CORE — required for scrolling + snapping */
.patient-stories--slider {
    position: relative;
    padding-top:var(--size-11);
}

/* the element that scrolls horizontally */
.patient-stories__track {
    display: flex;
    align-items: start;
    gap: 5px;
    overflow-x: auto;
    scroll-behavior: smooth;

    /* scroll snapping */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding-bottom: 10px;

    /* hide scrollbar but keep scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.patient-stories__track::-webkit-scrollbar {
    display: none;
}

/* each slide = a snap point */
.patient-story-card[data-slide] {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

/* fallback when slider disabled */
.patient-stories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

/* arrows */
.patient-stories__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
}

.patient-stories__nav--prev {
    display: none;

    @media(width >= 998px) {
        left: -63px;
    }
}
.patient-stories__nav--next {
    display: none;

    @media(width >= 998px) {
        right: -63px;
    }
}

/* Pagination dots */
.patient-stories__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 0;
}

.patient-stories__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E6E0CE;
    cursor: pointer;
    transition: all 0.3s ease;
}

.patient-stories__dot.active {
    background: var(--clr-primary-600);
    transform: scale(1.2);
}

/* Hide dots on desktop */
@media (min-width: 998px) {
    .patient-stories__dots {
        display: none;
    }
}

.patient-stories__intro {
    align-self: start;
    justify-self: end;
}


/* overlay variant (Patientenstories) */
.patient-story-card--overlay .patient-story-card__image {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
}

.patient-story-card--overlay .patient-story-card__image img {
    width: 100%;
    height: 100%;
    min-height: 555px;
    object-fit: cover;
    display: block;

    @media(width <= 998px) {
        min-height: 200px;
        height: 200px;
        border-radius: var(--radius-md);
    }
}

.patient-story-card__overlay-top,
.patient-story-card__overlay-bottom {
    position: absolute;
    left: 0;
    right: 0;
    padding: 18px 22px;
    color: #fff;
    pointer-events: none;
}

.patient-story-card__overlay-top {
    top: 0;
    background: transparent linear-gradient(180deg, #333333 0%, #54545400 100%) 0% 0% no-repeat padding-box;
    min-height: 150px;
}

.patient-story-card__overlay-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
    min-height: 150px;
    display: grid;
    align-content: end;
    justify-content: start;
}



/* PLAY BUTTON (overlay design) — always visible when video exists */
.patient-story-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #555756d1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    scale: 1;
    pointer-events: auto;
    transition: opacity .2s ease, scale .2s ease;
    z-index: 5;
}

.patient-story-card__play-icon {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #fff;
}


/* ==========================================
   Circle variant (Celebrities) - WITH ALIGNMENT FIX
   ========================================== */

.section-patient-stories--circle .patient-stories__track {
    align-items: stretch;
    gap: 74px;

    @media(width <= 998px) {
        gap: 30px;
        margin-right: calc(-1 * var(--size-4, 1rem));
    }
}

.patient-story-card--circle {
    display: flex;
    flex-direction: column;
    gap: var(--size-8);
}

.patient-story-card--circle .patient-story-card__image {
    width: 260px;
    height: 260px;
    margin: 0 auto 24px;
    position: relative;
    flex-shrink: 0;
}

.patient-story-card--circle .patient-story-card__image img:not(.patient-story-card__badge img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.patient-story-card__badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    background: #1f3b64;
    color: #E6E0CE;
    font-size: var(--fm-base);
    font-family: var(--font-heading);
    text-transform: uppercase;
    /* letter-spacing: .14em; */
    font-weight: 600;
    line-height: var(--lh-normal);
    padding: 13px 13px 20px 13px;
    text-align: center;
    z-index: 1;
    display: inline-block;
    clip-path: polygon(0 0, 100% 0%, 100% 100%, 50% 80%, 0 100%);
}

.patient-story-card--circle .patient-story-card__content {
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

/* Name + subline wrapper (circle cards) — desktop only.
   Mobile (≤981px) is already handled by the .section-patient-stories--circle
   rules further down; we only need overrides for desktop here.
   - align-self: start  → wrapper aligns to the left of the centered flex column
   - padding-left: 0 !important on the name → overrides padding-inline: 10px
     declared LATER in source order at the same specificity */
@media (min-width: 998px) {
    .patient-story-card__name-group {
        align-self: start;
    }

    .patient-story-card__name-group .patient-story-card__name {
        padding-left: 0 !important;
    }
}

.section-patient-stories--circle .patient-story-card__name {
    font: normal normal 500 20px/24px 'Montserrat', sans-serif;
    text-transform: uppercase;
    margin-bottom: 6px;
    width: fit-content;
    color: var(--clr-neutral-900);
    padding-inline: 10px;
}

.patient-story-card--circle .patient-story-card__name::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--clr-neutral-900);
    margin: .5rem 0 !important;
}

.section-patient-stories--circle .patient-story-card__subline {
    font: normal normal normal 18px/32px 'Open Sans', sans-serif;
    margin: 0px 0 18px;
    color: var(--clr-neutral-900);
}
    padding-inline: 10px;
}

.section-patient-stories--circle .patient-story-card__subline {
    text-align: center;
}

@media (max-width: 768px) {
    .patient-stories--slider {
        padding-top: 0;
    }

    .home .patient-stories--slider {
        padding-top: var(--size-11);
    }
}

/* Mobile styles for circle design */
@media (max-width: 981px) {
    .section-patient-stories--circle .patient-story-card__name {
        font: normal normal 500 16px/20px 'Montserrat', sans-serif;
        padding-left: 0;
        padding-right: 0;
        align-self: start;
    }

    .section-patient-stories--circle .patient-story-card__subline {
        font: normal normal normal 16px/25px 'Open Sans', sans-serif;
        align-self: start;
    }

    .section-patient-stories--circle .patient-story-card__button {
        min-width: 143px;
        flex-grow: 0;
        margin-right: auto;
        width: auto;
    }

    /* Equal-height cards so the CTA button lines up across the row: stretch
       every card to the tallest, let the content grow to fill, and the button
       (already margin-top:auto) drops to the bottom of each card. */
    .section-patient-stories--circle .patient-stories__track {
        align-items: stretch;
    }

    .patient-story-card--circle .patient-story-card__content {
        flex-grow: 1;
        margin: 0;
        align-items: start;
    }

    .patient-story-card--circle .patient-story-card__image {
        margin: 0 0 24px 0;
    }
}

.section-patient-stories--circle .patient-story-card__quote {
    font: normal normal 300 26px/31px 'Montserrat', sans-serif;
    margin-bottom: 24px;
    color: var(--clr-neutral-900);
    flex-grow: 1;
}

@media (max-width: 981px) {
    .section-patient-stories--circle .patient-story-card__quote {
        font: normal normal 300 19px/23px 'Montserrat', sans-serif;
    }
}

.patient-story-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    align-self: start;
    min-width: 157px;
}

/* YouTube thumbnail in circle design — match the circle shape */
.patient-story-card--circle .patient-story-card__image img {
    border-radius: 50%;
}

/* Fallback blue background for transparent PNGs */
.patient-story-card--circle .patient-story-card__image img:not(.patient-story-card__badge img) {
    background: url('/wp-content/uploads/2026/03/Key_Visual_Celebrities@2x-scaled.jpg') center center / cover no-repeat #1f3b64;
    object-fit: contain;
}

.patient-stories__header {
    /* padding-bottom: var(--size-11); */
}

/* Mobile: when the header has a subtitle (celebrities pattern — h2 + subtitle
   like "CELEBRITIES" / "Celebreties vertrauen der Lucerne Clinic"), give the
   header extra bottom padding so the subtitle doesn't sit flush against the
   slider below. Mirrors the earlier ":has(.patient-stories__subtitle)" condition
   used for the brust margin rule. */
@media (max-width: 768px) {
    .patient-stories__header:has(.patient-stories__subtitle) {
        padding-bottom: var(--size-11);
    }
}

.section-patient-stories--overlay .patient-stories__header {
    padding-bottom: 28px;
}

.patient-stories__subtitle {
    font: normal normal 500 28px/34px 'Montserrat', sans-serif;
    color: var(--clr-text-primary);
    margin: var(--size-3) 0 0;
}

@media (max-width: 768px) {
    .patient-stories__subtitle {
        font-size: 22px;
        line-height: 25px;
    }
}

.single-celebrities .patient-stories__header h2 {
    font: normal normal 500 28px/34px var(--font-heading);
    text-transform: none;
}

.single-celebrities .patient-stories__header h2::before,
.single-celebrities .patient-stories__header h2::after {
    display: none;
}

@media (max-width: 768px) {
    .single-celebrities .patient-stories__header h2 {
        font-size: 22px;
        line-height: 25px;
    }
}

/* First patient-stories section on the Brust treatment archive — match the
   28/34 desktop → 22/25 mobile treatment used on single-celebrities pages.
   Excludes overlay variant and page 36744. */
.archive-treatment--brust:not(.postid-36744) .section-patient-stories:not(.section-patient-stories--overlay):not(.archive-treatment--brust .section-patient-stories ~ .section-patient-stories) .patient-stories__header h2 {
    font: normal normal 500 28px/34px var(--font-heading);
    text-transform: none;
}

.archive-treatment--brust:not(.postid-36744) .section-patient-stories:not(.section-patient-stories--overlay):not(.archive-treatment--brust .section-patient-stories ~ .section-patient-stories) .patient-stories__header h2::before,
.archive-treatment--brust:not(.postid-36744) .section-patient-stories:not(.section-patient-stories--overlay):not(.archive-treatment--brust .section-patient-stories ~ .section-patient-stories) .patient-stories__header h2::after {
    display: none;
}

@media (max-width: 768px) {
    .archive-treatment--brust:not(.postid-36744) .section-patient-stories:not(.section-patient-stories--overlay):not(.archive-treatment--brust .section-patient-stories ~ .section-patient-stories) .patient-stories__header h2 {
        font-size: 22px;
        line-height: 25px;
    }
}

/* Brust archive + single-brust desktop: drop the h1 margin on the patient-stories
   title and the wrapper's bottom padding so the title sits flush above the slider.
   Mobile keeps its own spacing rules. */
@media (min-width: 769px) {
    /* Only collapse the h2 bottom margin when there's NO subtitle below it.
       When a subtitle is present, the h2 keeps its default margin so the two
       lines don't touch. Uses :has() so the rule reacts automatically to the
       presence/absence of .patient-stories__subtitle in the header. */
    .post-type-archive-brust .patient-stories__header:not(:has(.patient-stories__subtitle)) h2,
    .single-brust:not(.postid-36981) .patient-stories__header:not(:has(.patient-stories__subtitle)) h2 {
        margin-bottom: 0;
    }

    .post-type-archive-brust .patient-stories__header,
    .single-brust:not(.postid-36981) .patient-stories__header {
        padding-bottom: 0;
    }
}

.patient-stories__button {
    align-self: start;
    justify-self: end;
}

.patient-story-card__title {
    font-size: var(--fs-base);
    line-height: var(--size-6);
    font-weight: var(--fw-normal);
}

.patient-story-card__category {
    font-size: var(--fs-lg);
    line-height: var(--size-6);
    font-weight: var(--fw-semibold);
    font-family: var(--font-heading);
    color: var(--clr-primary-500);
}

/* VIDEO MODAL */
.patient-video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.patient-video-modal.is-open {
    display: flex;
}

.patient-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.patient-video-modal__dialog {
    position: relative;
    background: #000;
    max-width: 960px;
    width: 90%;
    aspect-ratio: 16 / 9;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

.patient-video-modal__content iframe,
.patient-video-modal__content embed,
.patient-video-modal__content {
    width: 100%;
    height: 100%;
}

/* Instagram embeds are portrait — center a 9:16 frame inside the 16:9
   dialog instead of stretching it; the /embed/ page letterboxes 4:5
   posts itself. The new-tab link is the escape hatch for posts whose
   embedding is disabled or age-restricted. */
.patient-video-modal__content .ig-embed {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.patient-video-modal__content .ig-embed iframe {
    height: 100%;
    width: auto;
    aspect-ratio: 9 / 16;
    max-width: 100%;
    border: 0;
}

.patient-video-modal__content .ig-embed__link {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.patient-video-modal__content .ig-embed__link:hover,
.patient-video-modal__content .ig-embed__link:focus {
    background: rgba(255, 255, 255, .3);
    color: #fff;
}

.patient-video-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 2;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

body.is-video-open {
    overflow: hidden;
}


/* desktop slider tweak */
@media (max-width: 1024px) {
    .patient-story-card[data-slide] {
        flex-basis: 70vw;
    }
}

/* buttons: desktop vs mobile */
.patient-stories__button--mobile {
    display: none;
}
.patient-stories__cta-mobile-wrapper {
    margin-top: 45px;
    text-align: center;
}

/* --- MOBILE LAYOUT FOR PATIENT STORY + PATIENT CHECK (overlay) --- */
@media (max-width: 768px) {

    .section-patient-stories.section-patient-stories--overlay {
        overflow: visible;
    }

    .patient-story-card--overlay .patient-story-card__image {
        overflow: visible;
    }

    .section-patient-stories--overlay .patient-stories__track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0;
        margin-inline: calc(-1 * var(--size-4, 1rem));
    }

    /* Archive pages (any post-type-archive-*), single-brust, single-korper
       AND single-achsel: drop the negative outer margin so the slider track
       aligns flush with the page container instead of bleeding to the edges. */
    [class*="post-type-archive"] .section-patient-stories--overlay .patient-stories__track,
    [class*="single-brust"] .section-patient-stories--overlay .patient-stories__track,
    [class*="single-korper"] .section-patient-stories--overlay .patient-stories__track,
    [class*="single-achsel"] .section-patient-stories--overlay .patient-stories__track {
        margin-inline: 0;
    }

    .section-patient-stories--overlay .patient-story-card[data-slide] {
        flex: 0 0 320px;
        min-height: 500px;
        height: auto;
        margin-bottom: 0;
    }

    .section-patient-stories--overlay .patient-story-card[data-slide] .patient-story-card__image img {
        min-height: 505px;
        height: 505px;
        width: 320px;
        object-fit: cover;
        border-radius: 12px;
    }

    /* Single story: card and image fill the full container width */
    .section-patient-stories--overlay.section-patient-stories--single .patient-story-card[data-slide] {
        flex: 0 0 100%;
        width: 100%;
    }

    .section-patient-stories--overlay.section-patient-stories--single .patient-story-card[data-slide] .patient-story-card__image,
    .section-patient-stories--overlay.section-patient-stories--single .patient-story-card[data-slide] .patient-story-card__image img {
        width: 100%;
    }

    .section-patient-stories--overlay .patient-stories__nav {
        display: none;
    }

    .section-patient-stories--overlay .patient-story-card__image {
        border-radius: 18px;
    }

    .patient-story-card--overlay .patient-story-card__image img {
        min-height: 130px;
        height: 130px;
    }

    .section-patient-stories--overlay .patient-story-card__overlay-top,
    .section-patient-stories--overlay .patient-story-card__overlay-bottom {
        position: static;
        background: none;
        padding: 8px 0 0;
        min-height: 0;
        color: #333;
        pointer-events: auto;
    }

    /* Mobile track margin - only for overlay design */
    /* .section-patient-stories--overlay .patient-stories--slider .patient-stories__track {
        margin-inline: calc(-1 * var(--container-padding, 1rem));
    } */

    /* Mobile overlay padding for circle design */
    .section-patient-stories--circle .patient-story-card__overlay-top,
    .section-patient-stories--circle .patient-story-card__overlay-bottom {
        padding-inline: 23px;
    }

    /* Mobile overlay padding for overlay design */
    .section-patient-stories--overlay .patient-story-card__overlay-top,
    .section-patient-stories--overlay .patient-story-card__overlay-bottom {
        padding-inline: 31px;
    }

    /* Hide overlay top on mobile */
    .patient-story-card__overlay-top {
        display: none;
    }

    .section-patient-stories--overlay .patient-story-card__overlay-top {
        margin-top: 8px;
    }

    .section-patient-stories--overlay .patient-story-card__overlay-bottom {
        margin-bottom: 8px;
        justify-content: flex-start;
    }

    .section-patient-stories--overlay .patient-story-card__title {
        font: normal normal normal 16px/23px 'Open Sans', sans-serif;
    }

    .section-patient-stories--overlay .patient-story-card__category {
        display: block;
        margin-bottom: 4px;
    }

    .section-patient-stories--overlay .patient-stories__button--desktop,
    .section-patient-stories--overlay .patient-stories__cta-wrapper {
        display: none;
    }
    .section-patient-stories--overlay .patient-stories__button--mobile {
        display: inline-flex;
    }

    /* Mobile play button styles — overlay only */
    .section-patient-stories--overlay .patient-story-card__play {
        width: 100px;
        height: 100px;
        top: 50%;
        background: #333333 0% 0% no-repeat padding-box;
        opacity: .8;
    }

    .section-patient-stories--overlay .patient-story-card__play-icon {
        border-top: 20px solid transparent;
        border-bottom: 20px solid transparent;
        border-left: 28px solid #fff;
    }
}


/* SHOW TITLE ON HOVER (DESKTOP ONLY) */
.patient-story-card--overlay .patient-story-card__overlay-bottom {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .patient-story-card--overlay .patient-story-card__image:hover .patient-story-card__overlay-bottom {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .section-patient-stories--overlay .patient-story-card__overlay-bottom {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto;
    }
}


/* ==========================================================================
   SLIDES TO SHOW VARIANTS
   ========================================================================== */

/* ----- 5 slides (default) ----- */
.patient-stories--slides-5 .patient-story-card[data-slide] {
    flex: 0 0 calc((100% - 20px) / 5);
}

@media (max-width: 1200px) {
    .patient-stories--slides-5 .patient-story-card[data-slide] {
        flex: 0 0 calc((100% - 15px) / 4);
    }
}

@media (max-width: 998px) {
    .patient-stories--slides-5 .patient-story-card[data-slide] {
        flex: 0 0 calc((100% - 10px) / 3);
    }
}

@media (max-width: 768px) {
    .patient-stories--slides-5 .patient-story-card[data-slide] {
        flex: 0 0 260px;
    }
}

/* ----- 4 slides ----- */
.patient-stories--slides-4 .patient-story-card[data-slide] {
    flex: 0 0 calc((100% - 15px) / 4);
}

@media (max-width: 998px) {
    .patient-stories--slides-4 .patient-story-card[data-slide] {
        flex: 0 0 calc((100% - 10px) / 3);
    }
}

@media (max-width: 768px) {
    .patient-stories--slides-4 .patient-story-card[data-slide] {
        flex: 0 0 260px;
    }
}

/* ----- 3 slides ----- */
.patient-stories--slides-3 .patient-story-card[data-slide] {
    flex: 0 0 calc((100% - 10px) / 3);
}

@media (max-width: 768px) {
    .patient-stories--slides-3 .patient-story-card[data-slide] {
        flex: 0 0 260px;
    }
}

/* ----- 2 slides ----- */
.patient-stories--slides-2 .patient-story-card[data-slide] {
    flex: 0 0 calc((100% - 5px) / 2);
}

@media (max-width: 768px) {
    .patient-stories--slides-2 .patient-story-card[data-slide] {
        flex: 0 0 80vw;
    }
}

/* ----- 1 slide (centered, large) ----- */
.patient-stories--slides-1 .patient-stories__track {
    justify-content: flex-start;
    overflow: hidden; /* Hide other slides */
}

.patient-stories--slides-1 .patient-story-card[data-slide] {
    flex: 0 0 100%;
    min-width: 100%;
    transition: transform 0.4s ease;
}

.patient-stories--slides-1 .patient-story-card--overlay .patient-story-card__image img {
    min-height: 450px;
    max-height: 550px;
    object-fit: cover;

    @media (max-width: 768px) {
        min-height: 300px;
        max-height: 400px;
    }
}

/* Mobile: when slides-1 layout has multiple stories, show a peek of the next slide.
   Scoped to overlay design + multi-story (NOT --single) so it never affects the
   single-story full-width case or the circle design. */
@media (max-width: 768px) {
    .section-patient-stories--overlay:not(.section-patient-stories--single) .patient-stories--slides-1 .patient-stories__track {
        overflow-x: auto;
    }

    .section-patient-stories--overlay:not(.section-patient-stories--single) .patient-stories--slides-1 .patient-story-card[data-slide] {
        flex: 0 0 85vw;
        min-width: 85vw;
    }

    .section-patient-stories--overlay:not(.section-patient-stories--single) .patient-stories--slides-1 .patient-story-card[data-slide] .patient-story-card__image img {
        width: 100%;
    }
}

/* Arrows positioning for single slide */
.patient-stories--slides-1 .patient-stories__nav--prev {
    left: 0;

    @media (width >= 998px) {
        left: -80px;
    }
}

.patient-stories--slides-1 .patient-stories__nav--next {
    right: 0;

    @media (width >= 998px) {
        right: -80px;
    }
}

/* Single slide: always show title overlay */
.patient-stories--slides-1 .patient-story-card--overlay .patient-story-card__overlay-bottom {
    opacity: 1;
    transform: none;
}

/* ----- 3.5 slides (peek effect — 3 full + partial 4th) ----- */
.patient-stories--slides-3_5 .patient-story-card[data-slide] {
    flex: 0 0 calc((100% - 10px) / 3.5);
}

@media (max-width: 998px) {
    .patient-stories--slides-3_5 .patient-story-card[data-slide] {
        flex: 0 0 calc((100% - 5px) / 2.5);
    }
}

@media (max-width: 768px) {
    .patient-stories--slides-3_5 .patient-story-card[data-slide] {
        flex: 0 0 260px;
    }
}


/* ==========================================================================
   CELEBRITY CONTENT AREA (below cards, circle variant only)
   ========================================================================== */

.patient-stories__celebrity-content {
    margin-bottom: var(--size-12, 48px);
    /* max-width: 860px; */
}

.patient-stories__celebrity-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3, 28px);
    font-weight: var(--fw-medium, 500);
    line-height: var(--lh-normal, 34px);
    color: var(--clr-neutral-800);
    margin-bottom: var(--size-6, 24px);
}

.patient-stories__celebrity-desc {
    font-size: var(--fs-normal, 16px);
    line-height: 1.6;
    color: var(--clr-neutral-900);
    margin-bottom: var(--size-8, 32px);
}

.patient-stories__celebrity-desc p:last-child {
    margin-bottom: 0;
}

.patient-stories__celebrity-video {
    position: relative;
    margin-bottom: var(--size-8, 32px);
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
}

.patient-stories__celebrity-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
}

.patient-stories__celebrity-bottom {
    font-size: var(--fs-normal, 16px);
    line-height: 1.6;
    color: var(--clr-neutral-900);
}

.patient-stories__celebrity-bottom p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .patient-stories__celebrity-content {
        margin-bottom: var(--size-8, 32px);
    }

    .patient-stories__celebrity-title {
        font-size: var(--fs-lg, 22px);
    }
}

/* Tablet & below: full-width buttons on the section-level CTA wrappers
   (both inline and mobile-only). The circle-style card button stays
   content-sized — it's a card-internal CTA, not a section CTA. */
@media (max-width: 1179px) {
    .section-patient-stories--circle .patient-story-card__button {
        width: auto;
    }

    .patient-stories__cta-wrapper .btn,
    .patient-stories__cta-mobile-wrapper .btn {
        width: 100%;
    }
}

/* Mobile: contain horizontal overflow on the homepage (page-id-10) overlay
   patient-stories section so the off-screen slider track doesn't trigger
   a horizontal scrollbar on the page. */
@media (max-width: 768px) {
    .page-id-10 .section-patient-stories.section-patient-stories--overlay {
        overflow: hidden;
    }
}

/* Patient stories header: when the #patientenstorys title has no description
   (no .patient-stories__subtitle or .patient-stories__intro after it) drop
   its margin-bottom so it doesn't leave a gap above the slider. */
.patient-stories__header
    #patientenstorys:not(:has(~ :is(.patient-stories__subtitle, .patient-stories__intro))) {
    margin-bottom: 0;
}
