/* vn200 Venue panes (INV-21 Acrylic Glass W1, A2757; plan docs/plans/plan_inv21_acrylic_glass.md, row 7): a glass plaque
   with the heading, then one frosted pane per venue (the skin's .k-ag-pane): the venue's photos held under the glass
   (a clear frosted border round them, the pane's rim drawn over each photo's edge), the name in caps, the address, the
   events held there and a quiet "Map" link (no box). Phone: one pane a row. Tablet and laptop: two side by side, the pair
   as wide as one slab; on a laptop each pane holds its photos on the left and its words on the right. Three venues on a
   laptop: three across. Extra venues share one glass line below. A tap on a photo opens the viewer (section.js). */
.vn200 {
  --vn200-pad: calc(16 * var(--ag-u)); /* the frosted border round the photos */
  --vn200-pg: calc(8 * var(--ag-u)); /* between photos */
  --vn200-pr: max(3px, calc(var(--ag-r) - var(--vn200-pad))); /* a photo's corner, inside the pane's */
  position: relative; padding: var(--k-section-pad) var(--k-gutter); text-align: center;
}

/* ---- the plaque: the heading ---- */
.vn200 .vn200__head { padding: calc(28 * var(--ag-u)) calc(18 * var(--ag-u)) calc(26 * var(--ag-u)); }
.vn200 .vn200__count { margin-top: calc(4 * var(--ag-u)); padding-left: .24em; }

/* ---- the panes ---- */
.vn200 .vn200__cards { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ag-gap); width: var(--ag-sw); max-width: 100%; margin: var(--ag-gap) auto 0; }
.vn200 .vn200-card { flex: 0 0 100%; width: auto; min-width: 0; margin: 0; display: flex; flex-direction: column; padding: var(--vn200-pad); }
/* tablet and laptop: two side by side (each half the slab, less the gap) */
@media (min-width: 700px), (min-aspect-ratio: 1/1) {
  .vn200 .vn200-card { flex-basis: calc((100% - var(--ag-gap)) / 2); }
}
/* laptop with three venues: three across */
@media (min-aspect-ratio: 1/1) and (min-width: 1000px) {
  .vn200 .vn200__cards:has(> .vn200-card:nth-child(3)) > .vn200-card { flex-basis: calc((100% - 2 * var(--ag-gap)) / 3); }
}

/* the photos under the glass: the pane's frost is their border; the rim and a faint etch lie over each photo's edge */
.vn200 .vn200__lead, .vn200 .vn200__small { position: relative; display: block; overflow: hidden; border-radius: var(--vn200-pr); -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 3px rgb(60 44 30 / .22); }
.vn200 .vn200__lead::after, .vn200 .vn200__small::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  box-shadow: var(--ag-rim), inset 0 0 0 3px rgb(var(--ag-veil-rgb) / .28); }
.vn200 .vn200__lead::before, .vn200 .vn200__small::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--ag-etch); opacity: calc(var(--ag-etch-o) * .5); -webkit-mask-image: var(--ag-etch-mask); mask-image: var(--ag-etch-mask); }
.vn200 .vn200__lead-img, .vn200 .vn200__small-img { display: block; width: 100%; height: auto; max-width: 100%; object-fit: cover; object-position: var(--vn200-pos, 50% 50%);
  -webkit-user-select: none; user-select: none; }
.vn200 .vn200__lead-img { aspect-ratio: 4 / 3; }
.vn200 .vn200__rest { display: flex; justify-content: center; gap: var(--vn200-pg); margin-top: var(--vn200-pg); }
.vn200 .vn200__small { flex: 1 1 0; min-width: 0; aspect-ratio: 4 / 3; }
.vn200 .vn200__rest--one .vn200__small { flex: 0 1 calc(50% - var(--vn200-pg) / 2); }
.vn200 .vn200__small-img { position: absolute; inset: 0; height: 100%; }
.vn200 .vn200__lead:focus-visible, .vn200 .vn200__small:focus-visible { outline-offset: 3px; }
.vn200 .vn200__medal { width: calc(64 * var(--ag-u)); height: calc(64 * var(--ag-u)); margin: calc(14 * var(--ag-u)) auto 0; color: var(--ag-gold-1); }

/* the words */
.vn200 .vn200__info { flex: 1; display: flex; flex-direction: column; align-items: center; padding: calc(20 * var(--ag-u)) calc(8 * var(--ag-u)) 0; }
.vn200 .vn200__name { margin: 0; font: 500 calc(17 * var(--ag-u))/1.3 var(--k-font-display); letter-spacing: .2em; padding-left: .2em;
  text-transform: uppercase; color: var(--ag-ink); overflow-wrap: anywhere; text-wrap: balance; }
.vn200 .vn200__addr { max-width: 30ch; margin-top: calc(6 * var(--ag-u)); font: italic 500 calc(14.5 * var(--ag-u))/1.5 var(--k-font-body); color: var(--ag-ink-2); text-wrap: pretty; }
.vn200 .vn200__rule { margin: calc(14 * var(--ag-u)) auto; width: calc(96 * var(--ag-u)); }
.vn200 .vn200__events { display: grid; gap: calc(9 * var(--ag-u)); }
.vn200 .vn200__ev, .vn200 .vn200__when { display: block; }
.vn200 .vn200__ev { font: 600 calc(9.6 * var(--ag-u))/1.6 var(--k-font-body); letter-spacing: .24em; padding-left: .24em; text-transform: uppercase; color: var(--ag-ink-2); }
.vn200 .vn200__when { font: 500 calc(14.5 * var(--ag-u))/1.35 var(--k-font-body); color: var(--ag-ink); }
/* the Map link: quiet gold caps on a hairline, a 44 px tap target, no box */
.vn200 .vn200__go { margin-top: auto; padding-top: calc(10 * var(--ag-u)); }
.vn200 .vn200__map { display: inline-flex; align-items: center; gap: calc(6 * var(--ag-u)); min-height: 44px; padding: 0 calc(6 * var(--ag-u));
  font: 600 calc(10.5 * var(--ag-u))/1 var(--k-font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--ag-gold-1);
  text-decoration: underline; text-decoration-color: var(--ag-gold-2); text-decoration-thickness: 1px; text-underline-offset: .55em; }
