/* Project detail pages: a compact editorial layout with a six-photo gallery. */
.ya-project-overview.ya-project-editorial {
    --project-ink: #12334b;
    --project-muted: #617180;
    background: radial-gradient(ellipse at 0 12%, #eaf4ff 0, transparent 42%), radial-gradient(ellipse at 100% 55%, #ecf8f4 0, transparent 40%), #f7f9fb;
    color: var(--project-ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    padding: 0 max(28px, calc((100vw - 1280px) / 2)) 52px;
}
.ya-project-editorial .ya-project-breadcrumb { display: flex; align-items: center; gap: 14px; padding: 25px 0 20px; color: #84909a; font-size: 12px; }
.ya-project-editorial .ya-project-breadcrumb a { display: inline-flex; align-items: center; gap: 9px; color: #496273; text-decoration: none; }
.ya-project-editorial .ya-project-breadcrumb a:hover { color: #2283b4; }
.ya-project-overview.ya-project-editorial .ya-project-detail-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 42px;
    padding: 28px 32px;
    border: 1px solid #294156;
    border-radius: 20px;
    background: radial-gradient(ellipse at 5% 0, #153f59, transparent 55%), #081d30;
    color: #eaf4fc;
    box-shadow: 0 10px 36px rgba(36, 104, 153, .07);
    overflow: hidden;
}
.ya-project-overview.ya-project-editorial .ya-project-detail-hero:before,
.ya-project-overview.ya-project-editorial .ya-project-detail-hero:after { display: none; }
.ya-project-overview.ya-project-editorial .ya-project-detail-hero:before { display: block; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #338ece, #39b5b0 55%, #9c83d3); opacity: 1; }
.ya-project-overview.ya-project-editorial .ya-project-detail-copy { padding: 0; }
.ya-project-editorial .ya-project-heading-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.ya-project-overview.ya-project-editorial .ya-section-label { margin: 0; color: #79bced; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.ya-project-overview.ya-project-editorial .ya-section-label:before { display: none; }
.ya-project-editorial .ya-project-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 5px; background: #dcf5e8; color: #23764e; font-size: 11px; font-weight: 600; line-height: 1.2; }
.ya-project-editorial .ya-project-status-badge i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.ya-project-editorial .ya-project-status-badge.ya-project-status-completed { background: #fff0ef; color: #bd4c4c; }
.ya-project-editorial .ya-project-status-badge.ya-project-status-unknown { background: #f0f3f6; color: #73808d; }
.ya-project-overview.ya-project-editorial .ya-project-detail-copy h1 { color: #fff; margin: 0 0 16px; font-size: clamp(25px, 2.15vw, 32px); font-weight: 700; line-height: 1.19; letter-spacing: -.9px; overflow-wrap: break-word; }
.ya-project-overview.ya-project-editorial .ya-project-detail-copy > p { color: #b4c8d7; margin: 0; max-width: none; font-size: 14px; line-height: 1.7; }
.ya-project-overview.ya-project-editorial .ya-project-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; margin-top: 22px; padding-top: 19px; border-top: 1px solid #294156; gap: 16px 20px; }
.ya-project-overview.ya-project-editorial .ya-project-meta-grid article { grid-template-columns: 18px minmax(0, 1fr); gap: 9px; }
.ya-project-overview.ya-project-editorial .ya-project-meta-grid article.ya-project-meta-status { display: none; }
.ya-project-overview.ya-project-editorial .ya-project-meta-grid article.ya-project-meta-period { order: 1; }
.ya-project-overview.ya-project-editorial .ya-project-meta-grid article.ya-project-meta-programme { order: 2; }
.ya-project-overview.ya-project-editorial .ya-project-meta-grid article.ya-project-meta-countries { order: 3; grid-column: 1 / -1; }
.ya-project-overview.ya-project-editorial .ya-project-meta-grid article i { width: 18px; height: 20px; margin-top: 1px; padding: 0; background: transparent; color: #8ba6b8; font-size: 15px; }
.ya-project-overview.ya-project-editorial .ya-project-meta-grid article.ya-project-meta-period i { color: #f5cb75; }
.ya-project-overview.ya-project-editorial .ya-project-meta-grid article.ya-project-meta-programme i { color: #c5b1e8; }
.ya-project-overview.ya-project-editorial .ya-project-meta-grid article.ya-project-meta-countries i { color: #75d8ca; }
.ya-project-overview.ya-project-editorial .ya-project-meta-grid span { color: #adc6d8; font-size: 10px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; letter-spacing: .2px; }
.ya-project-overview.ya-project-editorial .ya-project-meta-grid strong { color: #e7f7ff; font-size: 12px; font-weight: 500; line-height: 1.55; overflow-wrap: break-word; }
.ya-project-editorial .ya-project-photo-panel { align-self: stretch; display: flex; align-items: center; padding: 0; background: transparent; }
.ya-project-editorial .ya-project-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); height: clamp(260px, 24vw, 330px); aspect-ratio: auto; gap: 8px; }
.ya-project-editorial .ya-project-photo { min-width: 0; min-height: 0; aspect-ratio: auto; border-radius: 8px; background: #ecf1f5; }
.ya-project-editorial .ya-project-photo-frame { display: block; width: 100%; height: 100%; }
.ya-project-editorial .ya-project-photo-tile .ya-project-photo-frame { position: absolute; width: 100%; height: auto; aspect-ratio: 163 / 153; top: 50%; transform: translateY(-50%); }
.ya-project-editorial .ya-project-photo-grid.ya-project-photo-count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.ya-project-editorial .ya-project-photo-count-1 .ya-project-photo { aspect-ratio: auto; }
.ya-project-editorial .ya-project-photo-grid.ya-project-photo-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.ya-project-editorial .ya-project-photo-grid.ya-project-photo-count-3 { grid-template-rows: 1fr; }
.ya-project-editorial .ya-project-photo-grid.ya-project-photo-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ya-project-overview.ya-project-editorial .ya-project-detail-shell { max-width: none; padding: 30px 0 0; }
.ya-project-editorial .ya-project-overview-heading { display: flex; align-items: center; gap: 20px; margin: 0 0 18px; }
.ya-project-editorial .ya-project-overview-heading h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.3px; color: #243e51; }
.ya-project-editorial .ya-project-overview-heading > span { flex: 1; height: 2px; background: linear-gradient(90deg, #b4d9ed, #bce7df 55%, transparent); }
.ya-project-overview.ya-project-editorial .ya-project-detail-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.ya-project-overview.ya-project-editorial .ya-project-info-card { --card-accent: #348cca; --card-tint: #e7f3fc; --card-wash: #f3f9fe; min-height: 0; padding: 23px 25px; border: 1px solid #dce7ef; border-top: 3px solid var(--card-accent); border-radius: 12px; background: linear-gradient(125deg, var(--card-wash), #fff 80%); box-shadow: 0 4px 14px rgba(20, 50, 75, .025); transition: transform .25s ease, box-shadow .25s ease; }
.ya-project-overview.ya-project-editorial .ya-project-info-card:nth-child(2) { --card-accent: #279d92; --card-tint: #ddf4ed; --card-wash: #f0faf6; }
.ya-project-overview.ya-project-editorial .ya-project-info-card:nth-child(3) { --card-accent: #9972ca; --card-tint: #eee6fb; --card-wash: #f8f4fe; }
.ya-project-overview.ya-project-editorial .ya-project-info-card:nth-child(4) { --card-accent: #cd963c; --card-tint: #fff0d4; --card-wash: #fffbf2; }
.ya-project-overview.ya-project-editorial .ya-project-info-card:before,
.ya-project-overview.ya-project-editorial .ya-project-info-card:after { display: none; }
.ya-project-editorial .ya-project-card-heading { margin-bottom: 12px; gap: 11px; }
.ya-project-overview.ya-project-editorial .ya-project-info-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; background: var(--card-tint); color: var(--card-accent); font-size: 15px; }
.ya-project-overview.ya-project-editorial .ya-project-info-card h2 { color: #243e51; margin: 0; font-size: 15px; font-weight: 650; line-height: 1.35; }
.ya-project-overview.ya-project-editorial .ya-project-info-card p { display: block; overflow: visible; max-height: none; min-height: 0; -webkit-line-clamp: unset; color: #6b7b88; font-size: 13px; line-height: 1.8; margin: 0; }
.ya-project-overview.ya-project-editorial .ya-project-info-card p.ya-project-section-missing { color: #7c8c98; font-style: italic; }
.ya-project-editorial .ya-project-resources { margin-top: 20px; border: 1px solid #d8e6ee; border-radius: 12px; background: linear-gradient(110deg, #fff, #f3fafc); box-shadow: none; }
.ya-project-editorial .ya-project-connect { padding: 22px 25px; gap: 22px 48px; }
.ya-project-editorial .ya-project-connect-group h3 { font-family: inherit; font-size: 10px; color: #8a98a2; }
.ya-project-editorial .ya-project-connect-links a { font-size: 13px; font-weight: 500; color: #39789d; }
.ya-project-editorial .ya-project-document-library summary { padding: 20px 25px; }
.ya-project-editorial .ya-project-library-title strong { font-size: 14px; color: #314e62; }
.ya-project-editorial .ya-project-library-title > span { font-size: 12px; color: #8a98a2; }
.ya-project-editorial .ya-project-library-icon { background: #ddf3ef; color: #278c84; }
.ya-project-overview.ya-project-editorial .ya-project-full-info summary { margin-top: 25px; padding: 13px 22px; border: 1px solid #287fae; border-radius: 8px; background: linear-gradient(110deg, #2c84bc, #258f98); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 4px 12px rgba(38, 127, 160, .14); transition: box-shadow .25s ease, transform .25s ease; }
.ya-project-overview.ya-project-editorial .ya-project-full-info summary:hover { border-color: #227c99; background: linear-gradient(110deg, #2575a8, #207e87); box-shadow: 0 6px 18px rgba(38, 127, 160, .22); }
.ya-project-overview.ya-project-editorial .ya-project-full-info[open] .ya-public-content { padding: 32px; background: #fff; border: 1px solid #e0e8ee; border-radius: 12px; color: #415e71; font-family: inherit; line-height: 1.8; }
.ya-project-editorial .ya-project-photo-frame { transition: transform .4s ease; }
@media (hover: hover) and (pointer: fine) {
    .ya-project-overview.ya-project-editorial .ya-project-info-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(34, 72, 104, .09); }
    .ya-project-editorial .ya-project-photo:hover .ya-project-photo-frame { transform: scale(1.04); }
    .ya-project-editorial .ya-project-photo-tile:hover .ya-project-photo-frame { transform: translateY(-50%) scale(1.04); }
    .ya-project-overview.ya-project-editorial .ya-project-full-info summary:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
    .ya-project-overview.ya-project-editorial .ya-project-info-card,
    .ya-project-editorial .ya-project-photo-frame,
    .ya-project-overview.ya-project-editorial .ya-project-full-info summary { transition: none; }
    .ya-project-overview.ya-project-editorial .ya-project-info-card:hover,
    .ya-project-overview.ya-project-editorial .ya-project-full-info summary:hover,
    .ya-project-editorial .ya-project-photo:hover .ya-project-photo-frame { transform: none; }
    .ya-project-editorial .ya-project-photo-tile:hover .ya-project-photo-frame { transform: translateY(-50%); }
}
@media (max-width: 1050px) {
    .ya-project-overview.ya-project-editorial { padding-left: 24px; padding-right: 24px; }
    .ya-project-overview.ya-project-editorial .ya-project-detail-hero { gap: 26px; padding: 25px; }
    .ya-project-overview.ya-project-editorial .ya-project-detail-copy h1 { font-size: 26px; }
    .ya-project-editorial .ya-project-photo-grid { height: 290px; }
}
@media (max-width: 760px) {
    .ya-project-overview.ya-project-editorial { padding: 0 18px 32px; }
    .ya-project-editorial .ya-project-breadcrumb { padding: 20px 0; font-size: 11px; }
    .ya-project-overview.ya-project-editorial .ya-project-detail-hero { grid-template-columns: minmax(0, 1fr); gap: 25px; padding: 23px; border-radius: 15px; }
    .ya-project-overview.ya-project-editorial .ya-project-detail-copy { padding: 0; }
    .ya-project-overview.ya-project-editorial .ya-project-detail-copy h1 { font-size: 27px; }
    .ya-project-editorial .ya-project-photo-grid { height: clamp(220px, 52vw, 320px); gap: 6px; }
    .ya-project-overview.ya-project-editorial .ya-project-detail-cards { grid-template-columns: minmax(0, 1fr); }
    .ya-project-overview.ya-project-editorial .ya-project-info-card { padding: 20px; }
    .ya-project-editorial .ya-project-connect { padding: 20px; gap: 22px; }
    .ya-project-editorial .ya-project-document-library summary { padding: 17px; }
}
@media (max-width: 400px) {
    .ya-project-overview.ya-project-editorial { padding-left: 12px; padding-right: 12px; }
    .ya-project-overview.ya-project-editorial .ya-project-detail-hero { padding: 20px; }
    .ya-project-overview.ya-project-editorial .ya-project-detail-copy h1 { font-size: 24px; }
    .ya-project-overview.ya-project-editorial .ya-project-meta-grid { gap: 16px 12px; }
}
