.life-story-book {
    background-color: #f1eae1;
    overflow-x: hidden;
}

.life-story-book__inner {
    max-width: var(--container-width-wide);
    margin-inline: auto;
    padding-inline: clamp(var(--space-3), 4vw, 3.75rem);
    padding-block: clamp(var(--space-5), 6vw, 3.5rem);
}

.life-story-book__box {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(var(--space-5), 4.5vw, 7rem);
    padding: 40px;
    border-radius: 12px;
    background-color: var(--color-grey-1);
}

/* Gallery */

.life-story-book__gallery {
    display: flex;
    gap: var(--space-3);
    min-width: 0;
}

.life-story-book__thumbs {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex-shrink: 0;
}

.life-story-book__thumb {
    display: block;
    width: 90px;
    height: 90px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    transition: border-color 0.15s ease;
}

.life-story-book__thumb.is-active {
    border-color: var(--color-cream);
}

.life-story-book__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.15s ease;
}

.life-story-book__thumb--video {
    background: #3d4630;
}

.life-story-book__thumb-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.life-story-book__thumb.is-active img {
    filter: brightness(0.55) saturate(0.8);
}

.life-story-book__media.swiper {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    overscroll-behavior-x: contain;
    aspect-ratio: 0.95;
    max-height: 620px;
    border-radius: 12px;
    overflow: hidden;
}

.life-story-book__main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.life-story-book__main-video {
    display: block;
    background: #171d13;
}

/* Content */

.life-story-book__content {
    min-width: 0;
    color: var(--color-cream);
}

.life-story-book__brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.life-story-book__brand-icon svg {
    display: block;
    width: 28px;
    height: 23px;
}

.life-story-book__brand-name {
    font-weight: 400;
    font-size: 26px;
}

.life-story-book__heading {
    margin: 0 0 var(--space-3);
    font-size: 64px;
    color: var(--color-cream);
    line-height: 58px;
    letter-spacing: -2%;
    /* Translated product names can contain long compounds. Let those words
       wrap inside the card instead of widening the entire page. */
    overflow-wrap: anywhere;
}

.life-story-book__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid #9B9C8F;
    font-family: var(--font-family-heading);
}

.life-story-book__price-current {
    font-size: 44px;
    line-height: 48px;
    color: var(--color-primary);
    font-family: var(--font-family-base);
}

.life-story-book__features {
    list-style: none;
    margin: 0 0 var(--space-4);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.life-story-book__feature {
    position: relative;
    padding-left: var(--space-4);
    color: var(--color-cream);
    font-size: 18px;
    line-height: 26px;
}

.life-story-book__feature::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.life-story-book__button {
    margin-top:var(--space-4);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding-block: var(--space-3);
    padding-inline: var(--space-4);
    border-radius: 8px;
    background-color: var(--color-primary);
    color: var(--color-cream);
    font-weight: 700;
    text-decoration: none;
    font-size:16px;
    line-height: 24px;
}

.life-story-book__button-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.life-story-book__note {
    margin-top: var(--space-3);
    font-size: 14px;
    line-height: 20px;
    color: #B8B5A9;
}

/* Trust row */

.life-story-book__trust {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(var(--space-4), 4vw, var(--space-6));
    padding-top: clamp(var(--space-4), 3vw, 2rem);
}

.life-story-book__trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1 1 0;
    min-width: 0;
    padding-inline-start: clamp(var(--space-4), 4vw, var(--space-6));
    border-left: 1px solid #9B9C8F;
}

.life-story-book__trust-item:first-child {
    padding-inline-start: 0;
    border-left: none;
}

.life-story-book__trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--color-primary);
}

.life-story-book__trust-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.life-story-book__trust-icon svg path {
    stroke: var(--color-primary);
}

.life-story-book__trust-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.life-story-book__trust-title {
    font-family: var(--font-family-heading);
    font-size: 22px;
    line-height: 1.1;
    color: var(--color-cream);
    letter-spacing: -2%;
    font-weight: 400;
}

