/* Journey Starters overview page tile extensions. */

#journey-starters-overview .journey-starters-hero-layout--with-visual {
    display: grid;
    grid-template-columns: min(56%, 580px) minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: start;
}

#journey-starters-overview .journey-starters-hero-layout--with-visual .journey-starters-hero-visual {
    float: none;
    clear: none;
    width: 100%;
    max-width: none;
    margin: 0 0 1rem 0;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

#journey-starters-overview .journey-starters-hero-copy {
    min-width: 0;
}

#journey-starters-overview .journey-starters-hero-layout--with-visual .journey-starters-hero-copy {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

#journey-starters-overview .journey-starters-hero-layout--with-visual .journey-starters-hero-copy > :first-child {
    margin-top: 0;
}

@media (max-width: 900px) {
    #journey-starters-overview .journey-starters-hero-layout--with-visual {
        grid-template-columns: 1fr;
    }

    #journey-starters-overview .journey-starters-hero-layout--with-visual .journey-starters-hero-visual,
    #journey-starters-overview .journey-starters-hero-layout--with-visual .journey-starters-hero-copy {
        grid-column: 1;
    }

    #journey-starters-overview .journey-starters-hero-layout--with-visual .journey-starters-hero-visual {
        grid-row: 1;
        margin: 0 0 1rem 0;
    }

    #journey-starters-overview .journey-starters-hero-layout--with-visual .journey-starters-hero-copy {
        grid-row: 2;
    }
}

.journey-starter-tile.facing-choice-card {
    text-decoration: none;
    cursor: default;
}

.journey-starter-tile h3 {
    font-weight: 700;
    text-align: center;
}

.journey-starter-tile > p {
    font-size: 1.0625rem;
    line-height: 1.55;
    text-align: center;
}

.journey-starters-tile-grid .journey-starter-thumb-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.journey-starters-tile-grid .journey-starter-thumb-wrap .journey-starter-slot-target--poster,
.journey-starters-tile-grid .journey-starter-thumb-wrap .journey-starter-slot-target--video {
    display: block;
    width: 100%;
    height: 100%;
}

.journey-starters-tile-grid .journey-starter-slot-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.journey-starters-tile-grid .facing-choice-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.journey-starter-thumb-wrap {
    position: relative;
}

.journey-starter-slot-placeholder {
    min-height: 10rem;
    border-radius: 0.5rem;
    background: rgba(108, 117, 125, 0.12);
    border: 1px dashed rgba(108, 117, 125, 0.35);
}

.journey-starter-thumb-wrap.journey-starter-thumb-wrap--video {
    height: auto;
    overflow: hidden;
}

.journey-starters-tile-grid .journey-starter-video-shell {
    width: 100%;
    height: 100%;
}

.journey-starter-video-shell {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
}

.journey-starters-tile-grid .journey-starter-video-frame {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

.journey-starter-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    border-radius: 0.55rem;
    background: rgba(148, 163, 184, 0.12);
}

.journey-starter-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: transparent;
}

.journey-starter-video-shell.journey-starter-video-shell--playing .journey-starter-video-frame {
    background: #111827;
}

.journey-starter-video-shell.journey-starter-video-shell--playing .journey-starter-video {
    object-fit: contain;
    background: #111827;
}

.journey-starter-video-shell .custom-video-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    margin: 0;
    padding: 0.35rem 0.4rem;
    gap: 0.25rem;
    border-radius: 0 0 0.55rem 0.55rem;
    flex-wrap: nowrap;
    transition: opacity 0.2s ease-in-out;
}

.journey-starter-video-shell:hover .custom-video-controls,
.journey-starter-video-shell:not(.journey-starter-video-shell--playing) .custom-video-controls:focus-within {
    opacity: 1;
    pointer-events: auto;
}

.journey-starter-video-shell--playing.custom-video-player:focus-within .custom-video-controls {
    opacity: 0;
    pointer-events: none;
}

.journey-starter-video-shell--playing.custom-video-player:hover .custom-video-controls,
.journey-starter-video-shell--playing .custom-video-controls:focus-within:has(:focus-visible) {
    opacity: 1;
    pointer-events: auto;
}

