/* flux-timeline.css — the ARCHIVE timeline (explore.html): one continuous scroll, years in Inter Display, a sticky
   DATES column. Ported from the dantesisofo.com Photographs timeline (FLUX_WORDPRESS flux.css .flux-tl-*).
   Cells and hover lift come from style.css + /flux-archive.css (.ar-grid / .ar-cell), unchanged.             */

@font-face { font-family: "Inter Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/inter-display-700.woff2") format("woff2"); }

/* the page scrolls as a whole; the nav stays at the top so the DATES column can sit under it */
body.ftl-page { height: auto; overflow: visible; }
body.ftl-page #flux-nav { position: sticky; top: 0; z-index: 60; background: #fff; }
body.fa-pubview .ftl-wrap { display: none !important; }

.ftl-wrap, .ftl-wrap.ar-main { display: block; overflow: visible; flex: none; padding: 0 var(--pad, 1.4rem) 80px; }
.ftl-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; }

/* ── DATES ── */
.ftl-side { position: sticky; top: 66px; max-height: calc(100vh - 86px); overflow-y: auto; padding: 22px 6px 20px 0; font-size: 11.5px; letter-spacing: .06em; scrollbar-width: thin; }
.ftl-side-h { margin: 0 0 8px; font-size: 10px; letter-spacing: .2em; color: #888; }
.ftl-sy { border-top: 1px solid #000; }
.ftl-sy:last-child { border-bottom: 1px solid #000; }
.ftl-sy > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; }
.ftl-sy > summary::-webkit-details-marker { display: none; }
.ftl-sy > summary::before { content: "▸"; font-size: 9px; margin-right: 6px; transition: transform .15s; display: inline-block; }
.ftl-sy[open] > summary::before { transform: rotate(90deg); }
.ftl-sy > summary a { flex: 1; font-weight: 700; font-size: 13px; color: #000; text-decoration: none; }
.ftl-sy > summary span, .ftl-sy li span { font-size: 10px; color: #888; }
.ftl-sy ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 15px; }
.ftl-sy li { display: flex; justify-content: space-between; padding: 3px 0; }
.ftl-sy li a { color: #000; text-decoration: none; }
.ftl-sy li a:hover, .ftl-sy > summary a:hover { text-decoration: underline; }
.ftl-sy li.is-current a { background: #000; color: #fff; padding: 0 4px; margin-left: -4px; }
.ftl-sy.is-current > summary a { text-decoration: underline; }

/* ── years ── */
.ftl-y { padding-top: 34px; scroll-margin-top: 56px; }
.ftl-main .ftl-y:first-child { padding-top: 22px; }
.ftl-yh { display: flex; align-items: baseline; gap: 16px; margin: 0; padding-bottom: 8px; border-bottom: 2px solid #000; }
.ftl-yh b { font-family: "Inter Display", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: clamp(56px, 8vw, 120px); line-height: .9; letter-spacing: -.035em; }
.ftl-yh span { font-size: 10px; letter-spacing: .16em; color: #888; font-weight: 400; }
.ftl-wrap .ar-grid { padding: 12px 0 0; }
.ftl-wrap .ar-cell { min-width: 0; }
.ftl-wrap .ar-thumb { max-width: 100%; }
.ftl-wrap .ar-cell[id] { scroll-margin-top: 140px; }
.ftl-results { padding-top: 22px; }
.ftl-none { margin: 30px 0; font-size: 11px; letter-spacing: .1em; color: #888; }

/* photographs on the page: the magnifier; inside the viewer: ← left half, → right half */
.ftl-page .ar-thumb { cursor: zoom-in; }
.ftl-page .ar-ov-tap-prev { cursor: w-resize; }
.ftl-page .ar-ov-tap-next { cursor: e-resize; }
.ftl-page .ar-cell:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* phones / narrow windows: the DATES column becomes a sticky DATES bar that opens the same list as a sheet */
.ftl-mbar { display: none; }
@media (max-width: 980px) {
  .ftl-body { grid-template-columns: 1fr; gap: 0; }
  .ftl-mbar { display: flex; align-items: baseline; gap: 12px; position: sticky; top: var(--ftl-top, 48px); z-index: 55; width: calc(100% + 2 * var(--pad, 1.4rem)); margin: 0 calc(-1 * var(--pad, 1.4rem)); padding: 11px var(--pad, 1.4rem); background: #fff; border: 0; border-bottom: 1px solid #000; font: 11px/1.2 "Courier New", Courier, monospace; letter-spacing: .14em; color: #000; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
  .ftl-mbar b { letter-spacing: .2em; }
  .ftl-mbar span { flex: 1; color: #888; }
  .ftl-mbar i { font-style: normal; transition: transform .15s; }
  .ftl-dates-open .ftl-mbar i { transform: rotate(180deg); }
  .ftl-side { display: none; }
  .ftl-dates-open .ftl-side { display: block; position: fixed; z-index: 54; left: 0; right: 0; bottom: 0; top: calc(var(--ftl-top, 48px) + 38px); max-height: none; padding: 14px var(--pad, 1.4rem) 40px; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; font-size: 13px; }
  .ftl-dates-open .ftl-side .ftl-side-h { display: none; }
  .ftl-dates-open .ftl-sy > summary { padding: 12px 0; }
  .ftl-dates-open .ftl-sy li { padding: 9px 0; }
  .ftl-dates-open { overflow: hidden; }
  .ftl-y { scroll-margin-top: calc(var(--ftl-top, 48px) + 38px); }
  .ftl-wrap .ar-cell[id] { scroll-margin-top: calc(var(--ftl-top, 48px) + 52px); }
}
@media (max-width: 760px) {
  .ftl-wrap, .ftl-wrap.ar-main { padding: 0 10px 60px; --pad: 10px; }
  .ftl-yh b { font-size: clamp(44px, 14vw, 72px); }
  .ftl-wrap .ar-grid { padding: 8px 0 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
