
/* The rotated links keep their printed hit areas. Only the painted sheet lifts. */
#fixtures .issue-leaf {
  --leaf-tilt: 0deg;
  transform: rotate(var(--leaf-tilt));
  border-color: transparent;
  background: none;
  box-shadow: none;
  transition: none;
  -webkit-tap-highlight-color: transparent;
}
#fixtures .issue-leaf-ads { --leaf-tilt: 13deg; }
#fixtures .issue-leaf-news { --leaf-tilt: -11deg; }
#fixtures .issue-leaf-cover { --leaf-tilt: -3deg; }
#fixtures .issue-leaf:not(.issue-leaf-cover) { z-index: auto; }
#fixtures .issue-leaf-cover { z-index: 1; }
#fixtures .issue-leaf img {
  background: var(--paper);
  outline: 1px solid #665c4b;
  box-shadow: 3px 5px 9px #1e180f3d, 9px 13px 20px #2c1d122b;
  transition: transform .28s cubic-bezier(.22,.7,.2,1), box-shadow .28s;
  pointer-events: none;
}
#fixtures .issue-leaf:focus-visible,
#posters .photo-link:focus-visible {
  outline: 2px solid #ad4e28;
  outline-offset: 4px;
}
#posters .photo-link { -webkit-tap-highlight-color: transparent; }
#posters .photo-link .enlarge { pointer-events: none; background: var(--paper); color: var(--ink); }
#posters .photo-link:focus-visible .enlarge { background: #a84923; color: #fff; }

@media (hover: hover) and (pointer: fine) {
  :root[data-media-pointer="mouse"]:not(.media-opened) #fixtures .issue-leaf:hover img {
    transform: rotate(calc(-1 * var(--leaf-tilt))) translateY(-3%) scale(1.04);
    box-shadow: 4px 8px 14px #1e180f63;
  }
  :root[data-media-pointer="mouse"]:not(.media-opened) #posters .photo-link:hover .enlarge {
    background: #a84923;
    color: #fff;
  }
}
.media-opened #fixtures .issue-leaf img { transition: none; }

#fixtures .issue-leaf:active img,
#posters .photo-link:active img { filter: brightness(.89) sepia(.12); }
#posters .photo-link:active .enlarge { background: #9b3d16; color: var(--cream); }

.reader-load-retry { position: absolute; z-index: 2; inset: auto auto 1em; }
.reader-scroll.is-zoomed .reader-load-retry { inset-inline-start: 1em; }

#plate-viewport { position: relative; }
#plate-viewport[data-plate-fit="true"] {
  block-size: min(72dvh, calc(min(94vw, 1100px) / var(--plate-ratio, 1.5)));
  background: #25231f;
}
#plate-viewport[data-plate-fit="true"] img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  background: none;
}
#plate-viewport[aria-busy="true"][data-preview-painted] img { visibility: visible; }
#plate-viewport[data-plate-fit="false"][aria-busy="true"] {
  min-height: min(72dvh, calc(980px / var(--plate-ratio, 3.36)));
}

