/**
 * Beekom — JOOOL Scroll Stories
 * Frontend styles
 *
 * Desktop : CSS Grid — images stacked on left, sticky right panel with
 *           crossfading content blocks (grid-area overlap trick).
 * Mobile  : Swiper carousel (below 993px).
 */

.bk-jss {
    --bk-jss-fade: 500ms;
    width: 100%;
    box-sizing: border-box;
}

.bk-jss *,
.bk-jss *::before,
.bk-jss *::after {
    box-sizing: border-box;
}

/* =========================================================================
   DESKTOP LAYOUT
   ========================================================================= */

.bk-jss__desktop {
    display: grid;
    grid-template-columns: 52% 1fr;
    column-gap: 80px;
    align-items: start;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* --- LEFT : stacked images --- */

.bk-jss__left {
    display: flex;
    flex-direction: column;
    row-gap: 20vh;
    min-width: 0;
}

.bk-jss__slide-image {
    width: 100%;
}

.bk-jss__image {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1.35;
    border-radius: 24px;
    background: #F0F2F5;
}

.bk-jss__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- RIGHT : sticky content stack --- */

.bk-jss__right {
    position: sticky;
    top: 22vh;
    align-self: start;
    min-width: 0;
}

/* All content blocks overlap in the same grid cell → pure CSS crossfade.
   Grid cell auto-sizes to the tallest block so the sticky container has
   a stable height. */
.bk-jss__stack {
    display: grid;
}

.bk-jss__content {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity var(--bk-jss-fade) ease,
        transform var(--bk-jss-fade) ease,
        visibility 0s linear var(--bk-jss-fade);
    pointer-events: none;
}

.bk-jss__content.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity var(--bk-jss-fade) ease,
        transform var(--bk-jss-fade) ease,
        visibility 0s linear 0s;
    pointer-events: auto;
}

/* --- Typography / button defaults --- */

.bk-jss__title {
    margin: 0 0 32px;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.15;
    color: #0C1E3E;
}

.bk-jss__desc {
    margin: 0 0 40px;
    font-size: 18px;
    line-height: 1.5;
    color: #0C1E3E;
}

.bk-jss__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    color: #0C1E3E;
    border: 1px solid #0C1E3E;
    border-radius: 60px;
    transition:
        background-color .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.bk-jss__btn:hover {
    background-color: #0C1E3E;
    color: #FFFFFF;
    border-color: #0C1E3E;
    text-decoration: none;
}

/* =========================================================================
   MOBILE LAYOUT (hidden on desktop)
   ========================================================================= */

.bk-jss__mobile {
    display: none;
    position: relative;
    width: 100%;
}

/* =========================================================================
   BREAKPOINT SWAP
   ========================================================================= */

@media (max-width: 992px) {
    .bk-jss__desktop {
        display: none !important;
    }
    .bk-jss__mobile {
        display: block;
    }
}

/* =========================================================================
   MOBILE SLIDER (Swiper)
   ========================================================================= */

.bk-jss__swiper {
    width: 100%;
    overflow: hidden;
}

.bk-jss__mobile-slide {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    padding: 0 4px;
}

.bk-jss__mobile-slide .bk-jss__image {
    aspect-ratio: 1.2;
}

.bk-jss__mobile-content {
    display: flex;
    flex-direction: column;
    padding: 0 4px;
}

.bk-jss__mobile-slide .bk-jss__title {
    font-size: 32px;
    margin-bottom: 20px;
}

.bk-jss__mobile-slide .bk-jss__desc {
    margin-bottom: 28px;
}

.bk-jss__mobile-slide .bk-jss__btn {
    align-self: flex-start;
    padding: 14px 28px;
    font-size: 15px;
}

/* --- Navigation arrows --- */

.bk-jss__nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.bk-jss__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: #0C1E3E;
    cursor: pointer;
    transition:
        background-color .3s ease,
        color .3s ease,
        opacity .3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.bk-jss__nav-btn:hover {
    background-color: #0C1E3E;
    color: #FFFFFF;
}

.bk-jss__nav-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

.bk-jss__nav-btn.swiper-button-disabled {
    opacity: .35;
    cursor: not-allowed;
}

.bk-jss__nav-btn.swiper-button-disabled:hover {
    background-color: transparent;
    color: inherit;
}

/* --- Pagination dots --- */

.bk-jss__pagination {
    position: static !important;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
    width: 100% !important;
}

.bk-jss__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #B8BCC2;
    opacity: 1;
    margin: 0 !important;
    transition: background-color .3s ease, transform .3s ease;
}

.bk-jss__pagination .swiper-pagination-bullet-active {
    background-color: #0C1E3E;
    transform: scale(1.25);
}

/* =========================================================================
   RESPONSIVE — smaller typography on narrow screens
   ========================================================================= */

@media (max-width: 480px) {
    .bk-jss__mobile-slide .bk-jss__title {
        font-size: 26px;
    }
    .bk-jss__mobile-slide .bk-jss__desc {
        font-size: 16px;
    }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    .bk-jss__content,
    .bk-jss__content.is-active {
        transition-duration: 0ms !important;
        transform: none !important;
    }
}
