.spotlight-carousel {
    --spotlight-gap: 80px;

    padding-top:    var(--pad-y-alt);
    padding-bottom: var(--pad-y-alt);
    padding-left:   0;
    padding-right:  0;
    background: var(--color-bg);
}

.spotlight-carousel__inner {
    width: 100%;
}

/* Default: panel LEFT, track RIGHT. Columns are an exact 50/50 with no row gap;
   the visual gap between them is the panel's inner padding (padding-right here,
   toward the track). DOM order is track→panel, so row-reverse puts panel left. */
.spotlight-carousel__row {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: row-reverse;
}

/* ── Track (Swiper container) ───────────────────────────────── */
/* Swiper owns the inner .swiper-wrapper (the flex track) and its transform;
   this element is just the 50%-wide clipping viewport for the slides. */
.spotlight-carousel__track {
    flex: 0 0 50%;
    min-width: 0;
    overflow: hidden;
}

.spotlight-carousel__item {
    display: flex;
    width: 490px; /* fixed slide width — Swiper runs slidesPerView:'auto' */
    height: auto;
    flex-direction: column;
    gap: 20px;
}

/* The reverse track runs in RTL (Swiper) so the cards justify to the panel side.
   Reset each slide's own content back to LTR/left so the text isn't right-aligned. */
.spotlight-carousel--reverse .spotlight-carousel__item {
    direction: ltr;
    text-align: left;
}

.spotlight-carousel__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.spotlight-carousel__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-carousel__item-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Date (events only) sits directly above the tag line in the same block. */
.spotlight-carousel__item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spotlight-carousel__item-date {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.spotlight-carousel__item-heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    line-height: 34px;
    color: var(--color-dark);
}

.spotlight-carousel__item-heading em {
    font-style: italic;
    color: var(--color-accent);
}

.spotlight-carousel__item-body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 26px;
    color: var(--color-dark);
    /* clamp to 3 lines, ellipsis the rest */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.spotlight-carousel__item-cta {
    align-self: flex-start;
    margin-top: 4px;
    background: var(--color-blush);
    color: black;
}

/* ── Fixed side panel ───────────────────────────────────────── */
.spotlight-carousel__panel {
    display: flex;
    flex: 0 0 50%;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* align the text to the centered site container's left edge, and hold the
       simulated gap toward the track on the inner (right) edge */
    padding-left: max(var(--pad-x), calc((100vw - var(--site-max-w)) / 2));
    padding-right: var(--spotlight-gap);
}

.spotlight-carousel__panel-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    max-width: calc(var(--site-max-w) / 2);
}

.spotlight-carousel__panel-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.spotlight-carousel__eyebrow {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: var(--color-dark);
}

.spotlight-carousel__heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 48px;
    line-height: 54px;
    color: var(--color-dark);
}

.spotlight-carousel__heading em {
    font-style: italic;
    color: var(--color-accent);
}

.spotlight-carousel__body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 26px;
    color: var(--color-dark);
    text-align: start;
}

.spotlight-carousel__body p + p {
    margin-top: 16px;
}

.spotlight-carousel__cta {
    padding: 11px 30px;
}

/* ── Nav controls ───────────────────────────────────────────── */
.spotlight-carousel__nav-wrap {
    padding-left:  var(--pad-x);
    padding-right: var(--pad-x);
}

.spotlight-carousel__nav {
    display: flex;
    align-items: center;
    margin-top: 32px;
    max-width: var(--site-max-w);
    margin-left: auto;
    margin-right: auto;
    justify-content: flex-end; /* under the track (right) */
}

/* Inner band spans half the row so the two arrows split to each end,
   sitting under the width of the 50% track. */
.spotlight-carousel__nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 50%;
    gap: 20px;
}

.spotlight-carousel__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-dark);
    transition: var(--transition);
}

.spotlight-carousel__nav-icon {
    display: block;
    width: 36px;
    height: 18px;
}

.spotlight-carousel__nav-btn--prev .spotlight-carousel__nav-icon {
    transform: rotate(180deg);
}

.spotlight-carousel__nav-btn:hover {
    opacity: 0.65;
}

.spotlight-carousel__nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ── Reverse variant — the mirror of the default: track LEFT, panel RIGHT.
   Just add class="spotlight-carousel spotlight-carousel--reverse". Desktop-only
   so it doesn't disturb the shared stacked layout on tablet/mobile. ────────── */
@media (min-width: 1025px) {
    .spotlight-carousel--reverse .spotlight-carousel__row {
        flex-direction: row; /* DOM order is track→panel, so normal row = track left */
    }

    .spotlight-carousel--reverse .spotlight-carousel__panel {
        /* gap now sits on the panel's LEFT (toward the track), text aligns to the
           container's right edge */
        padding-left: var(--spotlight-gap);
        padding-right: max(var(--pad-x), calc((100vw - var(--site-max-w)) / 2));
    }

    .spotlight-carousel--reverse .spotlight-carousel__nav {
        justify-content: flex-start; /* under the track (left) */
    }

    .spotlight-carousel--reverse .spotlight-carousel__nav-inner {
        justify-content: flex-end;
    }
}

@media (max-width: 1366px) {
    .spotlight-carousel {
        --spotlight-gap: 56px;
    }

    .spotlight-carousel__item {
        width: 420px;
    }

    .spotlight-carousel__heading {
        font-size: 40px;
        line-height: 46px;
    }
}

@media (max-width: 1024px) {
    .spotlight-carousel {
        --spotlight-gap: 48px;
        padding-left:  var(--pad-x);
        padding-right: var(--pad-x);
    }

    .spotlight-carousel__nav-wrap {
        padding-left:  0;
        padding-right: 0;
    }

    .spotlight-carousel__row {
        flex-direction: column-reverse !important;
        gap: 24px;
    }

    .spotlight-carousel__track {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .spotlight-carousel__item {
        width: calc((100% - 40px) / 2);
    }

    .spotlight-carousel__panel {
        flex: none;
        width: 100%;
        align-items: flex-start;
        padding-left: 0;
        padding-right: 0;
    }

    .spotlight-carousel__panel-inner {
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .spotlight-carousel__cta {
        width: 100%;
    }

    .spotlight-carousel__nav {
        justify-content: center !important;
    }

    /* Stacked layout: group the arrows together and centre them rather than
       splitting them across half the row. */
    .spotlight-carousel__nav-inner {
        width: auto;
        gap: 32px;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .spotlight-carousel__item {
        width: 100%;
    }

    .spotlight-carousel__heading {
        font-size: 32px;
        line-height: 38px;
    }

    .spotlight-carousel__nav {
        margin-top: 24px;
        justify-content: center !important;
    }
}
