/* projects: smaller diaries, three per row on wide screens (loaded after style.css) */
.diaries{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:56px 40px;align-items:end;margin-top:24px}
.diary{max-width:none;min-width:0}
/* under each diary: name on the left, small page numbers on the right */
.diary-bar{flex-direction:row;flex-wrap:nowrap;align-items:baseline;justify-content:space-between;gap:12px;margin-top:12px}
.diary-name{font-size:15px}
.diary-ctrl{display:flex;align-items:baseline;gap:0;font-size:12px;letter-spacing:.04em;opacity:.7}
.dcount{min-width:0;text-align:right;white-space:nowrap}
/* the full screen button stays for keyboards and screen readers, visible only when focused */
.dfull{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.dfull:focus-visible{position:static;width:auto;height:auto;min-height:32px;padding:0 10px;margin-left:12px;clip:auto;overflow:visible;border:1px solid rgba(20,18,16,.45);font-size:12px}
.diary-book{cursor:grab}
@media (max-width:560px){.diaries{grid-template-columns:1fr;gap:48px}.diary-bar{flex-direction:row;align-items:baseline}}

/* page turn: no cut-off outer shadow, soft grainy shadows like the full screen viewer */
.diary-book .stf__outerShadow,.flip-wrap .stf__outerShadow{display:none!important}
.diary-book .stf__innerShadow,.diary-book .stf__hardShadow,.diary-book .stf__hardInnerShadow{
  -webkit-mask-image:url(img/grain-soft.png);mask-image:url(img/grain-soft.png);-webkit-mask-size:180px;mask-size:180px;mix-blend-mode:multiply;filter:grayscale(1)}
/* keep every page-turn shadow inside the book */
.diary-book .stf__block,.flip-wrap .stf__block{overflow:hidden;clip-path:inset(0)}
/* small diaries: the scans have a transparent margin around the paper, so shadows showed up as grey boxes there. No shadows here. */
.diary-book .stf__innerShadow,.diary-book .stf__hardShadow,.diary-book .stf__hardInnerShadow{display:none!important}
.diary-book{touch-action:pan-y}