.journey-starter-video-shell .custom-video-controls .cvp-btn {
    flex: 0 0 auto;
    padding: 0.2rem 0.25rem;
}

.journey-starter-video-shell .custom-video-controls .cvp-time {
    min-width: 2.1rem;
    font-size: 0.72rem;
}

.journey-starter-video-shell .custom-video-controls .cvp-duration {
    display: none;
}

.journey-starter-video-shell .custom-video-controls .cvp-seek {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

.journey-starter-volume-group {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex: 0 0 auto;
}

.journey-starter-volume-group .cvp-volume {
    display: block;
    width: 3.25rem;
    min-width: 3.25rem;
    flex: 0 0 auto;
    margin: 0;
}

.journey-starter-video-shell:fullscreen,
.journey-starter-video-shell:-webkit-full-screen,
.journey-starter-video-shell.journey-starter-video-shell--fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 0;
    padding: 0;
    background: #000000;
    box-sizing: border-box;
}

.journey-starter-video-shell:fullscreen .journey-starter-video-frame,
.journey-starter-video-shell:-webkit-full-screen .journey-starter-video-frame,
.journey-starter-video-shell.journey-starter-video-shell--fullscreen .journey-starter-video-frame {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
}

.journey-starter-video-shell:fullscreen .custom-video-controls,
.journey-starter-video-shell:-webkit-full-screen .custom-video-controls,
.journey-starter-video-shell.journey-starter-video-shell--fullscreen .custom-video-controls {
    position: static;
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    padding: 0.65rem 1rem;
    gap: 0.65rem;
    border-radius: 0;
}

.journey-starter-video-shell:fullscreen .custom-video-controls .cvp-duration,
.journey-starter-video-shell:-webkit-full-screen .custom-video-controls .cvp-duration,
.journey-starter-video-shell.journey-starter-video-shell--fullscreen .custom-video-controls .cvp-duration {
    display: inline;
    min-width: 2.75rem;
}

.journey-starter-video-shell:fullscreen .custom-video-controls .cvp-seek,
.journey-starter-video-shell:-webkit-full-screen .custom-video-controls .cvp-seek,
.journey-starter-video-shell.journey-starter-video-shell--fullscreen .custom-video-controls .cvp-seek {
    flex: 1 1 12rem;
    min-width: 8rem;
}

.journey-starter-video-shell:fullscreen .journey-starter-volume-group,
.journey-starter-video-shell:-webkit-full-screen .journey-starter-volume-group,
.journey-starter-video-shell.journey-starter-video-shell--fullscreen .journey-starter-volume-group {
    gap: 0.5rem;
    flex: 0 0 auto;
}

.journey-starter-video-shell:fullscreen .journey-starter-volume-group .cvp-volume,
.journey-starter-video-shell:-webkit-full-screen .journey-starter-volume-group .cvp-volume,
.journey-starter-video-shell.journey-starter-video-shell--fullscreen .journey-starter-volume-group .cvp-volume {
    width: 5.625rem;
    min-width: 5.625rem;
}

.journey-starter-video-shell .custom-video-controls .cvp-fullscreen {
    display: inline-flex !important;
}

.journey-starter-video-shell .custom-video-controls .cvp-overflow-menu {
    display: none !important;
}

.journey-starter-video-shell.journey-starter-video-shell--playing .journey-starter-play-overlay {
    opacity: 0;
    pointer-events: none;
}

.journey-starter-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.18);
    cursor: pointer;
}

.journey-starter-play-overlay:focus-visible {
    outline: 2px solid #38023b;
    outline-offset: 2px;
}

.journey-starter-play-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #38023b;
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.journey-starter-tile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.journey-starter-tile-cta {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.55rem 0.85rem;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .journey-starter-video-frame {
    background: rgba(30, 41, 59, 0.45);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .journey-starter-play-badge {
    background: rgba(15, 23, 42, 0.88);
    color: #f8fafc;
}
