/* Yoram Vidal: the design chosen on 12-13.10.2026 (version 1b).
   Wall "whiter", no frame, Jost for name and menu, Spectral for reading, header on the edges of a
   horizontal photograph, green labels on one fixed line, content on one fixed line below them. */
:root {
  --wall: #f3f3f0;
  --wall-deep: #e9e9e6;
  --on-wall: #1f201c;
  --muted: #4a4c45;
  --accent: #46653f;
  --head: 82px;
  --head-top: 30px;
  --gutter: clamp(24px, 6vw, 84px);
  --below: 165px;                                  /* room under a photograph for its caption */
  --label: 13.5px;
  --content-line: calc(1.6 * var(--label) + 16px); /* from the top of a green label to the content */
  --ui: 'Jost', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --read: 'Spectral', Georgia, 'Times New Roman', serif;
  --side: var(--gutter);
}
/* On a computer the header and page texts stand on the edges of a horizontal (3:2) photograph */
@media (min-width: 821px) {
  :root {
    --col: max(870px, calc((100vh - var(--head) - var(--below)) * 1.5));
    --side: max(var(--gutter), calc((100% - var(--col)) / 2));
  }
}
html[lang="he"] { --ui: 'Heebo', 'Segoe UI', Arial, sans-serif; --read: 'Frank Ruhl Libre', 'David', 'Times New Roman', serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--wall); color: var(--on-wall); font-family: var(--ui); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; } /* no drag, no long-press menu on a phone */

/* Header: the name at a fixed place on every page, the menu lined up with it */
header { position: sticky; top: 0; z-index: 10; height: var(--head); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: var(--head-top) var(--side) 0; background: var(--wall); }
.name { font-size: 23px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; line-height: 1.15; flex: none; }
html[lang="he"] .name { letter-spacing: .04em; }
nav { display: flex; gap: clamp(14px, 1.7vw, 28px); font-size: 16.5px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; line-height: 1.15; padding-top: 5px; }
html[lang="he"] nav { letter-spacing: .02em; }
nav a { padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color .25s ease; }
nav a:hover, nav a:focus-visible { border-bottom-color: color-mix(in srgb, var(--on-wall) 35%, transparent); }
nav a[aria-current="page"] { border-bottom-color: var(--on-wall); }
.lang { margin-inline-start: 6px; opacity: .8; }
/* The three-dots button opens the menu on a phone; on a computer the menu is always shown */
.menu-btn { display: none; }
.stack { display: none; }

/* Green labels (series names, page names): 20px under the header, same size everywhere */
.label, .room h2, .intro h1 { margin: 0; font-weight: 400; font-size: var(--label); letter-spacing: .32em; text-transform: uppercase; color: var(--accent); line-height: 1.6; }
html[lang="he"] .label, html[lang="he"] .room h2, html[lang="he"] .intro h1 { letter-spacing: .08em; }
.label .years { margin-inline-start: 1.6em; color: var(--muted); letter-spacing: .2em; }

/* Viewer: one photograph that fits the screen, its caption underneath */
.viewer { position: relative; scroll-margin-top: var(--head); height: calc(100vh - var(--head)); min-height: 460px; display: flex; flex-direction: column; align-items: center; padding: 20px var(--gutter) 18px; }
.viewer > .label { align-self: stretch; margin: 0 0 16px var(--vl, 0px); min-height: 1.6em; }
@media (min-width: 821px) { .viewer > .label { --vl: max(0px, calc((100% - var(--col)) / 2)); } }
html[dir="rtl"] .viewer > .label { margin: 0 var(--vl, 0px) 16px 0; }
.stage { flex: 1; min-height: 0; width: 100%; display: flex; align-items: flex-start; justify-content: center; }
.frame { display: inline-flex; flex-direction: column; max-height: 100%; max-width: 100%; }
.print { display: flex; min-height: 0; position: relative; z-index: 3; cursor: zoom-in; box-shadow: 0 18px 40px -20px rgba(0,0,0,.5); }
.print img { display: block; max-width: 100%; height: auto; width: auto; max-height: calc(100vh - var(--head) - var(--below)); }
.caption { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding-top: 14px; font-size: 15.5px; line-height: 1.45; }
.caption .t { font-family: var(--read); font-size: 1.06em; }
.caption .t b { font-weight: 500; margin-inline-end: 10px; }
.caption .t span { color: var(--muted); }
.no { white-space: nowrap; font-size: 13.5px; letter-spacing: .18em; color: var(--muted); }

