/* Les pages de l'atelier (workshop/<slug>.html) : un objet, une photo principale, quelques photos, un peu de texte.
   Les photos sont des tirages posés sur la page de l'album, tenus par quatre coins photo en papier noir. Tant qu'une
   photo manque, il reste sa place : le papier resté plus clair là où elle ira, les coins déjà collés. */

.work { padding-top: 124px; padding-bottom: 96px; }
.work-back { display: inline-flex; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink2); text-decoration: none; }
.work-back:hover { color: var(--ink); }
.work-head { margin: 36px 0 40px; max-width: 820px; }
.kicker { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fox-ink); }
.work-head h1 { margin: 0; font-size: clamp(46px, 6.2vw, 86px); line-height: .98; font-weight: 500; letter-spacing: -0.01em; }
.work-lede { margin: 18px 0 0; max-width: 40ch; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 25px); line-height: 1.4; color: var(--ink2); }

/* ---------- Un tirage et ses coins ---------- */
.snap { position: relative; margin: 0; --pc: 26px; }
.snap.lead { --pc: 46px; }
.slot { position: relative; aspect-ratio: 4 / 3; }
.lead .slot { aspect-ratio: 16 / 9; }
.snap:not(.empty) .slot { box-shadow: 0 1px 2px rgba(var(--sh), .28), 0 18px 30px -14px rgba(var(--sh), .4); }
.snap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.snap figcaption { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink2); }

/* La place vide : le papier n'a pas jauni sous la photo, ses bords gardent une ombre de poussière. */
.snap.empty .slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background-color: #fbf7ef; background-image: var(--grain); background-size: 512px; background-blend-mode: multiply;
  box-shadow: inset 0 0 0 1px rgba(var(--sh), .07), inset 0 0 22px rgba(var(--sh), .07);
}
.snap.empty figcaption { margin: 0; font-size: 18px; }
.ghost { width: min(38%, 340px); height: auto; max-height: 52%; fill: none; stroke: rgba(61, 48, 41, .34); stroke-linecap: round; stroke-linejoin: round; }
.ghost * { vector-effect: non-scaling-stroke; stroke-width: 1.3px; stroke: inherit; } /* certains dessins fixent leur couleur sur un groupe */

/* Les coins photo (dans .slot, donc sur les coins du tirage même s'il a une légende) : des triangles de papier
   noir qui débordent un peu du tirage, avec leur ombre. */
.pc { position: absolute; width: var(--pc); height: var(--pc); filter: drop-shadow(0 1px 1px rgba(20, 12, 6, .45)) drop-shadow(0 3px 4px rgba(var(--sh), .18)); pointer-events: none; }
.pc::before { content: ''; position: absolute; inset: 0; background: #2e241e var(--grain) 0 0 / 256px; background-blend-mode: multiply; }
.pc.tl { top: -5px; left: -5px; }  .pc.tl::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
.pc.tr { top: -5px; right: -5px; } .pc.tr::before { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.pc.bl { bottom: -5px; left: -5px; } .pc.bl::before { clip-path: polygon(0 0, 100% 100%, 0 100%); }
.pc.br { bottom: -5px; right: -5px; } .pc.br::before { clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* ---------- Le texte et les photos ---------- */
.work-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; margin-top: 76px; align-items: start; }
.work-text { font-size: 18px; line-height: 1.7; max-width: 58ch; }
.work-text p { margin: 0 0 1em; }
.work-text .pending { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--ink2); }
.snaps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 34px; }

/* ---------- L'objet d'avant, l'objet d'après ---------- */
.work-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 96px; padding-top: 26px; border-top: 1px solid var(--crease-dark); box-shadow: inset 0 1px 0 var(--crease-light); }
.work-nav a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.work-nav .next { text-align: right; align-items: flex-end; }
.work-nav small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.work-nav a > span { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.work-nav a:hover > span { color: var(--fox-ink); }

@media (max-width: 900px) {
  .work-body { grid-template-columns: 1fr; gap: 44px; margin-top: 52px; }
}
@media (max-width: 720px) {
  .work { padding-top: 22px; }
  .work-head { margin: 26px 0 30px; }
  .snap.lead { --pc: 30px; }
  .lead .slot { aspect-ratio: 4 / 3; }
  .snaps { gap: 26px 20px; }
  .snap { --pc: 20px; }
  .snap.empty figcaption { font-size: 16px; }
  .work-nav { margin-top: 64px; }
}