.vn200 .vn200__pin { width: calc(14 * var(--ag-u)); height: calc(14 * var(--ag-u)); flex: none; color: var(--ag-gold-2); }

/* a laptop with one or two venues: each pane holds its photos on the left and its words on the right */
@media (min-aspect-ratio: 1/1) and (min-width: 1000px) {
  .vn200 .vn200__cards:not(:has(> .vn200-card:nth-child(3))) > .vn200-card:not(.vn200-card--plain) { flex-direction: row; align-items: stretch; gap: calc(6 * var(--ag-u)); }
  .vn200 .vn200__cards:not(:has(> .vn200-card:nth-child(3))) > .vn200-card:not(.vn200-card--plain) .vn200__prints { flex: 0 0 54%; align-self: center; }
  .vn200 .vn200__cards:not(:has(> .vn200-card:nth-child(3))) > .vn200-card:not(.vn200-card--plain) .vn200__info { justify-content: center; min-width: 0; padding: calc(10 * var(--ag-u)) calc(10 * var(--ag-u)); }
  .vn200 .vn200__cards:not(:has(> .vn200-card:nth-child(3))) > .vn200-card:not(.vn200-card--plain) .vn200__go { margin-top: 0; }
}

/* ---- the extra venues: one glass line ---- */
.vn200 .vn200__more { margin-top: var(--ag-gap); padding: calc(18 * var(--ag-u)) calc(20 * var(--ag-u)); }
.vn200 .vn200__more-list { display: grid; gap: calc(6 * var(--ag-u)); }
.vn200 .vn200__more li { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 calc(14 * var(--ag-u)); }
.vn200 .vn200__more-name { display: inline-flex; align-items: center; gap: calc(6 * var(--ag-u)); min-height: 44px;
  font: 500 calc(14 * var(--ag-u))/1.3 var(--k-font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--ag-ink);
  text-decoration: underline; text-decoration-color: var(--ag-gold-2); text-decoration-thickness: 1px; text-underline-offset: .45em; }
.vn200 .vn200__more-ev { font: italic 500 calc(14 * var(--ag-u))/1.5 var(--k-font-body); color: var(--ag-ink-2); text-wrap: pretty; }

/* ---- the photo viewer (section.js; a modal <dialog> made on the first tap): the wall's dark, etched controls ---- */
.vn200 .vn200__view {
  position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--ag-wall-base); color: var(--k-paper);
  overflow: hidden; overscroll-behavior: contain; touch-action: pinch-zoom;
}
.vn200 .vn200__view::backdrop { background: var(--ag-wall-base); }
.vn200 .vn200__view-in {
  height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "fig fig" "prev next"; align-items: center; gap: var(--k-s-4);
  padding: calc(76px + env(safe-area-inset-top)) var(--k-s-4) calc(var(--k-s-5) + env(safe-area-inset-bottom));
}
.vn200 .vn200__view-fig { grid-area: fig; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 0; height: 100%; margin: 0; }
.vn200 .vn200__view-img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: min(78vh, calc(100vh - 240px)); max-height: min(78svh, calc(100svh - 240px));
  object-fit: contain; border-radius: 2px; user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .4), 0 18px 40px -20px rgb(0 0 0 / .7);
}
.vn200 .vn200__view-cap { max-width: 60ch; margin-top: var(--k-s-3); text-align: center; font: italic 500 1rem/1.5 var(--k-font-body); color: var(--k-paper); }
.vn200 .vn200__view-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent;
  color: var(--ag-ink); background: var(--ag-etched-fill), rgb(var(--ag-veil-rgb) / .5); box-shadow: var(--ag-etched-cut); }
.vn200 .vn200__view-btn:active { box-shadow: var(--ag-etched-cut-deep); }
.vn200 .vn200__view-btn[hidden] { display: none; }
.vn200 .vn200__view-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vn200 .vn200__view-close { position: absolute; z-index: 2; top: calc(var(--k-s-4) + env(safe-area-inset-top)); right: calc(var(--k-s-4) + env(safe-area-inset-right)); }
.vn200 .vn200__view-prev { grid-area: prev; justify-self: end; }
.vn200 .vn200__view-next { grid-area: next; justify-self: start; }
@media (min-width: 768px) {
  .vn200 .vn200__view-in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); grid-template-areas: "prev fig next";
    gap: var(--k-s-5); padding: calc(76px + env(safe-area-inset-top)) var(--k-s-5) var(--k-s-5); }
  .vn200 .vn200__view-prev, .vn200 .vn200__view-next { justify-self: center; }
  .vn200 .vn200__view-img { max-height: min(78vh, calc(100vh - 180px)); max-height: min(78svh, calc(100svh - 180px)); }
}
@media (min-width: 1200px) {
  .vn200 .vn200__view-in { padding: var(--k-s-5); }
  .vn200 .vn200__view-img { max-height: min(84vh, calc(100vh - 130px)); max-height: min(84svh, calc(100svh - 130px)); }
}
