.lithium-expandable {
    background: #000;
    padding: 0;
    color: #fff;
}

.lithium-expandable__inner {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.lithium-expandable__container {
    max-width: 76rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
    box-sizing: border-box;
    width: 100%;
}

/* Sektionsrubrik i linje med lithium-foundation__top-title */
.lithium-expandable__title {
    margin: 0;
    max-width: 52rem;
    color: #e4b33e;
    font-family: "Helvetica Neue LT Pro", sans-serif;
    font-size: clamp(1.9rem, 2.65vw, 2.6rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lithium-expandable__grid {
    margin-top: clamp(2rem, 3.5vw, 3rem);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
    align-items: stretch;
    min-width: 0;
}

/* Kort som lithium-outcome__card / lithium-foundation__feature-card */
.lithium-expandable__card {
    background: #141414;
    border: 1px solid rgba(228, 179, 62, 0.22);
    border-radius: 1rem;
    padding: 1.5rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lithium-expandable__card:hover {
    border-color: rgba(228, 179, 62, 0.32);
    background: #161616;
}

.lithium-expandable__grid .lithium-expandable__card--media-full-row {
    grid-column: 1 / -1;
}

.lithium-expandable__card--media-full-row .lithium-expandable__media {
    max-height: min(36rem, 72vh);
    aspect-ratio: 16 / 9;
    min-height: 14rem;
}

.lithium-expandable__card-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

/* Kolumnrubrik som lithium-outcome__eyebrow */
.lithium-expandable__card-title {
    margin: 0;
    color: rgba(228, 179, 62, 0.88);
    font-family: "Helvetica Neue LT Pro", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.lithium-expandable__card-meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-family: "Helvetica Neue", sans-serif;
    font-size: 0.8125rem;
    line-height: 1.4;
    max-width: 100%;
}

.lithium-expandable__media {
    flex: 1 1 auto;
    width: 100%;
    min-height: 11.5rem;
    max-height: min(19rem, 42vw);
    aspect-ratio: 16 / 9;
    border-radius: 0.65rem;
    background: #0a0a0a;
    border: 1px solid rgba(228, 179, 62, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* PDF-ruta: fyll höjden (annars kollapsar ytan utan in-flow-innehåll och knappen hamnar fel). */
.lithium-expandable__media--has-doc {
    align-items: stretch;
}

.lithium-expandable__video-host {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    align-self: stretch;
}

.lithium-expandable__play-facade {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.38) 100%);
    cursor: pointer;
    border-radius: inherit;
}

.lithium-expandable__play-facade--has-poster {
    background: transparent;
}

/* Poster as a separate layer so grayscale does not wash out the yellow play icon. */
.lithium-expandable__play-facade--has-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.44) 100%), var(--lithium-video-poster);
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
    pointer-events: none;
    border-radius: inherit;
}

.lithium-expandable__play-facade:focus-visible {
    outline: 2px solid #e4b33e;
    outline-offset: 2px;
}

.lithium-expandable__video-host.is-playing .lithium-expandable__play-facade {
    display: none;
}

.lithium-expandable__play-facade-icon {
    position: relative;
    z-index: 1;
    width: 4.25rem;
    height: 2.85rem;
    background: #e4b33e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.35);
}

.lithium-expandable__play-facade-icon::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #0a0a0a;
    margin-left: 4px;
}

.lithium-expandable__doc-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 0;
    min-width: 0;
    border-radius: inherit;
    overflow: hidden;
}

.lithium-expandable__doc-media--no-image {
    background: #121212;
}

.lithium-expandable__doc-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    pointer-events: none;
    z-index: 1;
}

.lithium-expandable__img.lithium-expandable__img--doc-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
}

.lithium-expandable__doc-download--overlay {
    position: relative;
    z-index: 2;
    margin: 0;
    flex-shrink: 0;
    box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.45);
}

