/* Three-photo stack: one large print leads, two small instant prints overlap its lower right corner.
   Captions use .type-cap (typewriter.css). prints.js drops the prints into place when they scroll into view. */
.pstack { position: relative; width: 100%; max-width: 31rem; box-sizing: border-box; }
/* room below the big print for the two small ones; a pseudo-element so the % follows the stack's own width */
.pstack::after { content: ""; display: block; padding-bottom: 25%; }
.pstack figure { margin: 0; }
.pp { position: relative; box-sizing: border-box; background: #fbf8f1; padding: .7rem .7rem 0;
  box-shadow: 0 1px 1px rgba(0,0,0,.35), 0 14px 22px -8px rgba(0,0,0,.55); rotate: var(--r, 0deg); }
.pp img { display: block; width: 100%; height: auto; object-fit: cover; }
.pp.big { width: 90%; --r: -2deg; z-index: 1; }
.pp.big img { aspect-ratio: 4 / 3; }
.pp.big .type-cap { text-align: left !important; padding-left: .35rem !important; }
.pp.s1, .pp.s2 { position: absolute; padding: .45rem .45rem 0; }
.pp.s1 img, .pp.s2 img { aspect-ratio: 4 / 5; }
/* a print with no caption keeps the same white base as a captioned one, just blank */
.pp:not(:has(figcaption))::after { content: ""; display: block; height: var(--pp-base, 2rem); }
.pp.s1 { right: 0; bottom: 3%; width: 35%; --r: 5deg; z-index: 2; }
.pp.s2 { right: 30%; bottom: 0; width: 30%; --r: -6deg; z-index: 3; }
.pp.s1 .type-cap, .pp.s2 .type-cap { font-size: clamp(.8rem, .74rem + .15vw, .9rem) !important; padding-block: .55em .5em !important; }
/* clear matte tape on the big print */
.pp-tape { position: absolute; top: -.75rem; left: 50%; width: 5.4rem; height: 1.55rem; margin-left: -2.7rem; rotate: -3deg; z-index: 4;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.24) 45%, rgba(255,255,255,.36));
  box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.18); }
/* steel paper clip on a small print */
.pp-clip { position: absolute; top: -1.05rem; left: 16%; width: 1.05rem; height: 2.9rem; z-index: 4; overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); }
@media (prefers-reduced-motion: no-preference) {
  .pstack.in .pp { animation: ppDrop .7s cubic-bezier(.22,1.25,.36,1) backwards; }
  .pstack.in .pp.s1 { animation-delay: .32s; }
  .pstack.in .pp.s2 { animation-delay: .55s; }
  @keyframes ppDrop { from { translate: 0 -22px; scale: 1.07; rotate: calc(var(--r, 0deg) - 4deg); box-shadow: 0 30px 40px -10px rgba(0,0,0,.45); } }
}

/* the two captions sit clear of the overlapping poster print: big one left, Royal Mile right */
.pp.s1 .type-cap { text-align: right !important; padding-right: .35rem !important; }
/* phones: the poster print is a little narrower so it clears both captions */
@media (max-width: 520px) { .pp.s2 { width: 26%; right: 22%; } }

/* the captioned Royal Mile print lies on top of the blank poster print, so its caption is never covered */
.pp.s1 { z-index: 3; } .pp.s2 { z-index: 2; }

/* 2026-11-17 Hugh: a print with no caption (a poster) gets an even white frame, no blank base.
   A small print that lies on top of the stack has its caption centred. */
.pp:not(:has(figcaption))::after { height: .7rem; }
.pp.s1:not(:has(figcaption))::after, .pp.s2:not(:has(figcaption))::after { height: .45rem; }
.pp.s1 .type-cap, .pp.s2 .type-cap { text-align: center !important; padding-inline: .2rem !important; }
