/* A compact cover accompanies every title, in every directory selection. */
.project-row-cover { display:block; width:56px; height:82px; flex:0 0 56px; object-fit:contain; border-radius:2px; filter:drop-shadow(3px 4px 5px #0008); }
.project-row-action { flex-wrap:nowrap; }
.project-row-copy { min-width:0; }
.project-row-arrow,.direction-arrow { width:22px; height:22px; flex:0 0 22px; }
.project-row-meta { order:initial; width:auto; }
.publication-badge { align-self:flex-start; display:inline-flex; width:fit-content; max-width:100%; margin-top:6px; padding:5px 10px; border:1px solid #ffe03b55; border-radius:20px; background:#ffe03b13; color:var(--yellow); font-size:12px; font-weight:700; line-height:1.4; }
.project-row.is-published .project-row-cover { filter:drop-shadow(3px 4px 5px #0008) drop-shadow(0 0 6px #ffe03b22); }
.feature-card-actions a { gap:6px; }
.feature-card-actions .direction-arrow { width:20px; height:20px; flex-basis:20px; }

/* The featured card itself is a book: edge-to-edge jacket and an outer page block. */
.feature-card { overflow:visible; border-width:1px; border-radius:3px 10px 10px 3px; }
.feature-card::before { content:''; position:absolute; inset:4px -7px -3px 5px; z-index:-1; pointer-events:none; border-radius:2px 8px 8px 2px; background:repeating-linear-gradient(90deg,#d8d2c5 0 1px,#f1ecdf 1px 2px); box-shadow:2px 2px 0 color-mix(in srgb,var(--accent) 40%,#25212a),5px 8px 12px #0006; }
.feature-card::after { content:''; position:absolute; inset:0; z-index:16; pointer-events:none; border-radius:inherit; background:linear-gradient(90deg,#0005 0,#ffffff30 1%,#0004 2.2%,#ffffff20 3.8%,transparent 6%); box-shadow:inset 0 1px 0 #ffffff65,inset -1px 0 0 #ffffff35; }
.feature-cover { padding:0; overflow:hidden; background:#111; border-radius:2px 9px 0 0; }
.feature-cover img { object-fit:fill; }
.feature-card-actions { border-radius:0 0 9px 2px; }
.feature-card.is-selected .feature-cover:hover img { scale:1; }
.feature-badge { z-index:2; }

@media(max-width:700px) {
  /* One scroll container: long synopses must determine their full height. */
  #detail .detail-shell { display:block; }
  #detail .detail-copy { height:auto; max-height:none; overflow:visible; }
  #detail .media-scroll { height:auto; max-height:none; overflow:visible; clear:both; }
  #detail .media-card { position:relative; top:auto; height:auto; min-height:0; transform:none; margin:0 0 30px; }
  #detail .media-card img { display:block; width:100%; height:auto; max-height:none; object-fit:contain; }
  #detail .media-card.wide img { max-height:none; }
  #detail .video-card img { position:absolute; height:100%; object-fit:cover; }

  /* Collections remain directly available while browsing the visual library. */
  .header { flex-wrap:wrap; gap:14px; }
  .header #filters { display:flex; order:3; flex:0 0 100%; width:100%; max-width:100%; overflow-x:auto; flex-wrap:nowrap; padding:5px; gap:4px; border-radius:22px; transform:none; background:#17121dd9; color:#fff; border:1px solid #ffffff35; backdrop-filter:blur(18px); scrollbar-width:none; }
  .header #filters button { flex:0 0 auto; border:0; border-radius:18px; padding:10px 13px; font-size:13px; min-height:40px; }
  .header #filters button.selected { color:#000; }
  .header #filters button:hover { background:#ffffff20; }
  .header #filters button.selected:hover { background:var(--yellow); }
  .header #featured-nav,.header #filters [data-page] { display:none; }
  .showing-directory .header #filters { display:none; }
  .project-row-action { display:grid; grid-template-columns:48px minmax(0,1fr) 20px; gap:14px; align-items:center; padding:20px 0; }
  .project-row-cover { width:48px; height:72px; }
  .project-row-copy { min-width:0; gap:7px; }
  .project-row-title { font-size:17px; }
  .project-row-author { font-size:13px; }
  .project-row-meta { font-size:11px; }
  .project-row-arrow { width:20px; height:20px; margin:0; }
  .feature-card { border-radius:3px 10px 10px 3px; }
  .feature-card::before { right:-5px; }
  .feature-badge { padding:7px 11px; }
}
