/* Archive page: every old photograph, through time (the Sana as a time line) and on the map. */
.arhiv-page { --print: #efe9db; --line: 58%; --pad: clamp(20px, 3.4vw, 48px); background: #111614; color: var(--paper); }
.arhiv-page .site-nav { position: fixed; }
/* paper grain over everything, so the dark never looks flat */
.arhiv-page::before {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.arhiv-page button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.arhiv-page [hidden] { display: none !important; }

/* ---------- title, view switch, themes ---------- */
.arh-head { padding: 96px var(--pad) 0; }
.arh-head .eyebrow { color: var(--sand); margin-bottom: 14px; }
.arh-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 4.4vw, 4.2rem); line-height: .96; letter-spacing: -.01em; max-width: 11em; }
.arh-head h1 em { color: var(--sand); }
.arh-tools { display: flex; flex-direction: column; gap: 14px; padding: 22px 0 0 var(--pad); }
.arh-toggle { align-self: flex-start; display: flex; padding: 4px; border: 1px solid rgba(246, 244, 238, .22); border-radius: 99px; }
.arh-toggle button { min-height: 40px; padding: 0 20px; border-radius: 99px; font-size: .8rem; letter-spacing: .06em; opacity: .75; transition: background .3s ease, color .3s ease, opacity .3s ease; }
.arh-toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); opacity: 1; }
.arh-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-right: var(--pad); }
.arh-chips::-webkit-scrollbar { display: none; }
.arh-chips button { flex: none; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(246, 244, 238, .18); font-size: .76rem; opacity: .8; transition: border-color .25s ease, color .25s ease, opacity .25s ease; }
.arh-chips button:hover { opacity: 1; }
.arh-chips button[aria-pressed="true"] { border-color: var(--sand); color: var(--sand); opacity: 1; }

/* ---------- 1. through time ---------- */
.strip { position: relative; }
.print { position: relative; display: block; padding: 0; transform: rotate(var(--r)); transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
.print img { display: block; background: #23201b; border: 7px solid var(--print); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .4); }
.print::after { content: ""; position: absolute; inset: 7px; pointer-events: none; box-shadow: inset 0 0 26px rgba(0, 0, 0, .28); }
.print:hover, .print:focus-visible { transform: rotate(0deg) scale(1.045); z-index: 5; }
.print:focus-visible { outline: 2px solid var(--sand); outline-offset: 5px; }
.js-reveal .it:not(.in) .print { opacity: 0; translate: 0 22px; }
.it .cap { font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.25; color: rgba(246, 244, 238, .86); }
.it .yr { font-size: .74rem; letter-spacing: .2em; color: var(--sand); font-variant-numeric: lining-nums; white-space: nowrap; }
.dec b { font-family: var(--serif); font-weight: 500; line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(246, 244, 238, .2); white-space: nowrap; font-variant-numeric: lining-nums; }
.arh-end { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.1; }
.arh-end .end-game { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--paper); opacity: .8; text-decoration: none; }
.arh-end button { display: block; margin-top: 18px; font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); min-height: 44px; }

.arh-hint { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 244, 238, .66); }
#count { color: rgba(246, 244, 238, .66); }
/* the year bar at the bottom: one column for every two years, as tall as the number of photographs in them.
   Columns up to the year in the middle of the screen are lit; a faint second needle follows the mouse. */
