/* r6 works page (alt/works/b "קיר בגדלים אמיתיים"): every work at its own proportions, rows justified into one quiet wall */
.site-foot { display: flex; justify-content: space-between; padding-block: 120px 28px; font-size: 13px; color: var(--mute); }

/* head: title on one side, the size of the wall on the other */
.wl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-block: 56px 40px; }
.wl-head h1 { font-weight: 700; font-size: clamp(44px, 6vw, 96px); line-height: 1; display: flex; align-items: baseline; gap: 14px; }
.wl-head h1 .n { color: var(--mute); font-size: 18px; font-weight: 400; }
.wl .zoom { display: flex; align-items: center; gap: 4px; padding-bottom: 8px; }
.wl .zoom button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--mute); transition: color .2s, background .2s; }
.wl .zoom button:hover { color: var(--ink); }
.wl .zoom button[aria-pressed="true"] { color: var(--ink); background: rgba(0,0,0,.06); }
.wl .zoom svg { fill: currentColor; }

/* the wall: rows of equal height, every work at its own proportions */
.wl .wall { display: flex; flex-direction: column; gap: 44px; transition: opacity .35s; }
.wl .row { display: flex; gap: var(--g, 14px); }
.wl .tile { --r: 4px; flex: none; display: flex; flex-direction: column; min-width: 0; }
.wl .frame { position: relative; overflow: hidden; border-radius: var(--r); background: #dcd8d1; }
.wl .frame img, .wl .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wl .frame video { opacity: 0; transition: opacity .25s ease; }
.wl .frame video.live { opacity: 1; }
.wl .cap { display: flex; flex-direction: column; padding-top: 12px; min-width: 0; }
.wl .cap b { font-weight: 700; font-size: 16px; line-height: 1.25; transition: opacity .2s; text-wrap: balance; }
.wl .cap > span { font-size: 13px; color: var(--mute); margin-top: 2px; }
@media (hover: hover) { .wl .tile:hover .cap b { opacity: .55; } }
.wl .tile .frame::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: 0; transition: opacity .3s; pointer-events: none; }
@media (hover: hover) { .wl .wall:has(.tile:hover) .tile:not(:hover) .frame::after { opacity: .12; } }
/* rebuilding the rows on a size change */
.wl .wall.swap { opacity: 0; transition: opacity .18s; }

@media (max-width: 760px) {
  .wl-head { padding-block: 36px 24px; }
  .wl .zoom { padding-bottom: 2px; }
  .wl .wall { gap: 28px; }
  .wl .cap { padding-top: 8px; }
  .wl .cap b { font-size: 14px; }
  .wl .cap > span { font-size: 12px; }
  .site-foot { padding-block: 80px 20px; }
}

/* AI chapter under the campaigns (his pick 21.10: option א) — same wall, its own heading and his credit line */
.ai-ch { margin-top: 120px; border-top: 1px solid var(--line); }
.ai-head h2 { font-weight: 700; font-size: clamp(36px, 4.4vw, 68px); line-height: 1; display: flex; align-items: baseline; gap: 14px; }
.ai-head h2 .n { color: var(--mute); font-size: 18px; font-weight: 400; }
.ai-credit { color: var(--mute); max-width: 36ch; font-size: 16px; }
@media (max-width: 760px) { .ai-ch { margin-top: 72px; } .ai-head { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* round 7, mobile audit 2 (approved 21.10) */
@media (max-width:760px){.wl .cap b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.wl .zoom button{width:44px;height:44px}}

/* audit 3 (approved 21.10): the empty wall holds a screen of height until it is built, so the footer and the AI chapter do not jump */
.wl .wall:empty { min-height: 100vh; }

/* 22.10: the page takes the hero's width (style.css), a little narrower on a phone; on the smallest ones the size buttons
   go under the title instead of pushing the page wider */
@media (max-width: 760px) { .wl-head { flex-wrap: wrap; row-gap: 12px; } .wl .zoom { margin-inline-start: auto; } }

/* round 47 (his note: the size buttons sat badly against the works): on a phone the title and one control stand on one line,
   centred on each other - the three sizes in one framed pill, the pause button its own round frame beside it - not the sizes
   hung off the title's baseline and the pause button alone on a line of its own */
@media (max-width: 760px) {
  .wl-head:not(.ai-head) { flex-wrap: nowrap; align-items: center; gap: 8px; padding-block: 32px 22px; }
  .wl-head:not(.ai-head) h1 { margin-inline-end: auto; font-size: 40px; }
  .wl .zoom { order: 2; margin: 0; padding: 2px; gap: 0; border: 1px solid var(--line); border-radius: 40px; }
  .wl .zoom button { width: 38px; height: 38px; }
  .wl-head .mpause { order: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
}
@media (max-width: 760px) { .wl-head .mpause, .wl .zoom { flex: none; } }
@media (max-width: 370px) { .wl-head:not(.ai-head) h1 { font-size: 34px; gap: 8px; } .wl .zoom button { width: 34px; height: 34px; } .wl-head .mpause { width: 40px; height: 40px; } }

/* mobile audit 25.10: the size buttons keep their look, the finger's area is 44px tall */
@media (max-width: 760px) { .wl .zoom button { position: relative; } .wl .zoom button::after { content: ""; position: absolute; inset: calc((44px - 100%) / -2) 0; } }
