/* Editorial layout for project collections. */
.ya-project-archive.ya-project-archive-editorial {
    background: #fff;
}
.ya-project-archive-editorial .ya-project-hero { padding: 0; border: 0; background: #fff; }
.ya-project-archive-editorial .ya-project-hero:before { display: none; }
.ya-project-archive-editorial .ya-project-hero:after { display: none; }
.ya-project-archive-editorial .ya-project-hero-inner { display: block; max-width: 1280px; margin: 0 auto; padding: 58px 0 22px; }
.ya-project-archive-editorial .ya-project-hero-copy { max-width: 900px; }
.ya-project-archive-editorial .ya-project-archive-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; color: #23669c; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.ya-project-archive-editorial .ya-project-archive-count { padding: 5px 10px; border-radius: 999px; background: #dbf6ed; color: #164f50; letter-spacing: .3px; text-transform: none; }
.ya-project-archive-editorial .ya-project-hero h1 { max-width: 900px; margin: 0 0 16px; color: #082844; font-size: clamp(34px, 5vw, 70px); line-height: 1.02; font-weight: 900; letter-spacing: -.035em; text-wrap: balance; }
.ya-project-archive-editorial .ya-project-hero p { max-width: 68ch; margin: 0; color: #37576f; font-size: 17px; line-height: 1.6; }
.ya-project-archive-editorial .ya-project-shell { max-width: 1336px; padding: 26px 28px 60px; }
.ya-project-archive-editorial .ya-project-nav { flex-wrap: wrap; overflow: visible; gap: 9px; padding-bottom: 25px; }
.ya-project-archive-editorial .ya-project-nav a { min-height: 42px; max-width: 290px; padding: 10px 15px; border: 1px solid #dce7ef; border-radius: 9px; background: rgba(255,255,255,.85); color: #516c7d; font-size: 11px; font-weight: 600; line-height: 1.4; box-shadow: 0 2px 6px rgba(20,50,75,.02); transition: background .25s, border-color .25s, color .25s, transform .25s; }
.ya-project-archive-editorial .ya-project-nav a:hover { background: #eaf6f6; color: #227d84; border-color: #a9d9d6; }
.ya-project-archive-editorial .ya-project-nav a.active { background: linear-gradient(110deg, #267cb4, #278f97); border-color: #2b88a7; color: #fff; box-shadow: 0 4px 12px rgba(38,127,160,.15); }
.ya-project-archive-editorial .ya-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 32px; padding-top: 26px; border-top: 4px solid #388ac7; }
.ya-project-archive-editorial .ya-project-card { --archive-image-height: .625; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.ya-project-archive-editorial .ya-project-card:hover { box-shadow: none; transform: none; }
.ya-project-archive-editorial .ya-project-card-image { aspect-ratio: 1 / var(--archive-image-height); border-radius: 16px; background: linear-gradient(135deg, #153f59, #081d30); }
.ya-project-archive-editorial .ya-project-card-image img { transition: transform .45s ease; }
/* Frame one photograph from each legacy collage without altering the source. */
.ya-project-archive-editorial .ya-project-card-image-single { position: relative; }
.ya-project-archive-editorial .ya-project-card-cover-frame { position: absolute; top: 50%; left: 50%; width: max(100%, calc(var(--cover-ratio) * var(--archive-image-height) * 100%)); aspect-ratio: var(--cover-ratio); overflow: hidden; transform: translate(-50%, -50%); transition: transform .45s ease; }
.ya-project-archive-editorial .ya-project-card-image-single img { position: absolute; width: var(--cover-width); height: var(--cover-height); max-width: none; left: var(--cover-left); top: var(--cover-top); object-fit: fill; transform: none; transition: none; }
.ya-project-archive-editorial .ya-project-card-body { padding: 18px 2px 16px; }
.ya-project-archive-editorial .ya-project-card h2 { margin: 0 0 10px; color: #082844; font-size: clamp(23px, 2.1vw, 30px); font-weight: 900; line-height: 1.12; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ya-project-archive-editorial .ya-project-card h2 a:hover { color: #23669c; }
.ya-project-archive-editorial .ya-project-card p { min-height: 0; margin-bottom: 16px; color: #37576f; font-size: 16px; line-height: 1.5; -webkit-line-clamp: 3; }
.ya-project-archive-editorial .ya-project-card-link { align-self: flex-start; gap: 8px; color: #23669c; font-size: 14px; font-weight: 700; }
.ya-project-archive-editorial .ya-project-card-link i { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #e8f4fd; color: #23669c; font-size: 12px; }
.ya-project-archive-editorial .ya-project-card-link:hover i { background: #23669c; color: #fff; }
@media (hover: hover) and (pointer: fine) {
    .ya-project-archive-editorial .ya-project-card:hover .ya-project-card-image img { transform: scale(1.045); }
    .ya-project-archive-editorial .ya-project-card:hover .ya-project-card-image-single img { transform: none; }
    .ya-project-archive-editorial .ya-project-card:hover .ya-project-card-cover-frame { transform: translate(-50%, -50%) scale(1.045); }
}
@media (min-width: 1051px) {
    .ya-project-archive-editorial .ya-project-grid {
        --project-column-gap: 32px;
        --project-card-offset: clamp(32px, 3.5vw, 52px);
        column-gap: var(--project-column-gap);
        background:
            linear-gradient(var(--project-divider-left, transparent) 0 0) calc((100% - var(--project-column-gap) * 2) / 3 + var(--project-column-gap) / 2) 0 / 1px 100% no-repeat,
            linear-gradient(var(--project-divider-right, transparent) 0 0) calc((100% - var(--project-column-gap) * 2) * 2 / 3 + var(--project-column-gap) * 1.5) 0 / 1px 100% no-repeat;
    }

    .ya-project-archive-editorial .ya-project-grid:has(.ya-project-card:nth-child(2)) {
        --project-divider-left: #dce7ef;
    }

    .ya-project-archive-editorial .ya-project-grid:has(.ya-project-card:nth-child(3)) {
        --project-divider-right: #dce7ef;
    }

    .ya-project-archive-editorial .ya-project-card:nth-child(3n + 2) {
        --archive-image-height: .78;
        margin-block-start: var(--project-card-offset);
    }

    .ya-project-archive-editorial .ya-project-card:nth-child(3n + 1):not(:last-child),
    .ya-project-archive-editorial .ya-project-card:nth-child(3n) {
        margin-block-end: var(--project-card-offset);
    }
}
@media (max-width: 1336px) { .ya-project-archive-editorial .ya-project-hero-inner { padding-left: 28px; padding-right: 28px; } }
@media (max-width: 1050px) {
    .ya-project-archive-editorial .ya-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .ya-project-archive-editorial .ya-project-nav a { flex: 1 1 180px; max-width: none; }
}
@media (min-width: 601px) and (max-width: 1050px) {
    .ya-project-archive-editorial .ya-project-grid:has(.ya-project-card:nth-child(2)) {
        background: linear-gradient(#dce7ef, #dce7ef) center / 1px 100% no-repeat;
    }
}
@media (max-width: 600px) {
    .ya-project-archive-editorial .ya-project-hero-inner { padding: 28px 20px 32px; }
    .ya-project-archive-editorial .ya-project-shell { padding: 20px 18px 40px; }
    .ya-project-archive-editorial .ya-project-hero h1 { font-size: 28px; letter-spacing: -.6px; }
    .ya-project-archive-editorial .ya-project-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .ya-project-archive-editorial .ya-project-nav { gap: 7px; padding-bottom: 20px; }
    .ya-project-archive-editorial .ya-project-nav a { flex: 1 1 140px; padding: 9px 10px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .ya-project-archive-editorial .ya-project-card,
    .ya-project-archive-editorial .ya-project-card-image img,
    .ya-project-archive-editorial .ya-project-nav a,
    .ya-project-archive-editorial .ya-project-card-link i { transition: none; }
    .ya-project-archive-editorial .ya-project-card-cover-frame { transition: none; }
    .ya-project-archive-editorial .ya-project-card:hover .ya-project-card-cover-frame { transform: translate(-50%, -50%); }
    .ya-project-archive-editorial .ya-project-card:hover,
    .ya-project-archive-editorial .ya-project-card:focus-within,
    .ya-project-archive-editorial .ya-project-card:hover .ya-project-card-image img,
    .ya-project-archive-editorial .ya-project-nav a:hover { transform: none; }
}
