/* Native, scroll-driven project browser for taiwan-street-photography.html */
.street-scroll-main {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background: #000;
}

.street-scroll-track {
    position: relative;
    width: 100%;
    background: #050505;
}

.street-scroll-page .street-cover-sequence {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    touch-action: pan-y pinch-zoom;
}

.street-scroll-page .street-cover-panel {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100svh;
    min-height: 640px;
    overflow: clip;
    background: #080808;
    visibility: visible;
    transform: none;
    transition: none;
    will-change: auto;
}

.street-scroll-page .street-cover-link {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    color: #fff;
}

.street-cover-link::before,
.street-cover-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.street-cover-link::before {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, transparent 32%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.42) 0%, transparent 42%);
}

.street-cover-link::after {
    opacity: 0.15;
    background: radial-gradient(circle at 50% 45%, transparent 25%, #000 110%);
}

.street-cover-image {
    position: absolute;
    inset: -6%;
    width: 112%;
    height: 112%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: translate3d(0, var(--project-image-y, 0%), 0) scale(1.015);
    backface-visibility: hidden;
    contain: paint;
}

.street-cover-panel.is-nearby .street-cover-image {
    will-change: transform;
}

.street-cover-content {
    position: absolute;
    inset: auto clamp(1.25rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem);
    z-index: 2;
}

.street-cover-title {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.street-cover-count,
.title-en {
    font-size: 0.72rem;
    line-height: 1.2;
    letter-spacing: 0.12em;
}

.title-stack {
    display: grid;
    gap: 0.2rem;
}

.title-zh {
    font-size: clamp(1.7rem, 4vw, 4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.035em;
}

.street-scroll-track.is-enhanced .street-cover-content {
    opacity: 0;
    pointer-events: none;
}

.street-project-interface {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.street-project-interface__sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100svh;
    min-height: 640px;
    padding: clamp(1rem, 2.2vw, 2rem) clamp(1rem, 2.2vw, 2rem) 0;
}

.street-project-card-shell,
.street-project-overview {
    width: min(820px, calc(100vw - 2rem));
    margin-inline: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 10, 10, 0.58);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    backdrop-filter: blur(18px) saturate(115%);
}

.street-project-card-shell {
    position: relative;
    height: 95px;
    margin-bottom: 0.65rem;
    overflow: hidden;
    border-radius: 1.15rem;
    pointer-events: auto;
}

.street-project-card {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(155px, 0.42fr) minmax(0, 1fr);
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
}

.street-project-card.is-visible {
    visibility: visible;
}

.street-project-card.is-active {
    pointer-events: auto;
}

.street-project-card__identity,
.street-project-card__body {
    padding: 1.45rem 1.55rem;
}

.street-project-card__identity {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.street-project-card__index,
.street-project-card__label,
.street-project-meta dt,
.street-project-nav,
.street-project-overview {
    font-size: 0.68rem;
    line-height: 1.25;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.street-project-card__index {
    color: rgba(255, 255, 255, 0.62);
}

.street-project-card__title {
    display: grid;
    gap: 0.28rem;
}

.street-project-card__title-zh {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.35rem;
    font-style: normal;
    font-weight: 350;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: none;
    white-space: nowrap;
}

.street-project-card__title-en {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: 0.08em;
    opacity: 0.72;
    text-transform: uppercase;
    white-space: nowrap;
}

.street-project-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.street-project-card__description {
    max-width: 40rem;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(0.76rem, 0.9vw, 0.92rem);
    line-height: 1.5;
    letter-spacing: 0.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.street-project-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.street-project-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.street-project-meta div {
    min-width: 0;
}

.street-project-meta dt {
    margin-bottom: 0.2rem;
    color: rgba(255, 255, 255, 0.48);
}

.street-project-meta dd {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.76rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.street-project-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 2.35rem;
    margin-top: 0;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.street-project-card__link::after {
    display: none;
}

.street-project-card__link-label--mobile {
    display: none;
}

.street-project-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 44px 44px;
    align-items: center;
    gap: 0.3rem;
    width: min(820px, calc(100vw - 2rem));
    height: 44px;
    margin-inline: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    pointer-events: auto;
}

.street-project-nav__all,
.street-project-nav__current,
.street-project-nav__step {
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.58);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    backdrop-filter: blur(18px) saturate(115%);
}

.street-project-nav__all {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 1.15rem;
    color: #fff;
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.street-project-nav__all::before {
    content: "";
    width: 0.85rem;
    height: 0.68rem;
    border: 1px solid currentColor;
    border-radius: 0.22rem;
    box-shadow: inset 0 -3px 0 -2px currentColor;
    opacity: 0.82;
}

.street-project-nav__current {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
    padding: 0 1.15rem;
    border-radius: 0.8rem;
}

.street-project-nav__current-name {
    overflow: hidden;
    color: #fff;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.street-project-nav__current-count {
    justify-self: end;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.street-project-nav__current-images {
    justify-self: center;
    color: rgba(255, 255, 255, 0.68);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.street-project-nav__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    cursor: pointer;
}

.street-project-nav__arrow {
    width: 1.15rem;
    height: 1.5rem;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.street-project-nav__step:disabled {
    color: rgba(255, 255, 255, 0.28);
    cursor: default;
}

.street-project-overview {
    position: absolute;
    right: 50%;
    bottom: 52px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: min(66svh, 620px);
    padding: 0.65rem;
    overflow: auto;
    border-radius: 1.15rem;
    transform: translateX(50%);
    pointer-events: auto;
}

.street-project-overview[hidden] {
    display: none;
}

.street-project-overview__item {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 52px;
    padding: 0 0.85rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    text-align: left;
    cursor: pointer;
}

.street-project-overview__item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.street-project-overview__item.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
}

.street-project-overview__number {
    color: rgba(255, 255, 255, 0.38);
}

.street-project-overview__arrow {
    font-size: 0.9rem;
}

.street-project-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.street-scroll-cue {
    position: absolute;
    top: calc(100svh - 8.5rem);
    left: clamp(1.25rem, 3vw, 3rem);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.66);
    pointer-events: none;
}

.street-scroll-cue-label {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
}

.street-scroll-cue-arrow {
    width: 1px;
    height: 2.25rem;
    background: linear-gradient(#fff, transparent);
}

.street-scroll-page .street-fixed-copy {
    position: relative;
    inset: auto;
    z-index: 1;
    display: grid;
    width: min(calc(100% - 3rem), 1000px);
    max-height: none;
    margin: 0 auto;
    padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
    gap: 1.15rem;
    background: #000;
    color: #fff;
    pointer-events: auto;
    text-shadow: none;
}

.street-scroll-page .street-fixed-copy .topic-copy-block {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-top: 0;
}

.street-scroll-page .street-fixed-copy .topic-copy-block h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(0.9rem, 1.12vw, 1.12rem);
    line-height: 1.55;
    letter-spacing: 0.05em;
}

.street-scroll-page .street-fixed-copy .topic-copy-block h2,
.street-scroll-page .street-fixed-copy .topic-copy-block p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(0.95rem, 1.02vw, 1.04rem);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.street-scroll-page .street-fixed-copy .topic-copy-block h2 {
    margin: 0 0 0.38rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
}

.street-scroll-page .street-fixed-copy .topic-copy-block p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 900px) {
    .street-scroll-page .street-fixed-copy {
        width: 100%;
        padding: 5rem 1.5rem 3.5rem;
        gap: 0.9rem;
    }

    .street-scroll-page .street-fixed-copy .topic-copy-block h1 {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .street-scroll-page .street-fixed-copy .topic-copy-block h2,
    .street-scroll-page .street-fixed-copy .topic-copy-block p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}

@media (hover: hover) {
    .street-project-card__link:hover,
    .street-project-nav button:hover,
    .street-project-overview button:hover {
        opacity: 1;
    }

    .street-project-card__link:hover::after {
        display: none;
    }

    .street-project-card__link:hover {
        border-color: rgba(255, 255, 255, 0.42);
        background: rgba(255, 255, 255, 0.07);
    }
}

@media (max-width: 760px) {
    .street-scroll-page .street-cover-panel,
    .street-project-interface__sticky {
        height: 100svh;
        min-height: 560px;
    }

    .street-cover-image {
        inset: -3%;
        width: 106%;
        height: 106%;
    }

    .street-project-interface__sticky {
        padding: 0.75rem 0.75rem 0;
    }

    .street-project-card-shell,
    .street-project-overview {
        width: 100%;
        background: rgba(8, 8, 8, 0.86);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    .street-project-card-shell {
        height: 124px;
        margin-bottom: 0.5rem;
        border-radius: 0.9rem;
    }

    .street-project-card {
        grid-template-columns: minmax(176px, 0.48fr) minmax(0, 1fr);
        grid-template-rows: 1fr;
    }

    .street-project-card__identity {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 0.75rem 0.65rem;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 0;
    }

    .street-project-card__body {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto;
        align-items: center;
        align-content: center;
        gap: 0.35rem;
        padding: 0.55rem 0.6rem 0.55rem 0.9rem;
    }

    .street-project-card__footer {
        display: none;
    }

    .street-project-card__title-zh {
        font-size: 1.35rem;
    }

    .street-project-card__title-en {
        font-size: 0.8rem;
    }

    .street-project-card__description {
        overflow: visible;
        font-size: 0.72rem;
        line-height: 1.5;
        text-overflow: clip;
        white-space: normal;
    }

    .street-project-meta {
        gap: 0.65rem;
        padding-top: 0;
    }

    .street-project-meta dt {
        font-size: 0.58rem;
    }

    .street-project-meta dd {
        font-size: 0.66rem;
    }

    .street-project-card__link {
        margin-top: 0;
        min-height: 1.75rem;
        padding: 0.28rem 0.38rem;
        font-size: 0.6rem;
        letter-spacing: 0.05em;
        text-transform: none;
    }

    .street-project-card__link-label--desktop {
        display: none;
    }

    .street-project-card__link-label--mobile {
        display: inline;
    }

    .street-project-nav {
        grid-template-columns: auto minmax(0, 1fr) 42px 42px;
        width: 100%;
        height: 42px;
        gap: 0.22rem;
    }

    .street-project-nav__all {
        gap: 0.45rem;
        padding: 0 0.72rem;
    }

    .street-project-nav__all,
    .street-project-nav__current,
    .street-project-nav__step {
        height: 42px;
    }

    .street-project-nav__current {
        gap: 0.5rem;
        padding-inline: 0.85rem;
    }

    .street-project-overview {
        right: 0.75rem;
        bottom: 3.25rem;
        left: 0.75rem;
        grid-template-columns: 1fr;
        width: auto;
        max-height: min(62svh, 520px);
        transform: none;
    }

    .street-project-overview__item:nth-last-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .street-project-overview__item:last-child {
        border-bottom: 0;
    }

    .street-scroll-cue {
        top: 1.2rem;
        left: 1rem;
    }
}

@media (max-height: 700px) and (min-width: 761px) {
    .street-scroll-page .street-cover-panel,
    .street-project-interface__sticky {
        min-height: 540px;
    }

    .street-project-card-shell {
        height: 88px;
    }

    .street-project-card__identity,
    .street-project-card__body {
        padding-top: 1.05rem;
        padding-bottom: 1.05rem;
    }

    .street-project-card__description {
        font-size: 0.76rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .street-cover-image {
        transform: none !important;
    }

    .street-project-card,
    .street-project-card__link::after {
        transition: none !important;
    }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .street-project-card-shell,
    .street-project-overview,
    .street-project-nav__all,
    .street-project-nav__current,
    .street-project-nav__step {
        background: rgba(8, 8, 8, 0.9);
    }
}