/* Screen halves: right = next, left = previous (mirrored in Hebrew). With a mouse the cursor is the arrow. */
.zone { all: unset; position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; display: flex; align-items: center; }
.zone.prev { left: 0; justify-content: flex-start; padding-left: clamp(6px, 1.4vw, 22px); cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M25 8 13 20l12 12' fill='none' stroke='%23ffffff' stroke-width='3' opacity='.7'/%3E%3Cpath d='M25 8 13 20l12 12' fill='none' stroke='%231f201c' stroke-width='1.6'/%3E%3C/svg%3E") 20 20, w-resize; }
.zone.next { right: 0; justify-content: flex-end; padding-right: clamp(6px, 1.4vw, 22px); cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M15 8l12 12-12 12' fill='none' stroke='%23ffffff' stroke-width='3' opacity='.7'/%3E%3Cpath d='M15 8l12 12-12 12' fill='none' stroke='%231f201c' stroke-width='1.6'/%3E%3C/svg%3E") 20 20, e-resize; }
.zone svg { width: 34px; height: 34px; }
.zone svg path { fill: none; stroke: var(--on-wall); stroke-width: 2; }
.zone:focus-visible { outline: none; }
@media (hover: hover) { .zone svg { display: none; } }
@media (hover: none) { .zone svg { opacity: .55; } }

/* Home slideshow: one frame for all photographs, same size, starting on the common content line */
.slideshow { padding: 20px var(--side) 18px; }
.slideshow > .label { margin: 0 0 16px; min-height: 1.6em; }
/* --home-size: percent of the full width, set in the admin (default 70) */
.show-frame { position: relative; margin: 0 auto; width: calc(min(100%, (100vh - var(--head) - 120px) * 1.5) * var(--home-size, 70) / 100); aspect-ratio: 3 / 2; box-shadow: 0 18px 40px -20px rgba(0,0,0,.5); background: #e6e6e2; }
.show-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.show-frame img.on { opacity: 1; }
@media (max-width: 820px) { .show-frame { width: 100%; } }

/* Enlarged view: left third previous, right third next, the middle back to normal size */
.enlarge { position: fixed; inset: 0; z-index: 60; background: var(--wall); display: none; align-items: center; justify-content: center; padding: 4.5vh 2.5vw; }
.enlarge.open { display: flex; }
.enlarge img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 50px -24px rgba(0,0,0,.55); }
.enlarge .zone { width: 33.4%; }
.enlarge .zone.mid { left: 33.3%; width: 33.4%; cursor: zoom-out; }
.enlarge.single { cursor: zoom-out; }
.big-close { all: unset; position: absolute; top: 18px; right: 24px; z-index: 3; cursor: pointer; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 6px 2px; border-bottom: 1px solid transparent; }
html[dir="rtl"] .big-close { right: auto; left: 24px; }
.big-close:hover, .big-close:focus-visible { border-bottom-color: var(--on-wall); }
.big-no { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .18em; color: var(--muted); pointer-events: none; }

/* Sections: Works, Archive, the small-photographs view, About the series */
.room { padding: 20px var(--side) 90px; }
.room h2 { margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.card { display: block; }
.card .print { cursor: pointer; transition: transform .35s ease; }
.card:hover .print, .card:focus-visible .print { transform: translateY(-4px); }
.card .print img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; max-height: none; }
.card .cap { margin-top: 14px; font-size: 15px; }
.card .cap b { font-weight: 500; display: block; letter-spacing: .04em; }
.card .cap span { color: var(--muted); font-size: 13.5px; }
.thumbs-grid { display: grid; grid-template-columns: repeat(var(--per-row, 3), minmax(0, 1fr)); gap: 40px 32px; }
.thumbs-grid a { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; cursor: zoom-in; }
.thumbs-grid img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; box-shadow: 0 10px 24px -16px rgba(0,0,0,.45); transition: transform .3s ease; }
.thumbs-grid a:hover img, .thumbs-grid a:focus-visible img { transform: translateY(-3px); }
.thumbs-grid.one-row { align-items: end; }
.thumbs-grid.one-row a { aspect-ratio: auto; }
.thumbs-grid.one-row img { width: 100%; max-height: none; }
.about-series { padding-top: 70px; }

/* Text pages: label on the left, text on the right starting on the content line */
.intro { padding: 20px var(--side) 60px; }
.walltext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; }
.intro .walltext > :last-child { padding-top: var(--content-line); }
.walltext.single > :last-child { padding-top: 0; }
.walltext p { margin: 0 0 1em; font-family: var(--read); font-size: 17.5px; line-height: 1.65; max-width: 64ch; }
.walltext .sig { font-family: var(--ui); color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.side p { margin: 0; font-family: var(--read); }
.side .title { margin-top: 16px; font-size: 22px; line-height: 1.3; }
.side .by { margin-top: 6px; font-size: 14px; color: var(--muted); }
.side .doc { display: inline-block; margin-top: 22px; font-family: var(--ui); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.essay { max-width: 66ch; font-family: var(--read); }
.essay p { margin: 0 0 1.1em; font-size: 17.5px; line-height: 1.7; }
.essay p a, .walltext p a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--on-wall) 35%, transparent); text-underline-offset: 3px; }
.essay p a:hover, .walltext p a:hover { text-decoration-color: var(--on-wall); }
.essay figure { margin: 2em 0 2.2em; }
.essay figure img { display: block; max-width: 100%; height: auto; }
.essay figcaption { margin-top: 10px; font-family: var(--ui); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.reviews { list-style: none; margin: 0; padding: 0; max-width: 70ch; }
.reviews li { border-bottom: 1px solid color-mix(in srgb, var(--on-wall) 14%, transparent); }
.reviews li:first-child { border-top: 1px solid color-mix(in srgb, var(--on-wall) 14%, transparent); }
.reviews a { display: flex; gap: 10px; align-items: baseline; padding: 14px 0; font-family: var(--read); font-size: 17px; line-height: 1.5; }
.reviews b { font-weight: 500; white-space: nowrap; }
.reviews span { flex: 1; }
.reviews i { font-style: normal; font-family: var(--ui); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.reviews a:hover span, .reviews a:focus-visible span { text-decoration: underline; text-underline-offset: 4px; }
.cv-intro p { margin: 0 0 .3em; font-family: var(--read); font-size: 16.5px; }
.cv { padding: 0 var(--side) 70px; }
.cv-row { padding: 26px 0; border-top: 1px solid color-mix(in srgb, var(--on-wall) 14%, transparent); }
.cv-row h2 { margin: 0; font-weight: 400; font-size: var(--label); letter-spacing: .32em; text-transform: uppercase; color: var(--on-wall); }
.cv dl { margin: 0; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px 18px; font-family: var(--read); font-size: 16.5px; line-height: 1.5; max-width: 70ch; }
.cv dt { font-family: var(--ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.cv dd { margin: 0; }
.contact-list { list-style: none; margin: 16px 0 0; padding: 0; font-size: 17px; line-height: 1.5; }
.contact-list li { padding: 0 0 12px; }
.contact-list a { border-bottom: 1px solid color-mix(in srgb, var(--on-wall) 30%, transparent); }
.contact-list a:hover, .contact-list a:focus-visible { border-bottom-color: var(--on-wall); }
.contact-list .social { display: flex; gap: 22px; padding-top: 10px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.single-photo .print { cursor: zoom-in; }

footer { padding: 70px var(--side) 50px; font-size: 15px; letter-spacing: .06em; color: var(--muted); }

@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .thumbs-grid, .thumbs-grid.one-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid, .thumbs-grid, .thumbs-grid.one-row { grid-template-columns: 1fr; gap: 44px; } }
/* Phone: the name and a three-dots button; the menu opens under the header. Columns stack.
   A series is a column of photographs to scroll down, instead of the viewer. */
@media (max-width: 820px) {
  :root { --head: 62px; --head-top: 0px; }
  header { align-items: center; padding-top: 0; }
  .name { font-size: 18px; }
  .menu-btn { all: unset; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-inline-end: -10px; cursor: pointer; }
  .menu-btn svg { width: 24px; height: 24px; fill: var(--on-wall); }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px var(--side) 18px; background: var(--wall); box-shadow: 0 16px 24px -18px rgba(0,0,0,.35); font-size: 14.5px; letter-spacing: .16em; }
  header.open nav { display: flex; }
  nav a { align-self: flex-start; padding: 11px 0 5px; }
  .lang { margin: 0; }
  .viewer[data-viewer] { display: none; }
  .stack { display: block; padding: 20px var(--side) 0; }
  .stack > .label { margin-bottom: 16px; }
  .stack figure { margin: 0 0 44px; scroll-margin-top: calc(var(--head) + 12px); }
  .stack img { display: block; width: 100%; height: auto; box-shadow: 0 14px 30px -20px rgba(0,0,0,.5); }
  .stack figcaption { padding-top: 12px; font-family: var(--read); font-size: 15.5px; line-height: 1.45; color: var(--muted); }
  .about-series { padding-top: 30px; }
  .viewer { height: auto; min-height: 0; }
  .print img { max-height: 70vh; width: 100%; object-fit: contain; }
  .caption { flex-direction: column; gap: 8px; }
  .walltext { grid-template-columns: 1fr; gap: 16px; }
  .intro .walltext > :last-child { padding-top: 0; }
  .cv dl { grid-template-columns: 5.8em minmax(0, 1fr); font-size: 15px; }
  .reviews a { flex-wrap: wrap; }
  .reviews b { white-space: normal; }
}
@media (max-width: 340px) { .name { font-size: 16px; letter-spacing: .12em; } }