.lithium-expandable__placeholder {
    margin: 0;
    color: #5c5c5c;
    font-family: "Helvetica Neue", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.lithium-expandable__img-trigger {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    border-radius: inherit;
    overflow: hidden;
    text-align: left;
    font: inherit;
    color: inherit;
}

.lithium-expandable__img-trigger:focus-visible {
    outline: 2px solid #e4b33e;
    outline-offset: 2px;
}

.lithium-expandable__slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lithium-expandable__slider-track {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lithium-expandable__slide {
    height: 100%;
}

.lithium-expandable__slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(228, 179, 62, 0.72);
    background: rgba(8, 8, 8, 0.6);
    color: #e4b33e;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lithium-expandable__slider-nav--prev {
    left: 0.55rem;
}

.lithium-expandable__slider-nav--next {
    right: 0.55rem;
}

.lithium-expandable__slider-nav:focus-visible {
    outline: 2px solid #e4b33e;
    outline-offset: 2px;
}

.lithium-expandable__slider.is-static .lithium-expandable__slider-nav {
    display: none;
}

.lithium-expandable__img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

/* Fullskärmsvisning (lightbox) */
.maus-expandable-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1rem 1rem;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.maus-expandable-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.maus-expandable-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
    border: none;
    padding: 0;
    margin: 0;
}

.maus-expandable-lightbox__figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(96vw, 120rem);
    max-height: 90vh;
}

.maus-expandable-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.35rem;
}

.maus-expandable-lightbox__close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.35rem;
    background: rgba(20, 20, 20, 0.9);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.maus-expandable-lightbox__close:hover {
    background: rgba(40, 40, 40, 0.95);
    border-color: rgba(255, 255, 255, 0.55);
}

.maus-expandable-lightbox__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .maus-expandable-lightbox {
        transition: none;
    }

    .lithium-expandable__card {
        transition: none;
    }
}

.lithium-expandable__video {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #000;
    filter: grayscale(1);
}

.lithium-expandable__video-host.is-playing .lithium-expandable__video {
    filter: none;
}

/* Fyll den begränsade mediaboxen (föräldern har aspect-ratio + max-height). */
.lithium-expandable__embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 0;
    overflow: hidden;
}

.lithium-expandable__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lithium-expandable__media-link {
    color: #e4b33e;
    font-family: "Helvetica Neue", sans-serif;
    font-size: 0.875rem;
    text-decoration: underline;
    padding: 1rem;
    text-align: center;
}

.lithium-expandable__media-link:hover {
    color: #e4b33e;
}

.lithium-expandable__doc-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    margin-top: 0;
    padding: 0 1.5rem;
    border-radius: 0.5rem;
    font-family: "Helvetica Neue LT Pro", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: none;
    color: #0a0a0a;
    background: #e4b33e;
    border: 1px solid #e4b33e;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lithium-expandable__doc-download:hover {
    background: #e4b33e;
    border-color: #e4b33e;
    color: #0a0a0a;
}

.lithium-expandable__doc-download:focus-visible {
    outline: 2px solid #e4b33e;
    outline-offset: 3px;
}

@media only screen and (max-width: 991px) {
    .lithium-expandable__inner {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .lithium-expandable__container {
        padding-left: 1.875rem;
        padding-right: 1.875rem;
    }

    .lithium-expandable__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.35rem;
        width: 100%;
        max-width: 100%;
    }

    .lithium-expandable__card--media-full-row .lithium-expandable__media {
        max-height: min(28rem, 58vh);
    }
}

@media only screen and (max-width: 767px) {
    .lithium-expandable {
        overflow-x: clip;
    }

    .lithium-expandable__inner {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .lithium-expandable__container {
        padding-left: 1.125rem;
        padding-right: 1.125rem;
    }

    .lithium-expandable__title {
        font-size: clamp(1.45rem, 6.4vw, 1.78rem);
    }

    .lithium-expandable__media {
        min-height: 10rem;
        max-height: min(17rem, 56vw);
    }
}