.life-story-book__trust-description {
    font-size: 16px;
    color: #B8B5A9;
    line-height: 24px;
}

@media (max-width: 899px) {
    .life-story-book__inner {
    }

    .life-story-book__box {
        grid-template-columns: minmax(0, 1fr);
        padding:24px 16px;
    }

    .life-story-book__gallery {
        flex-direction: column-reverse;
        width: 100%;
        margin-bottom: var(--space-5);
    }

    .life-story-book__thumbs {
        flex-direction: row;
    }

    .life-story-book__thumb {
    }

    /* .life-story-book__media.swiper, not just .life-story-book__media — the
       desktop base rule uses that same compound selector (0,2,0
       specificity), which otherwise beats a single-class override here
       regardless of media-query/source order and silently won for
       aspect-ratio/margin-right while height (untouched by the base rule)
       happened to still apply. */
    .life-story-book__media.swiper {
        /* height:275px, not the desktop aspect-ratio:0.95 — with an explicit
           height here (and a definite width from the flex layout), the
           aspect-ratio has nothing left to resolve and is simply ignored,
           same pattern as the other max-height fixes elsewhere in this
           theme (e.g. blocks/whats-included's image, blocks/two-ways). */
        /* Preserve each source image natural aspect ratio on phones. */
        aspect-ratio: auto;
        height: auto;
        max-height: none;
        /* Bleeds past .life-story-book__box's own 16px right padding
           (above) — per the mockup, the image/peek runs to the card's true
           right edge instead of stopping short at the padded content
           boundary, same idea as .comparison-hero__media's bottom bleed
           (blocks/comparison-hero/style.css) just on the opposite edge.
           .life-story-book__box has no overflow of its own to clip this. */
        margin-right: -16px;
        /* Squares off just the bleeding (right) corners — the base rule's
           border-radius: 12px is for all four, which read as a rounded
           corner floating mid-block once this edge no longer lines up with
           the box's own edge. The left corners, which still land on the
           box's padded content boundary, stay rounded. */
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    /* Sub-100% width is what makes the next slide peek in from the right —
       .life-story-book__media itself keeps its overflow: hidden (base
       rule), so the peek is just whatever of the next (wider-than-visible)
       row falls inside that same box, not an actual overflow bleed past the
       card's own edge. */
    .life-story-book__media .swiper-slide {
        width: 88%;
    }

    .life-story-book__media .swiper-wrapper,
    .life-story-book__media .swiper-slide {
        height: auto;
    }

    .life-story-book__main-image {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }


    .life-story-book__content {
    }

    .life-story-book__brand {
    }

    .life-story-book__brand-name {
    }

    .life-story-book__heading {
        font-size: clamp(40px, 14vw, 56px);
        line-height: 45px;
        letter-spacing: -2%;
    }

    .life-story-book__price {
        margin-bottom: var(--space-3);
        padding-bottom: var(--space-3);
    }

    .life-story-book__price-current {
        font-size: 28px;
        line-height: 48px;
        letter-spacing: 0%;
    }

    .life-story-book__features {
    }

    .life-story-book__feature {
    }

    .life-story-book__button {
        width: 100%;
        justify-content: center;
    }

    .life-story-book__note {
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0%;
    }

    .life-story-book__trust {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        /* No cursor: grab here — nothing in the theme implements drag-to-scroll for
           these rows, so it advertised an interaction that does not exist. */
        scrollbar-width: none;
        padding-top:var(--space-3);
    }

    .life-story-book__trust::-webkit-scrollbar {
        display: none;
    }

    .life-story-book__trust-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .life-story-book__trust-icon {
        width: 32px;
        height: 32px;
    }

    .life-story-book__trust-icon svg{
        width: 16px;
        height: 16px;
    }

    .life-story-book__trust-text {
    }

    .life-story-book__trust-title {
        font-size: 18px;
        line-height: 18px;
        letter-spacing: -2%;
    }

    .life-story-book__trust-description {
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0%;
    }
}

@media (max-width: 599px) {
    .life-story-book__thumbs {
        display: none;
    }
}
