/* MJ Experience automatic image slider + footer credit link
   Updated 2026-10-07: true equal-height desktop columns.
   The text column defines the row height and the slider stretches to match it exactly. */

.experience-top {
    align-items: stretch !important;
}

.experience-copy-column,
.experience-visual-column {
    min-width: 0;
    align-self: stretch;
}

.experience-copy-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.experience-visual-column {
    position: relative;
    display: block;
    height: 100%;
    min-height: 0;
}

.experience-auto-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #080808;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.experience-auto-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.experience-auto-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.experience-auto-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #080808;
    transform: scale(1.02);
    transition: transform 5.2s cubic-bezier(.2,.7,.2,1);
}

.experience-auto-slide.is-active img {
    transform: scale(1);
}

/* The copy now belongs to the left column directly below the large heading. */
.experience-copy-column .experience-slider-copy {
    max-width: 680px !important;
    margin: 34px 0 0 !important;
    padding: 0 !important;
    color: #b7afa6 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}

.footer-credit-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(214, 173, 103, 0.45);
    transition: color .25s ease, border-color .25s ease;
}

.footer-credit-link:hover,
.footer-credit-link:focus-visible {
    color: var(--gold);
    border-bottom-color: var(--gold);
}


/* Equal-height desktop rule: the natural text block determines the grid row.
   The visual column and slider then stretch to exactly the same top/bottom edges. */
@media (min-width: 821px) {
    .experience-top {
        grid-auto-rows: auto;
    }

    .experience-copy-column,
    .experience-visual-column {
        height: 100%;
    }

    .experience-auto-slider {
        position: absolute;
        inset: 0;
        height: 100%;
        min-height: 0;
    }
}
@media (max-width: 1180px) {
    .experience-copy-column .experience-slider-copy {
        margin-top: 28px !important;
    }
}

@media (max-width: 820px) {
    .experience-copy-column,
    .experience-visual-column {
        height: auto;
    }
    .experience-visual-column {
        margin-top: 34px;
    }
    .experience-auto-slider {
        position: relative;
        inset: auto;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-radius: 18px;
    }
    .experience-copy-column .experience-slider-copy {
        margin-top: 24px !important;
    }
}

@media (max-width: 520px) {
    .experience-auto-slider {
        aspect-ratio: 16 / 10;
        border-radius: 16px;
    }
    .experience-copy-column .experience-slider-copy {
        font-size: 14px !important;
        line-height: 1.72 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .experience-auto-slide,
    .experience-auto-slide img {
        transition: none !important;
    }
}

/* YouTube CTA overlay for the automatic experience slider */
.experience-youtube-link {
    position: absolute;
    inset: 0;
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.experience-youtube-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
    opacity: .9;
}

.experience-youtube-cta {
    position: absolute;
    left: 22px;
    bottom: 20px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(8,8,8,.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff4df;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .12em;
    white-space: nowrap;
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.experience-youtube-cta svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: #ff2d2d;
}

.experience-youtube-link:hover .experience-youtube-cta,
.experience-youtube-link:focus-visible .experience-youtube-cta {
    transform: translateY(-3px);
    background: rgba(12,12,12,.9);
    border-color: rgba(255,255,255,.52);
}

.experience-youtube-link:focus-visible {
    outline: 2px solid #f1bd68;
    outline-offset: -4px;
    border-radius: inherit;
}

@media (max-width: 520px) {
    .experience-youtube-cta {
        left: 14px;
        bottom: 13px;
        padding: 9px 12px;
        font-size: 9px;
    }
    .experience-youtube-cta svg {
        width: 16px;
        height: 16px;
    }
}
