.egallery-approach {
    width: calc(100% - 96px);
    margin: 80px auto 0;
    padding-top: 40px;
    color: #474747;
    text-align: center;
}

.egallery-approach #genese-title {
    display: flex;
    justify-content: center;
    height: auto;
    margin: 0;
    padding: 0;
}

.egallery-approach .egallery-approach-toggle {
    justify-content: center;
    gap: 20px;
    height: auto;
    min-height: 82px;
    max-width: 100%;
    padding: 20px 30px;
    border: 0;
    font-size: 26px;
    line-height: 1.3;
    cursor: pointer;
}

.egallery-approach-toggle-mark {
    flex: 0 0 auto;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.egallery-approach .egallery-approach-subtitle {
    margin: 30px auto 36px;
    color: #8d8d8d;
    font-family: 'orator-std', 'Courier New', monospace;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.5;
}

.egallery-approach-copy {
    max-width: 840px;
    margin: 0 auto 42px;
    font-family: 'Source Sans Pro', 'Source Sans', Arial, sans-serif;
    font-size: 18.5px;
    font-weight: 300;
    line-height: 1.55;
}

.egallery-approach-copy[hidden] {
    display: none;
}

.egallery-approach-copy p {
    margin: 0 0 18px;
}

.egallery-approach-copy .egallery-approach-more {
    margin: 26px 0 0;
    font-size: 18px;
}

.egallery-approach-more a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.egallery-approach-viewport {
    --approach-media-height: clamp(180px, 38vw, 620px);
    --approach-leading-space: max(0px, calc((100% - var(--approach-media-height)) / 2));
    --approach-trailing-space: max(0px, calc((100% - var(--approach-media-height) * 16 / 9) / 2));
    display: flex;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    padding: 0 var(--approach-trailing-space) 0 var(--approach-leading-space);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.egallery-approach-viewport::-webkit-scrollbar {
    display: none;
}

.egallery-approach-slide {
    flex: 0 0 auto;
    width: var(--approach-media-height);
    height: var(--approach-media-height);
    margin: 0;
    scroll-snap-align: center;
}

.egallery-approach-slide--video {
    width: calc(var(--approach-media-height) * 16 / 9);
}

.egallery-approach-slide img,
.egallery-approach-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.egallery-approach-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 48px;
    margin: 18px auto 8px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #b9a18d;
    cursor: pointer;
}

.egallery-approach-next svg {
    display: block;
    width: 58px;
    height: 24px;
    transition: transform 240ms ease;
}

.egallery-approach-next:hover svg {
    transform: translateX(6px);
}

.egallery-approach-next[data-direction="previous"] svg {
    transform: rotate(180deg);
}

.egallery-approach-next[data-direction="previous"]:hover svg {
    transform: translateX(-6px) rotate(180deg);
}

.egallery-approach button:focus-visible,
.egallery-approach-viewport:focus-visible {
    outline: 1px solid #b9a18d;
    outline-offset: 5px;
}

.egallery-approach-caption {
    min-height: 2.8em;
    margin: 0 auto;
    font-family: 'Source Sans Pro', 'Source Sans', Arial, sans-serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.4;
}

/* Phone text uses larger values to remain readable on the scaled gallery canvas. */
@media (max-width: 768px), (pointer: coarse) and (max-device-width: 720px) {
    .egallery-approach {
        width: calc(100% - 30px);
        margin-top: 50px;
        padding-top: 24px;
    }

    .egallery-approach .egallery-approach-toggle {
        min-height: 128px;
        padding: 24px 32px;
        gap: 20px;
        font-size: 54px;
    }

    .egallery-approach-toggle-mark {
        font-size: 52px;
    }

    .egallery-approach .egallery-approach-subtitle {
        max-width: 860px;
        margin: 32px auto 40px;
        font-size: 40px;
    }

    .egallery-approach-copy {
        max-width: none;
        padding: 0 24px;
        font-size: 42px;
        line-height: 1.5;
    }

    .egallery-approach-copy p {
        margin-bottom: 32px;
    }

    .egallery-approach-copy .egallery-approach-more {
        font-size: 36px;
    }

    .egallery-approach-viewport {
        gap: 18px;
    }

    .egallery-approach-caption {
        padding: 0 8px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .egallery-approach-next svg {
        transition: none;
    }
}