.scrub { position: fixed; z-index: 15; left: 50%; width: min(1040px, calc(100% - 2 * var(--pad) - 40px)); transform: translateX(-50%); bottom: 30px; height: 56px; cursor: pointer; touch-action: none; }
.scrub::before {
  content: ""; position: absolute; inset: -16px -20px -12px; z-index: -1; border-radius: 18px;
  background: linear-gradient(rgba(20, 26, 24, .78), rgba(14, 18, 17, .9)); border: 1px solid rgba(246, 244, 238, .1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.scrub .bars { position: absolute; inset: 0 0 20px; display: flex; align-items: flex-end; gap: 3px; }
/* the baseline, with a small mark at every decade */
.scrub .bars::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; pointer-events: none;
  border-top: 1px solid rgba(246, 244, 238, .2);
  background: repeating-linear-gradient(90deg, rgba(246, 244, 238, .28) 0 1px, transparent 1px calc(100% * 10 / 114));
}
.scrub .bars i { flex: 1; min-height: 0; border-radius: 2px 2px 0 0; background: rgba(246, 244, 238, .17); transition: background .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); transform-origin: bottom; }
.scrub .bars i.past { background: rgba(127, 214, 220, .42); }
.scrub .bars i.near { background: var(--sand); transform: scaleY(1.12); box-shadow: 0 0 12px rgba(127, 214, 220, .35); }
.scrub:hover .bars i:not(.past) { background: rgba(246, 244, 238, .26); }
.scrub-ghost { position: absolute; top: 0; bottom: 20px; width: 1px; background: rgba(246, 244, 238, .5); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.scrub-ghost b { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: .64rem; letter-spacing: .1em; color: rgba(246, 244, 238, .8); font-variant-numeric: lining-nums; }
.scrub.hov .scrub-ghost { opacity: 1; }
.ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; font-size: .64rem; letter-spacing: .16em; color: rgba(246, 244, 238, .62); font-variant-numeric: lining-nums; }
.ticks span { position: absolute; transform: translateX(-50%); }
.ticks span:first-child { transform: none; }
.ticks span:last-child { transform: translateX(-100%); }
.needle { position: absolute; top: -8px; bottom: 16px; width: 1px; background: var(--sand); transition: left .35s cubic-bezier(.2, .7, .2, 1); }
.needle::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 4px rgba(127, 214, 220, .2); }
.needle b { font-style: normal; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding: 3px 9px; border-radius: 99px; background: var(--sand); color: var(--ink); font-size: .68rem; font-weight: 500; letter-spacing: .08em; white-space: nowrap; font-variant-numeric: lining-nums; }

