.page-sections-layout {
    width: min(1196px, calc(100% - 48px));
    margin: 0 auto;
    padding: 12px 0 72px;
    box-sizing: border-box;
    color: inherit;
}

.page-section-nav {
    display: flex;
    gap: 28px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    overflow-x: auto;
    border-bottom: 1px solid #ddd;
}

.page-section-nav a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.page-section-nav a:hover {
    color: var(--accent, #c55b23);
}

.page-content-block {
    padding: 32px 0 44px;
    border-bottom: 1px solid #ddd;
    scroll-margin-top: 110px;
}

.page-content-block > h2 {
    margin-bottom: 24px;
    font-size: clamp(24px, 3vw, 32px);
}

.page-content-block > h2 a,
.page-timeline h3 a,
.page-gallery h3 a {
    color: inherit;
    text-decoration: none;
}

.page-content-block > h2 a:hover,
.page-timeline h3 a:hover,
.page-gallery h3 a:hover {
    color: var(--accent, #c55b23);
}

.page-content-block-timeline {
    margin-inline: calc(50% - 50vw);
}

.page-content-block-timeline > h2 {
    width: min(1196px, calc(100% - 48px));
    margin-inline: auto;
}

.page-content-block .rich-content {
    max-width: none;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.page-content-block .rich-content img {
    max-width: 100%;
    height: auto;
}

.page-timeline-scroller {
    width: 100%;
    margin: -8px 0 0;
    padding: 0 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #9fdef5 #edf8fc;
    -webkit-overflow-scrolling: touch;
}

.page-timeline-scroller::-webkit-scrollbar {
    height: 6px;
}

.page-timeline-scroller::-webkit-scrollbar-track {
    background: #edf8fc;
}

.page-timeline-scroller::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #9fdef5;
}

.page-timeline-stage {
    --timeline-stage-height: 460px;
    position: relative;
    min-width: max(100%, calc(var(--timeline-count, 1) * 168px));
    height: var(--timeline-stage-height);
    background: #fff;
    isolation: isolate;
}

.page-timeline-stage::before {
    position: absolute;
    inset: 0 max(0px, calc((100% - 1196px) / 2));
    background:
        linear-gradient(
            180deg,
            rgb(255 255 255 / 98%) 0%,
            rgb(255 255 255 / 92%) 35%,
            rgb(255 255 255 / 75%) 50%,
            rgb(255 255 255 / 45%) 62%,
            rgb(255 255 255 / 16%) 80%,
            rgb(255 255 255 / 8%) 100%
        ),
        #fff url("../images/climb-timeline-mountain-flipped.webp") center / 100% 100% no-repeat;
    content: "";
    pointer-events: none;
}

.page-timeline-ridge {
    position: absolute;
    inset: 0 max(0px, calc((100% - 1196px) / 2));
    z-index: 1;
    width: auto;
    height: 100%;
    pointer-events: none;
}

.page-timeline-climb {
    position: relative;
    z-index: 2;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(168px, 1fr);
    align-items: stretch;
    width: min(100%, 1196px);
    height: 100%;
    margin-inline: auto;
    padding: 0;
    list-style: none;
}

.page-timeline-climb > li {
    position: relative;
    min-width: 0;
    height: 100%;
}

.page-timeline-marker-halo,
.page-timeline-marker {
    stroke-linecap: round;
}

.page-timeline-marker-halo {
    stroke: #fff;
    stroke-width: 8;
}

.page-timeline-marker {
    stroke: #01b0f1;
    stroke-width: 4;
}

.page-timeline-guide {
    position: absolute;
    bottom: calc(100% - var(--timeline-ridge-y, 364px));
    left: calc(var(--timeline-count, 1) * 1%);
    display: block;
    width: 2px;
    height: 72px;
    margin: 0;
    border-radius: 99px;
    background: linear-gradient(180deg, #74d2f4 0%, #01b0f1 62%, #008ec2 100%);
    box-shadow: 0 0 0 1px rgb(1 176 241 / 8%);
}

.page-timeline-guide::after {
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #01b0f1;
    box-shadow: 0 0 0 1px rgb(1 176 241 / 20%);
    content: "";
    transform: translateX(-50%);
}

.page-timeline-copy {
    position: absolute;
    right: 12px;
    bottom: calc(100% - var(--timeline-ridge-y, 364px) + 10px);
    left: calc(var(--timeline-count, 1) * 1% + 12px);
    max-width: 190px;
}

.page-timeline h3 {
    margin: 0 0 10px;
    color: #292929;
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 1px 0 rgb(255 255 255 / 90%), 0 0 12px rgb(255 255 255 / 82%);
}

.page-timeline-copy .rich-content {
    color: #5f6d73;
    font-size: 14px;
    line-height: 1.75;
    text-shadow: 0 1px 0 rgb(255 255 255 / 92%), 0 0 8px rgb(255 255 255 / 78%);
}

.page-timeline p {
    margin-top: 0;
}

.page-timeline-hint {
    display: none;
    width: min(1196px, calc(100% - 48px));
    margin-top: 4px;
    margin-inline: auto;
    color: #7d8f96;
    font-size: 12px;
    text-align: right;
}

.page-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.page-gallery article {
    min-width: 0;
}

.page-gallery h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.page-gallery-subtitle {
    margin: 0 0 14px;
    color: #6b6b6b;
    font-size: 14px;
    line-height: 1.6;
}

.page-gallery img {
    display: block;
    width: 100%;
    height: 400px;
    padding: 12px;
    object-fit: contain;
    background: #f5f5f5;
    box-sizing: border-box;
}

.page-gallery .rich-content {
    margin-top: 14px;
    font-size: 14px;
}

@media (max-width: 800px) {
    .page-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-timeline-scroller {
        scroll-snap-type: x proximity;
    }

    .page-timeline-stage {
        min-width: max(100%, calc(var(--timeline-count, 1) * 154px));
    }

    .page-timeline-climb {
        grid-auto-columns: minmax(154px, 1fr);
    }

    .page-timeline-climb > li {
        scroll-snap-align: start;
    }

    .page-timeline-hint {
        display: block;
    }
}

@media (max-width: 600px) {
    .page-sections-layout {
        width: calc(100% - 36px);
        padding-bottom: 40px;
    }

    .page-content-block-timeline > h2,
    .page-timeline-hint {
        width: calc(100% - 36px);
    }

    .page-section-nav {
        gap: 20px;
    }

    .page-content-block {
        padding: 24px 0 30px;
    }

    .page-timeline-scroller {
        width: 100%;
        margin: -8px 0 0;
        padding-inline: 0;
    }

    .page-timeline-climb {
        grid-auto-columns: minmax(154px, 1fr);
    }

    .page-timeline h3 {
        font-size: 25px;
    }

    .page-timeline-copy {
        right: 8px;
        left: 14px;
        max-width: 170px;
    }

    .page-gallery {
        grid-template-columns: 1fr;
    }

    .page-gallery img {
        height: 400px;
    }
}
