/* Wim Ruitenbeek Fonds — projecten: verhaal van de auteur
 * Apart bestand (niet in style.css) zodat de lange cache op /assets/*
 * geen oude versie van style.css laat hangen.
 */

.card--story { cursor: pointer; }
.card-more {
  margin-top: auto; padding: 14px 0 0; align-self: flex-start;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  color: var(--green-700); transition: color .2s;
}
.card-more span { display: inline-block; transition: transform .2s; }
.card--story:hover .card-more { color: var(--gold-600); }
.card--story:hover .card-more span { transform: translateX(4px); }
.card-more:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

/* Venster */
.story-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--cream-2); color: var(--ink);
  box-shadow: var(--shadow-lg); overflow-y: auto;
}
.story-dialog::backdrop { background: rgba(20, 35, 22, .62); }
.story-dialog[open] { animation: story-in .25s ease; }
@keyframes story-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.story-photo { position: relative; aspect-ratio: 16/7; overflow: hidden; background: var(--green-100); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(35,55,38,.55) 100%);
}
.story-body { padding: 28px 36px 36px; }
.story-body .eyebrow { color: var(--gold-600); margin: 0 0 .4em; }
.story-body h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.story-text p { margin: 0 0 1em; }
.story-text .story-author {
  margin-top: 1.4em; font-family: var(--font-head); font-weight: 600;
  color: var(--green-700); font-style: italic;
}

.story-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--green-800);
  font-size: 1.6rem; line-height: 1; box-shadow: var(--shadow-sm);
  transition: background .2s, transform .2s;
}
.story-close:hover { background: #fff; transform: scale(1.06); }
.story-close:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

@media (max-width: 600px) {
  .story-photo { aspect-ratio: 16/9; }
  .story-body { padding: 22px 20px 28px; }
}
@media (prefers-reduced-motion: reduce) { .story-dialog[open] { animation: none; } }
