/* album.css: the years as a photo album on the site's paper. Nothing here animates until a print is touched. */
.album { padding-top: 6px; }
.alb-year-sec { margin: 0 0 clamp(60px, 11vh, 130px); }
.alb-facts { margin: 0 0 clamp(18px, 3vh, 34px); font-size: clamp(12.5px, 0.35vw + 11px, 18px); opacity: 0.72; max-width: 52ch; }
.alb-sheet { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-around; gap: clamp(30px, 6vh, 64px) clamp(18px, 3.4vw, 70px); }

/* a print: its place on the page (turned a little), the shadow it presses onto the paper, the photographic paper with its worn edge */
.ph { margin: var(--mt, 0) 0 0; flex: none; max-width: 100%; }
.print { all: unset; display: block; position: relative; width: 100%; box-sizing: border-box; cursor: pointer; transform: rotate(var(--r, 0deg)); -webkit-tap-highlight-color: transparent; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.print:focus-visible { outline: 1.5px dashed var(--chrome, #15141a); outline-offset: 8px; }
.sh { position: absolute; inset: 1.5px; box-shadow: 0 0.5px 0.8px rgba(38, 26, 14, 0.55), 0 2px 3px -0.5px rgba(38, 26, 14, 0.38), 1px 5px 9px -3px rgba(38, 26, 14, 0.3); border-radius: 1px; transition: box-shadow 0.3s ease, opacity 0.25s ease; }
.pp { display: block; position: relative; padding: var(--b, 8px); background: linear-gradient(172deg, #f8f3e6 0%, #f1ead8 55%, #e9dfc8 100%); transition: opacity 0.2s ease; }
.pp img { display: block; position: relative; z-index: 1; width: 100%; height: auto; transition: opacity 0.9s ease; filter: grayscale(1) sepia(0.5) contrast(1.06) brightness(1.03); }
/* the photograph's own age: a little fading toward the edges, a faint sheen, the line where the image meets its border */
.pp::after { content: ""; position: absolute; inset: var(--b, 8px); pointer-events: none; background: radial-gradient(120% 110% at 46% 42%, rgba(255, 244, 214, 0) 55%, rgba(120, 86, 40, 0.2) 100%), linear-gradient(118deg, rgba(255, 250, 235, 0.12) 0%, rgba(255, 250, 235, 0) 38%); box-shadow: inset 0 0 0 0.5px rgba(60, 40, 20, 0.35); }
@media (hover: hover) and (pointer: fine) {
  .print:hover { transform: rotate(calc(var(--r, 0deg) * 0.4)) translateY(-2px) scale(1.012); }
  .print:hover .sh { box-shadow: 0 0.5px 0.8px rgba(38, 26, 14, 0.4), 0 6px 9px -2px rgba(38, 26, 14, 0.3), 2px 14px 22px -8px rgba(38, 26, 14, 0.32); }
}
/* picked up: the print is in the hand; its mounts stay on the page around a paler patch */
.print.away .pp, .print.away .sh { opacity: 0; }
.print.away::before { content: ""; position: absolute; inset: 3px; background: rgba(255, 252, 244, 0.5); box-shadow: inset 0 0 6px rgba(120, 100, 70, 0.14); }

/* photo corners: black paper triangles holding the print */
.corner { position: absolute; width: clamp(15px, 9%, 26px); aspect-ratio: 1; background: linear-gradient(135deg, #2a2622, #15130f); box-shadow: 0 1px 1.5px rgba(20, 14, 8, 0.45); z-index: 2; }
.corner.tl { left: -3px; top: -3px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.corner.tr { right: -3px; top: -3px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.corner.bl { left: -3px; bottom: -3px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.corner.br { right: -3px; bottom: -3px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
/* tape: yellowed, a little see-through, torn at both ends */
.tape { position: absolute; height: clamp(15px, 6%, 22px); width: clamp(54px, 26%, 96px); background: linear-gradient(180deg, rgba(232, 214, 160, 0.72), rgba(222, 200, 140, 0.66)); box-shadow: 0 0.5px 1px rgba(60, 44, 16, 0.28); z-index: 2; transform: rotate(var(--tr, -3deg));
  clip-path: polygon(0 12%, 3% 0, 6% 14%, 9% 2%, 100% 0, 97% 16%, 100% 34%, 97% 52%, 100% 70%, 97% 86%, 100% 100%, 5% 100%, 2% 84%, 5% 66%, 1% 48%, 4% 30%); }
.tape.t1 { left: 50%; top: 0; margin: -0.6em 0 0 -13%; }
.tape.t2a { left: -4%; top: 2%; --tr: -38deg; transform: rotate(-40deg); }
.tape.t2b { right: -4%; top: 2%; transform: rotate(40deg); }
.alb-cap { margin: 12px 4px 0; font-size: clamp(11.5px, 0.34vw + 10px, 16.5px); line-height: 1.45; opacity: 0.82; transform: rotate(var(--cr, 0deg)); transform-origin: 0 0; }
.ph.sm .alb-cap { font-size: clamp(10.5px, 0.3vw + 9.4px, 15px); }

/* a year without photographs yet */
.alb-card { position: relative; width: min(100%, 25em); padding: 1.5em 1.6em 1.2em; box-sizing: border-box; background: linear-gradient(175deg, #fbf8ee, #f2ecda); box-shadow: 0 0.5px 0.8px rgba(38, 26, 14, 0.5), 0 3px 5px -1px rgba(38, 26, 14, 0.3); transform: rotate(var(--r, -1deg)); margin: 8px 0 0; background-image: linear-gradient(175deg, #fbf8ee, #f2ecda), repeating-linear-gradient(180deg, transparent 0 1.55em, rgba(60, 90, 140, 0.16) 1.55em calc(1.55em + 1px)); background-blend-mode: multiply; }
.alb-card-hand { font-family: Kalam, cursive; font-weight: 700; font-size: 1.7em; line-height: 1.15; margin: 0 0 0.3em; }
.alb-card-line { margin: 0; font-size: 0.8em; opacity: 0.8; }

/* the year at the upper right, over a fade of the paper so the pages pass under it */
.alb-top { position: fixed; left: 0; right: 0; top: 0; height: clamp(74px, 13vh, 130px); pointer-events: none; z-index: 10; background: linear-gradient(to top, rgba(241, 236, 226, 0), rgba(241, 236, 226, 0.95) 58%); opacity: 0; transition: opacity 0.3s ease; }
.alb-top.on, .alb-year.on { opacity: 1; }
.alb-year { position: fixed; right: clamp(14px, 2.6vw, 44px); top: clamp(8px, 1.8vh, 22px); height: clamp(50px, 8.4vh, 96px); z-index: 11; display: grid; justify-items: end; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
.alb-year .yc { grid-area: 1 / 1; display: block; height: clamp(50px, 8.4vh, 96px); width: auto; transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s linear; }
.alb-year .yt { font-family: Kalam, cursive; font-weight: 700; font-size: clamp(40px, 7vh, 80px); line-height: 1; }
.alb-year .yc.enter { transform: translateY(calc(var(--dir, 1) * 108%)); opacity: 0; transition: none; }
.alb-year .yc.out { transform: translateY(calc(var(--dir, 1) * -108%)); opacity: 0; }
body.swap .alb-year, body.swap .alb-top, html.alb-open .alb-year, html.alb-open .alb-top, html:not(.ready) .alb-year { opacity: 0; }

/* the print in the hand (PhotoSwipe): the page blurs behind it, the print carries its border and a deeper shadow, its colour comes in */
.pswp--album { --pswp-root-z-index: 60; --pswp-bg: transparent; --pswp-placeholder-bg: #cfc3a8; --pswp-icon-color: #15141a; --pswp-icon-color-secondary: #f1ece2; --pswp-icon-stroke-color: #f1ece2; --pswp-icon-stroke-width: 1.5px; font-family: "Special Elite", monospace; }
.alb-veil { position: fixed; inset: 0; z-index: 59; pointer-events: none; background: rgba(236, 230, 218, 0.58); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s 0.4s; }
html.alb-open .alb-veil { opacity: 1; visibility: visible; transition: opacity 0.4s ease; }
.pswp--album .pswp__img { filter: grayscale(1) sepia(0.5) contrast(1.06) brightness(1.03); transition: filter 0.9s ease; }   /* in the hand the print has no shadow and no frame (the owner): only the page blurs behind it */
.pswp--album.col .pswp__img { filter: none; }
.pswp--album .pswp__counter { color: #15141a; text-shadow: none; opacity: 0.72; font-size: clamp(13px, 0.45vw + 11px, 18px); margin: clamp(14px, 2vh, 24px) 0 0 clamp(14px, 1.6vw, 28px); height: auto; line-height: 1.4; }
.pswp--album .pswp__button { cursor: pointer; }
.pswp__albcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 18px max(clamp(16px, 2.6vh, 30px), env(safe-area-inset-bottom)); box-sizing: border-box; text-align: center; color: #15141a; font-size: clamp(14.5px, 0.62vw + 11.5px, 21px); line-height: 1.45; letter-spacing: 0.01em; pointer-events: none; }
.pswp__albcap b { display: block; font-weight: 400; opacity: 0.66; font-size: 0.86em; margin-bottom: 3px; }
.pswp__albcap span { display: block; max-width: 62ch; margin: 0 auto; }

@media (max-width: 649px) {
  .alb-sheet { gap: 26px 4vw; justify-content: space-between; }
  .ph { --mt: 0px !important; }
  .ph.sm:nth-of-type(even) { margin-top: 18px; }
  .ph.big { margin-left: auto; margin-right: auto; }
  .alb-cap { margin-top: 9px; }
  .alb-veil { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
}
@media (prefers-reduced-motion: reduce) { .print, .sh, .alb-year .yc, .pswp--album .pswp__img { transition: none; } }

/* the lightbox's controls in the site's hand: marker strokes, no modern chevrons */
.pswp--album .pswp__icn { fill: none; stroke: #15141a; stroke-width: 4.4px; }
/* the arrows: a paper tab at each edge of the screen with an arrow drawn on it in marker, so it reads over a dark photograph without an outline */
.pswp--album .pswp__button--arrow { width: 50px; height: 60px; margin-top: -30px; }
.pswp--album .pswp__button--arrow::before { content: ""; position: absolute; inset: 0 0 0 -8px; background: linear-gradient(172deg, #f8f3e6 0%, #f1ead8 55%, #e9dfc8 100%); clip-path: polygon(0 1.5%, 38% 0, 71% 2.5%, 96% 0.5%, 100% 31%, 97.5% 63%, 100% 98%, 64% 100%, 30% 97.5%, 0 99.5%); transform: rotate(-2.4deg); filter: drop-shadow(0 1px 1.5px rgba(40, 28, 10, 0.35)); }
.pswp--album .pswp__button--arrow--next::before { inset: 0 -8px 0 0; transform: rotate(1.8deg) scaleX(-1); }
.pswp--album .pswp__button--arrow .pswp__icn { width: 34px; height: 34px; top: 50%; margin-top: -17px; left: 5px; }
.pswp--album .pswp__button--arrow--next .pswp__icn { left: auto; right: 5px; }
/* close: the word, typed and underlined like the other links on the sheet */
.pswp--album .pswp__button--close { width: auto; height: auto; margin: clamp(10px, 1.6vh, 20px) clamp(12px, 1.6vw, 28px) 0 0; padding: 6px 4px; opacity: 1; overflow: visible; }
.pswp--album .alb-close { display: block; font-family: "Special Elite", monospace; font-size: clamp(15px, 0.5vw + 13px, 20px); line-height: 1.3; letter-spacing: 0.02em; color: #15141a; border-bottom: 1px solid rgba(21, 20, 26, 0.45); padding-bottom: 1px; }
.pswp--album .pswp__img { cursor: inherit; }
/* a mouse has the arrows too, since a click on the print now zooms it (the owner, 2026-11-20); on a touch screen they are also the hint that the prints can be swiped */
@media (hover: none), (pointer: coarse) { .pswp--album.pswp--touch .pswp__button--arrow { visibility: visible; opacity: 0.94; } .pswp--album.pswp--one-slide .pswp__button--arrow { visibility: hidden; } }
/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* the place of a photograph that has not arrived: a few grey pixels, toned like the prints, kept hard-edged; the photograph fades up over them */
.pp img.wait { opacity: 0; }
.pp .lq { position: absolute; inset: var(--b, 8px); background-size: 100% 100%; background-repeat: no-repeat; image-rendering: pixelated; filter: grayscale(1) sepia(0.5) contrast(1.06) brightness(1.03); }
@media (prefers-reduced-motion: reduce) { .pp img { transition: none; } }

/* a tap anywhere puts the print back: the count in the corner and the caption must not be the spots that do nothing
   (PhotoSwipe turns pointer events back on for everything it shows with the controls, so the caption needs the longer selector) */
.pswp--album .pswp__counter, .pswp--album .pswp__preloader, .pswp--album.pswp--ui-visible .pswp__albcap, .pswp--album .pswp__albcap { pointer-events: none; }
/* zoomed in (a click or tap on the print, the owner 2026-11-20) the print runs under the controls: the word close gets a paper tab of its own, like the arrows',
   so it still reads over a dark photograph, and the count and the caption step aside until the print is zoomed back */
.pswp--album .pswp__button--close::before { content: ""; position: absolute; inset: -3px -12px -5px -12px; z-index: -1; pointer-events: none; background: linear-gradient(172deg, #f8f3e6 0%, #f1ead8 55%, #e9dfc8 100%); clip-path: polygon(0 5%, 34% 0, 70% 6%, 100% 1%, 98% 52%, 100% 96%, 62% 100%, 28% 93%, 1.5% 100%, 2.5% 48%); transform: rotate(-1.6deg); filter: drop-shadow(0 1px 1.5px rgba(40, 28, 10, 0.35)); opacity: 0; transition: opacity 0.25s ease; }
.pswp--album.pswp--zoomed-in .pswp__button--close::before { opacity: 1; pointer-events: auto; }   /* the whole tab closes, its edges too */
.pswp--album .pswp__counter { transition: opacity 0.25s ease; }
.pswp--album.pswp--zoomed-in .pswp__counter, .pswp--album.pswp--zoomed-in.pswp--ui-visible .pswp__albcap { opacity: 0; }