/* wide screens: the page scrolls down, the strip moves sideways along the river */
@media (min-width: 900px) and (min-height: 560px) {
  .arh-head { position: fixed; z-index: 10; top: 0; left: 0; pointer-events: none; }
  .arh-head h1 { transition: font-size .6s cubic-bezier(.2, .7, .2, 1); }
  .sc .arh-head h1, .v-map .arh-head h1 { font-size: 1.7rem; max-width: none; }
  .arh-tools { position: fixed; z-index: 10; top: 100px; right: var(--pad); padding: 0; align-items: flex-end; }
  .arh-toggle { align-self: flex-end; }
  .arh-chips { padding: 0; }
  .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
  .strip { display: flex; width: max-content; height: 100%; padding: 0 var(--pad); will-change: transform; }
  .river { position: absolute; left: 0; top: calc(var(--line) - 40px); height: 80px; pointer-events: none; }
  .lead { flex: none; width: min(46vw, 640px); }
  .it { position: relative; flex: none; height: 100%; width: calc(var(--h) * var(--ar) + 14px); margin-right: clamp(44px, 4.6vw, 88px); z-index: 2; }
  .it .print { position: absolute; left: 0; }
  .it .print img { height: var(--h); width: auto; }
  .it.up .print { bottom: calc(100% - var(--line) + 54px); }
  .it.dn .print { top: calc(var(--line) + 54px); }
  /* stem and dot: from the photograph down (or up) to its year on the river */
  .it::before { content: ""; position: absolute; left: 50%; width: 1px; height: 44px; }
  .it.up::before { top: calc(var(--line) - 48px); background: linear-gradient(rgba(127, 214, 220, 0), rgba(127, 214, 220, .8)); }
  .it.dn::before { top: calc(var(--line) + 4px); background: linear-gradient(rgba(127, 214, 220, .8), rgba(127, 214, 220, 0)); }
  .it::after { content: ""; position: absolute; left: 50%; top: var(--line); width: 11px; height: 11px; margin: -5.5px; border-radius: 50%; background: #111614; border: 2px solid var(--sand); }
  .it .yr { position: absolute; left: 50%; transform: translateX(-50%); }
  .it.up .yr { top: calc(var(--line) + 16px); }
  .it.dn .yr { top: calc(var(--line) - 34px); }
  .it .cap { position: absolute; left: 50%; transform: translateX(-50%); width: max-content; max-width: max(100%, 280px); text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .it.up .cap { bottom: calc(100% - var(--line) + 54px + var(--h) + 26px); }
  .it.dn .cap { top: calc(var(--line) + 54px + var(--h) + 24px); }
  /* decades: each one used to have its own large numeral in the strip, and when a decade had only one or two photographs
     the numerals ran over each other. Now one numeral stays behind the strip and its digits roll to the decade in the middle. */
  .dec { position: relative; flex: none; width: 0; }
  .dec:not(.und) b { display: none; }
  .dec.und { width: clamp(300px, 34vw, 520px); }
  .dec-now {
    position: absolute; z-index: 0; left: 50%; top: var(--line); display: flex; transform: translate(-50%, -50%);
    font-family: var(--serif); font-weight: 500; font-size: min(44vh, 400px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums;
    color: transparent; -webkit-text-stroke: 1px rgba(246, 244, 238, .2); pointer-events: none; transition: opacity .6s ease;
  }
  .dec-now.off { opacity: 0; }
  .dec-now .dg { position: relative; display: block; overflow: hidden; padding: 0 .01em; }
  .dec-now .dg i { display: block; font-style: normal; }
  .dec-now .dg i + i { position: absolute; inset: 0; }
  .dec-now .dg .in { animation: dg-in .8s cubic-bezier(.2, .7, .2, 1) both; }
  .dec-now .dg .out { animation: dg-out .8s cubic-bezier(.2, .7, .2, 1) both; }
  .dec-now.back .dg .in { animation-name: dg-in-b; }
  .dec-now.back .dg .out { animation-name: dg-out-b; }
  .strip { position: relative; z-index: 1; }
  .dec.und b { font-size: min(15vh, 130px); left: 0; transform: translateY(-50%); }
  .arh-end { position: relative; flex: none; width: min(44vw, 560px); height: 100%; }
  .arh-end > * { position: absolute; left: 4vw; }
  .arh-end p { bottom: calc(100% - var(--line) + 30px); }
  .arh-end button { top: calc(var(--line) + 14px); margin: 0; }
  .arh-end .end-game { top: calc(var(--line) + 58px); }
  .lead { position: relative; }
  .arh-hint { position: absolute; left: 0; top: calc(var(--line) + 26px); white-space: nowrap; }
  .v-map .arh-chips { display: none; }
}
@keyframes dg-in { from { transform: translateY(70%); opacity: 0; } }
@keyframes dg-out { to { transform: translateY(-70%); opacity: 0; } }
@keyframes dg-in-b { from { transform: translateY(-70%); opacity: 0; } }
@keyframes dg-out-b { to { transform: translateY(70%); opacity: 0; } }
@media not ((min-width: 900px) and (min-height: 560px)) { .dec-now { display: none; } }
/* roomy screens: view switch and themes in one row beside the title */
@media (min-width: 1200px) and (min-height: 560px) {
  .arh-tools { top: 92px; flex-direction: row-reverse; align-items: center; gap: 18px; }
  .arh-head h1 { max-width: min(11em, calc(100vw - 840px)); }
  .sc .arh-head h1, .v-map .arh-head h1 { max-width: none; }
  .pcard { top: 164px; }
}

/* phones and tablets: the river runs down the left edge and the page scrolls normally */
@media not ((min-width: 900px) and (min-height: 560px)) {
  .strip { display: flex; flex-direction: column; padding: 34px var(--pad) 130px calc(var(--pad) + 26px); max-width: 720px; }
  .strip::before { content: ""; position: absolute; left: calc(var(--pad) + 3px); top: 34px; bottom: 90px; width: 2px; border-radius: 2px; background: linear-gradient(var(--sand), var(--river) 30%, var(--river) 85%, rgba(23, 149, 160, 0)); }
  .river, .lead { display: none; }
  .it { position: relative; display: flex; flex-direction: column; margin-bottom: 52px; --r: var(--rm); }
  .it::after { content: ""; position: absolute; left: -28px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: #111614; border: 2px solid var(--sand); }
  .it .yr { order: 1; margin-bottom: 12px; font-size: .8rem; }
  .it .print { order: 2; width: min(100%, calc(62svh * var(--ar))); }
  .it .print img { width: 100%; height: auto; }
  .it .cap { order: 3; margin-top: 12px; }
  .dec { margin: 6px 0 14px -4px; }
  .dec b { display: block; font-size: clamp(4.6rem, 22vw, 7rem); }
  .dec.und b { font-size: clamp(2.6rem, 12vw, 4rem); }
  .arh-end { padding: 10px 0 20px; }
  .scrub { left: 10px; right: 10px; bottom: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 64px; padding: 0; border-radius: 14px; border: 1px solid rgba(246, 244, 238, .14); background: rgba(17, 22, 20, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .scrub .bars { inset: 12px 12px 24px; }
  .scrub .ticks { left: 12px; right: 12px; bottom: 7px; }
  .scrub .ticks span:nth-child(6) { display: none; }
  .needle { top: 8px; bottom: 22px; margin-left: 12px; }
  .needle b, .scrub-ghost, .scrub::before { display: none; }
  .scrub { width: auto; transform: none; }
  .scrub .bars { gap: 2px; }
}

/* ---------- 2. on the map ---------- */
.v-map { overflow: hidden; }
#v-map { position: fixed; inset: 0; }
#amap { position: absolute; inset: 0; background: #0d1110; }
#amap .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.72) contrast(.9) sepia(.5) hue-rotate(125deg) saturate(.9); }
#amap::after { content: ""; position: absolute; inset: 0; z-index: 450; pointer-events: none; background: radial-gradient(ellipse at 45% 50%, rgba(13, 17, 16, 0) 40%, rgba(13, 17, 16, .78) 100%), linear-gradient(rgba(13, 17, 16, .82), rgba(13, 17, 16, 0) 26%); }
#amap .leaflet-control-attribution { background: rgba(17, 22, 20, .7); color: rgba(246, 244, 238, .6); font-size: 10px; }
#amap .leaflet-control-attribution a { color: inherit; }
#amap .leaflet-bar a { background: rgba(17, 22, 20, .86); color: var(--paper); border-color: rgba(246, 244, 238, .16); }
#amap .leaflet-top.leaflet-left { top: 42%; left: calc(var(--pad) - 10px); }
.apin-w { background: none; border: 0; }
.apin { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; overflow: hidden; border: 2px solid var(--print); background: #23201b; box-shadow: 0 10px 26px rgba(0, 0, 0, .6); transition: width .35s cubic-bezier(.2, .7, .2, 1), height .35s cubic-bezier(.2, .7, .2, 1), margin .35s cubic-bezier(.2, .7, .2, 1), opacity .5s ease, filter .5s ease, box-shadow .35s ease; }
.apin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apin-w b { position: absolute; left: calc(50% + 14px); top: calc(50% - 32px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--sand); color: var(--ink); font: 500 .66rem/20px var(--sans); text-align: center; font-variant-numeric: lining-nums; transition: opacity .4s ease; }
.apin-w em { position: absolute; left: 50%; top: calc(50% + 36px); transform: translateX(-50%); font: normal .62rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: rgba(246, 244, 238, .9); text-shadow: 0 1px 6px #000, 0 0 2px #000; transition: opacity .4s ease; }
/* place names show once the map is close enough for them not to pile up; the chosen and the hovered one always */
#amap:not(.near) .apin-w:not(.sel):not(:hover) em { opacity: 0; }
.apin-w:hover { z-index: 950 !important; }
.apin-w.sel { z-index: 900 !important; }
.apin-w.sel .apin { width: 86px; height: 86px; margin: -43px; border: 3px solid var(--sand); box-shadow: 0 0 0 8px rgba(127, 214, 220, .16), 0 16px 40px rgba(0, 0, 0, .7); }
.apin-w.sel b { left: calc(50% + 26px); top: calc(50% - 48px); }
.apin-w.sel em { top: calc(50% + 54px); color: var(--sand); }
.apin-w.off .apin { opacity: .28; filter: grayscale(1); width: 34px; height: 34px; margin: -17px; }
.apin-w.off b, .apin-w.off em { opacity: 0; }
.apin-w:focus-visible .apin { outline: 2px solid var(--sand); outline-offset: 4px; }

.pcard { position: absolute; z-index: 500; right: var(--pad); top: 214px; bottom: 124px; width: min(400px, 30vw); display: flex; flex-direction: column; padding: 18px; border-radius: 18px; border: 1px solid rgba(246, 244, 238, .14); background: rgba(17, 22, 20, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pc-im { position: relative; flex: 1; min-height: 0; padding: 0; border-radius: 10px; overflow: hidden; }
.pc-im img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.pc-im:hover img { transform: scale(1.04); }
.pc-im::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 45%); }
.pc-im b { position: absolute; z-index: 1; left: 14px; bottom: 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 4.2rem); line-height: 1; font-variant-numeric: lining-nums; text-shadow: 0 2px 20px rgba(0, 0, 0, .7); }
.pc-im b.s { font-size: 1.5rem; bottom: 12px; }
.pcard h2 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; line-height: 1.05; margin: 14px 34px 2px 0; }
.pc-note { font-size: .74rem; color: rgba(246, 244, 238, .62); }
.pc-cap { font-size: .86rem; line-height: 1.5; color: rgba(246, 244, 238, .8); margin-top: 6px; }
/* the row of small photographs of one place (arhiv.js: rail) */
.pc-rail { position: relative; margin-top: 14px; padding-bottom: 12px; }
.pc-strip {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.pc-strip::-webkit-scrollbar { display: none; }
.pc-rail.at-start .pc-strip { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); }
.pc-rail.at-end .pc-strip { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px); mask-image: linear-gradient(90deg, transparent 0, #000 28px); }
.pc-rail.fits .pc-strip, .pc-rail.at-start.at-end .pc-strip { -webkit-mask-image: none; mask-image: none; }
.pc-strip button { position: relative; flex: none; width: 62px; height: 62px; padding: 0; border-radius: 8px; overflow: hidden; scroll-snap-align: start; opacity: .62; transition: opacity .25s ease, transform .25s ease; }
.pc-strip button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(246, 244, 238, .14); transition: box-shadow .25s ease; }
.pc-strip button:hover:not(:disabled) { opacity: .9; }
.pc-strip button[aria-pressed="true"] { opacity: 1; }
.pc-strip button[aria-pressed="true"]::after { box-shadow: inset 0 0 0 2px var(--sand); }
.pc-strip button:disabled { opacity: .22; cursor: default; filter: grayscale(1); }
.pc-strip button:focus-visible { outline: 2px solid var(--sand); outline-offset: -2px; }
.pc-arr {
  position: absolute; top: 31px; z-index: 2; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: rgba(246, 244, 238, .92) !important; color: var(--ink) !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  transition: opacity .25s ease, transform .25s ease;
}
.pc-arr::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; }
.pc-arr.prev { left: -6px; }
.pc-arr.next { right: -6px; }
.pc-arr.prev::before { transform: translate(-30%, -50%) rotate(135deg); }
.pc-arr.next::before { transform: translate(-70%, -50%) rotate(-45deg); }
.pc-arr:hover { transform: scale(1.08); }
.pc-rail.at-start .pc-arr.prev, .pc-rail.at-end .pc-arr.next, .pc-rail.fits .pc-arr { opacity: 0; pointer-events: none; }
.pc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: rgba(246, 244, 238, .12); overflow: hidden; }
.pc-bar b { display: block; height: 100%; border-radius: inherit; background: var(--sand); transition: transform .15s linear; }
.pc-rail.fits .pc-bar { display: none; }
.pc-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-strip span { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 0 2px; font-size: .6rem; text-align: center; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .8)); font-variant-numeric: lining-nums; }
.pc-more { margin-top: 12px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); text-decoration: none; }
.pc-x { position: absolute; right: 8px; bottom: auto; top: auto; margin-top: 0; width: 40px; height: 40px; opacity: .7; }
.pcard .pc-x { right: 10px; top: auto; bottom: auto; }

.dial { position: absolute; z-index: 500; left: var(--pad); right: calc(var(--pad) + min(400px, 30vw) + 48px); bottom: 22px; padding-bottom: 22px; }
.dial-now { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.dial-now b { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .9; font-variant-numeric: lining-nums; }
.dial-now span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(246, 244, 238, .7); }
.play { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(246, 244, 238, .3) !important; transition: background .25s ease, border-color .25s ease; }
.play:hover { background: rgba(127, 214, 220, .14); border-color: var(--sand) !important; }
.play::before { content: ""; position: absolute; left: 18px; top: 15px; border-left: 12px solid var(--paper); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.play.on::before { left: 16px; top: 15px; width: 4px; height: 16px; border: 0; border-left: 4px solid var(--paper); border-right: 4px solid var(--paper); box-sizing: content-box; }
#dial { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 0; background: none; cursor: pointer; --p: 100%; }
#dial::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--sand) var(--p), rgba(246, 244, 238, .22) var(--p)); }
#dial::-moz-range-track { height: 2px; background: linear-gradient(90deg, var(--sand) var(--p), rgba(246, 244, 238, .22) var(--p)); }
#dial::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--paper); border: 0; box-shadow: 0 0 0 7px rgba(127, 214, 220, .22); }
#dial::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 0; box-shadow: 0 0 0 7px rgba(127, 214, 220, .22); }
#dial:focus-visible { outline: 1px solid var(--sand); outline-offset: 4px; }
.edit-out { position: fixed; z-index: 2000; left: 10px; top: 70px; width: 330px; height: 300px; font: 11px/1.4 monospace; }

@media not ((min-width: 900px) and (min-height: 560px)) {
  .v-map .arh-head { position: fixed; z-index: 10; top: 0; left: 0; padding-top: 66px; pointer-events: none; }
  .v-map .arh-head h1 { font-size: 1.35rem; max-width: none; }
  /* one line, so the title never slides under the view switch below it */
  .v-map .arh-head .eyebrow { margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .2em; font-size: .66rem; }
  .v-map .arh-tools { position: fixed; z-index: 10; top: 122px; left: 0; padding-top: 0; }
  .v-map .arh-chips { display: none; }
  .v-map .arh-toggle { background: rgba(17, 22, 20, .7); }
  #amap .leaflet-control-zoom { display: none; }
  .apin { width: 44px; height: 44px; margin: -22px; }
  .apin-w b { left: calc(50% + 9px); top: calc(50% - 27px); }
  .apin-w em { top: calc(50% + 27px); font-size: .55rem; letter-spacing: .12em; }
  .apin-w.sel .apin { width: 64px; height: 64px; margin: -32px; }
  .apin-w.sel b { left: calc(50% + 18px); top: calc(50% - 38px); }
  .apin-w.sel em { top: calc(50% + 40px); }
  .pcard { left: 10px; right: 10px; top: auto; bottom: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; height: 168px; display: grid; grid-template-columns: 118px minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 14px; padding: 12px; border-radius: 16px; }
  .pc-im { grid-row: 1 / 4; }
  .pc-im b { font-size: 1.7rem; left: 8px; bottom: 5px; }
  .pc-im b.s { font-size: .9rem; }
  .pcard h2 { font-size: 1.4rem; margin: 2px 34px 0 0; }
  .pc-cap, .pc-note { display: none; }
  .pc-rail { margin-top: 8px; align-self: end; min-width: 0; padding-bottom: 8px; }
  .pc-strip button { width: 50px; height: 50px; }
  .pc-arr { top: 25px; width: 26px; height: 26px; margin-top: -13px; }
  .pc-arr.prev { left: -4px; }
  .pc-arr.next { right: -4px; }
  .pc-more { margin-top: 6px; font-size: .64rem; }
  .pcard .pc-x { right: 4px; top: 4px; }
  .dial { left: 20px; right: 20px; bottom: 190px; bottom: calc(190px + env(safe-area-inset-bottom)); }
  .dial.low { bottom: 20px; }
  .dial-now { flex-wrap: wrap; gap: 4px 12px; }
  .dial-now b { font-size: 2.5rem; }
  .dial-now span { flex-basis: 100%; font-size: .58rem; }
  .play { width: 40px; height: 40px; }
  .play::before { left: 15px; top: 12px; }
  .play.on::before { left: 13px; top: 12px; }
  .dial .ticks span:nth-child(6) { display: none; }
}

/* ---------- one photograph, opened ---------- */
#lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 72px clamp(20px, 5vw, 72px) 64px; border: 0; background: rgba(10, 13, 12, .96); color: var(--paper); overflow: hidden; }
#lb::backdrop { background: rgba(10, 13, 12, .6); }
#lb[open] { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.lb-ph { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-ph img { max-width: 100%; max-height: 100%; width: auto; height: auto; border: 10px solid var(--print); box-shadow: 0 40px 90px rgba(0, 0, 0, .7); animation: lb-in .6s cubic-bezier(.2, .7, .2, 1) both; }
.lb-txt { max-height: 100%; overflow-y: auto; animation: lb-txt .7s .1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes lb-in { from { opacity: 0; transform: scale(.94) rotate(-1.2deg); } }
@keyframes lb-txt { from { opacity: 0; transform: translateY(18px); } }
.lb-y { font-family: var(--serif); font-weight: 500; font-size: clamp(5rem, 10vw, 9.5rem); line-height: .82; margin-bottom: 26px; color: transparent; -webkit-text-stroke: 1.2px var(--sand); font-variant-numeric: lining-nums; }
.lb-y.s { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; }
#lb h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.08; max-width: 18em; }
#lb dl { margin: 24px 0; border-top: 1px solid rgba(246, 244, 238, .16); font-size: .86rem; }
#lb dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(246, 244, 238, .16); }
#lb dt { flex: none; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 244, 238, .64); padding-top: .2em; }
#lb dd { text-align: right; }
#lb dd a { color: var(--sand); }
.lb-act { display: flex; flex-wrap: wrap; gap: 10px; }
#lb dl[hidden] + .lb-act { margin-top: 24px; }
.arhiv-page .btn { min-height: 46px; padding: 0 22px; border-radius: 99px; background: var(--sand); color: var(--ink); font-size: .82rem; font-weight: 500; }
.arhiv-page .btn.ghost { background: none; color: var(--paper); border: 1px solid rgba(246, 244, 238, .3); }
.lb-same { margin-top: 28px; }
.lb-same p { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 244, 238, .64); margin-bottom: 10px; }
#lb-same-list { display: flex; flex-wrap: wrap; gap: 10px; }
#lb-same-list button { position: relative; padding: 0; border: 3px solid var(--print); transition: transform .3s ease; }
#lb-same-list button:hover { transform: translateY(-3px); }
#lb-same-list img { display: block; height: 62px; width: auto; }
#lb-same-list span { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; font-size: .6rem; background: rgba(0, 0, 0, .72); font-variant-numeric: lining-nums; }
.lb-x { position: absolute; top: 18px; right: clamp(20px, 5vw, 72px); min-height: 44px; padding: 0 14px; border-radius: 99px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.lb-nav { position: absolute; left: clamp(20px, 5vw, 72px); bottom: 12px; display: flex; align-items: center; gap: 18px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.lb-nav button { min-height: 44px; opacity: .8; }
.lb-nav button:hover, .lb-x:hover { opacity: 1; color: var(--sand); }
#lb-n { opacity: .6; font-variant-numeric: lining-nums; }
#lb :focus-visible { outline: 1px solid var(--sand); outline-offset: 3px; }
@media (max-width: 899px) {
  #lb[open] { display: block; overflow-y: auto; padding: 64px 20px 96px; }
  .lb-ph { height: auto; }
  .lb-ph img { max-height: 62svh; border-width: 7px; }
  .lb-txt { overflow: visible; }
  .lb-y { margin: 26px 0 14px; }
  .lb-act .btn { flex: 1 1 100%; }
  .lb-nav { position: fixed; left: 0; right: 0; bottom: 0; justify-content: space-between; padding: 8px 20px calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 14, 13, .95); border-top: 1px solid rgba(246, 244, 238, .14); }
  .lb-x { position: fixed; top: 10px; right: 14px; padding: 0 12px; border-radius: 99px; background: rgba(11, 14, 13, .8); }
}
/* low wide windows: no room for captions around the prints; they are in the opened photograph */
@media (min-width: 900px) and (min-height: 560px) and (max-height: 719px) { .it .cap { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .print, .apin, .needle, .lb-ph img, .lb-txt, .arh-head h1, .dec-now .dg i { transition: none; animation: none; }
}

/* footer: under the map it would cover the map, so it is shown only with the photographs through time; room for the year bar */
.arhiv-page .site-foot { background: #0d1110; }
.scrub { transition: opacity .35s ease, translate .35s ease; }
.scrub.away { opacity: 0; translate: 0 20px; pointer-events: none; }
.v-map .site-foot { display: none; }

/* ---------- the way to the video recordings (snimci.html) ---------- */
/* a card under the title: a tape half out of its sleeve; it slides further out and the reels turn on hover */
.vid-cta {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 18px; width: min(100%, 440px); margin-top: 26px; padding: 12px 16px 12px 12px;
  border: 1px solid rgba(246, 244, 238, .16); border-radius: 18px; overflow: hidden; color: var(--paper); text-decoration: none; pointer-events: auto;
  background: linear-gradient(135deg, rgba(246, 244, 238, .085), rgba(246, 244, 238, .02) 60%), rgba(17, 22, 20, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(246, 244, 238, .08);
  transition: border-color .45s ease, box-shadow .45s ease, opacity .45s ease, translate .55s cubic-bezier(.2, .8, .2, 1), visibility 0s;
  animation: vid-in 1s cubic-bezier(.2, .8, .2, 1) .35s backwards;
}
/* a light that passes over the card on hover */
.vid-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(127, 214, 220, .13) 50%, transparent 65%);
  translate: -110% 0; transition: translate 1s cubic-bezier(.2, .8, .2, 1);
}
.vid-cta:hover { border-color: rgba(127, 214, 220, .55); box-shadow: 0 28px 70px -26px rgba(0, 0, 0, .9), 0 0 0 4px rgba(127, 214, 220, .07); }
.vid-cta:hover::after { translate: 110% 0; }
.vid-cta:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; }

.vid-art { position: relative; flex: none; width: 148px; height: 96px; }
.vid-cas {
  position: absolute; left: 22px; top: 14px; width: 112px; height: auto; overflow: visible;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .55)); transform: rotate(-3deg);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.vid-cas .reel { transform-box: fill-box; transform-origin: center; animation: reel 7s linear infinite; }
/* now and then the tape peeks a little further out by itself, so the card is noticed */
.vid-cas { animation: vid-peek 7s cubic-bezier(.45, 0, .2, 1) 2s infinite; }
.vid-cta:hover .vid-cas { transform: translateX(18px) rotate(2deg); animation-play-state: paused; }
.vid-sleeve {
  position: absolute; left: 2px; top: 0; width: 60px; height: 96px; padding: 7px 0 0; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; overflow: hidden;
  background: linear-gradient(100deg, rgba(255, 255, 255, .1), transparent 40%), #161d2e; border-top: 5px solid #b83b28; border-radius: 2px;
  box-shadow: 8px 10px 22px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotate(-6deg); transform-origin: 30% 100%; transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.vid-cta:hover .vid-sleeve { transform: rotate(-10deg) translateX(-2px); }
.vid-sleeve small { margin-bottom: 4px; font-size: 5.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(237, 233, 223, .7); white-space: nowrap; }
.vid-sleeve b {
  font-family: var(--serif); font-weight: 500; font-size: 29px; line-height: .9; letter-spacing: -.02em; font-variant-numeric: lining-nums;
  color: transparent; -webkit-text-stroke: .8px rgba(237, 233, 223, .7);
}

.vid-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.vid-k { display: flex; align-items: center; gap: 7px; font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); }
.vid-t { font-family: var(--serif); font-size: 1.6rem; line-height: 1.04; letter-spacing: -.01em; font-variant-numeric: lining-nums; text-wrap: balance; }
.vid-s { font-size: .78rem; line-height: 1.35; color: rgba(246, 244, 238, .66); }
.vid-go {
  flex: none; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(246, 244, 238, .3); transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.vid-go svg { transition: translate .5s cubic-bezier(.2, .8, .2, 1); }
.vid-cta:hover .vid-go { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.vid-cta:hover .vid-go svg { translate: 3px 0; }

/* the red light of a recording camera */
.rec { flex: none; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e0442e; box-shadow: 0 0 0 3px rgba(224, 68, 46, .2); animation: rec 1.6s ease-in-out infinite; }

/* the small link in the line above the title: shown where the card is not */
.arh-video {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; padding: 5px 12px; vertical-align: middle;
  border: 1px solid rgba(127, 214, 220, .45); border-radius: 99px; color: var(--paper); text-decoration: none; pointer-events: auto;
  background: rgba(17, 22, 20, .6); letter-spacing: .14em;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s, background .3s ease, color .3s ease;
}
.arh-video:hover { background: var(--sand); color: var(--ink); }
.arh-video:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

@media (min-width: 900px) and (min-height: 560px) {
  .vid-cta { width: min(440px, 44vw); }
  /* the strip runs under the title: the card steps aside, the small link comes in */
  .sc .vid-cta, .v-map .vid-cta { opacity: 0; translate: 0 -14px; visibility: hidden; pointer-events: none; transition: opacity .35s ease, translate .45s ease, visibility 0s linear .45s; }
  .sc .arh-video, .v-map .arh-video { opacity: 1; visibility: visible; transition: opacity .4s ease .15s, visibility 0s, background .3s ease, color .3s ease; }
}
/* low wide windows: no room for the card above the river */
@media (min-width: 900px) and (min-height: 560px) and (max-height: 759px) {
  .vid-cta { display: none; }
  .arh-video { opacity: 1; visibility: visible; }
}
@media not ((min-width: 900px) and (min-height: 560px)) {
  .arh-video { display: none; }
  .v-map .vid-cta { display: none; }
}
@media (max-width: 420px) {
  .vid-cta { gap: 12px; padding: 10px 12px 10px 8px; }
  .vid-art { width: 120px; height: 84px; }
  .vid-cas { left: 16px; top: 12px; width: 96px; }
  .vid-sleeve { width: 52px; height: 84px; }
  .vid-sleeve b { font-size: 25px; }
  .vid-cta:hover .vid-cas { transform: translateX(10px) rotate(2deg); }
  .vid-t { font-size: 1.35rem; }
  .vid-s { font-size: .74rem; }
  .vid-go { display: none; }
}

@keyframes vid-in { from { opacity: 0; translate: 0 18px; } }
@keyframes reel { to { transform: rotate(360deg); } }
@keyframes vid-peek { 0%, 24%, 100% { translate: 0 0; } 10% { translate: 12px -1px; } }
@keyframes rec { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .vid-cta, .vid-cas, .vid-cas .reel, .rec { animation: none; }
  .vid-cta, .vid-cta::after, .vid-cas, .vid-sleeve, .vid-go, .vid-go svg { transition-duration: 1ms; }
}
