/* Exhibitions section (2026-11-30): hub cards and photo grid, udpackaging look. */
.ex-page { padding-top: 44px; padding-bottom: 90px; }
.ex-head { max-width: 980px; margin: 0 0 44px; }
.ex-h1 { margin: 0 0 20px; font-size: clamp(34px, 3.6vw, 54px); font-weight: 800; line-height: 1.15; letter-spacing: -.5px; color: var(--ud-ink); }
.ex-lead { margin: 0 0 26px; font-size: 19px; line-height: 1.65; color: var(--ud-body); }
.ex-facts { display: flex; flex-wrap: wrap; gap: 14px 46px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--ud-line); }
.ex-facts dt { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ud-muted); }
.ex-facts dd { margin: 0; font-size: 17px; font-weight: 700; color: var(--ud-title); }

.ex-cards, .ex-grid { list-style: none; margin: 0; padding: 0; }
.ex-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px; }
.ex-card { display: flex; flex-direction: column; height: 100%; max-width: 560px; border: 1px solid var(--ud-line); background: #fff; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.ex-card, .ex-card span { text-decoration: none !important; }
.ex-card:hover { box-shadow: 0 14px 34px rgba(0, 24, 48, .14); transform: translateY(-3px); }
.ex-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.ex-card-body { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 24px; border-top: 4px solid var(--ud-accent); }
.ex-card-date { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ud-accent-text); }
.ex-card-name { font-size: 24px; font-weight: 800; line-height: 1.25; color: var(--ud-title); }
.ex-card-meta { font-size: 16px; color: var(--ud-body); }
.ex-card-more { margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--ud-accent-text); }

.ex-grid { columns: 3; column-gap: 16px; }
.ex-grid li { break-inside: avoid; margin: 0 0 16px; }
.ex-grid a { display: block; cursor: zoom-in; overflow: hidden; background: var(--ud-light); }
.ex-grid img { display: block; width: 100%; height: auto; transition: transform .3s; }
.ex-grid a:hover img { transform: scale(1.03); }
.ex-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin: 40px 0 0; }

@media (max-width: 1000px) { .ex-grid { columns: 2; } }
@media (max-width: 560px) {
  .ex-grid { columns: 1; }
  .ex-cards { grid-template-columns: 1fr; }
  .ex-head { margin-bottom: 30px; }
  .ex-lead { font-size: 17px; }
}

/* enlarged photo: X top right, backdrop or Esc closes */
.ex-lb { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 56px 64px; background: rgba(2, 7, 14, .92); }
.ex-lb[hidden] { display: none; }
.ex-lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.ex-lb button { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.ex-lb button:hover, .ex-lb button:focus-visible { background: var(--ud-accent); outline: none; }
.ex-lb-close { top: 14px; right: 14px; }
.ex-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.ex-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
html.ex-lb-open { overflow: hidden; }
@media (max-width: 700px) {
  .ex-lb { padding: 66px 8px 70px; }
  .ex-lb-prev, .ex-lb-next { top: auto; bottom: 12px; transform: none; }
  .ex-lb-prev { left: calc(50% - 58px); }
  .ex-lb-next { right: calc(50% - 58px); }
}

/* photo marquee: two rows, opposite directions, pause on hover; without JS / with reduced motion the rows scroll by hand */
.ex-mq-wrap { display: grid; gap: 14px; }
.ex-mq { overflow-x: auto; overflow-y: hidden; }
.ex-mq-wrap.is-live .ex-mq { overflow: hidden; }
.ex-mq-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.ex-mq-track li { flex: none; margin: 0 14px 0 0; }
.ex-mq-track a { display: block; overflow: hidden; background: var(--ud-light); cursor: zoom-in; }
.ex-mq-track img { display: block; height: 320px; width: auto; max-width: none; transition: transform .3s; }
.ex-mq-track a:hover img { transform: scale(1.04); }
.ex-mq-wrap.is-live .ex-mq-track { animation: ex-mq 100s linear infinite; }
.ex-mq-wrap.is-live .ex-mq-rev .ex-mq-track { animation-direction: reverse; }
.ex-mq-wrap.is-live:hover .ex-mq-track, .ex-mq-wrap.is-held .ex-mq-track, .ex-mq-wrap.is-live:focus-within .ex-mq-track, html.ex-lb-open .ex-mq-track { animation-play-state: paused; }
@keyframes ex-mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ex-lb-count { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); font-size: 15px; font-weight: 700; letter-spacing: .08em; color: #fff; opacity: .8; }
@media (max-width: 700px) {
  .ex-mq-wrap { gap: 10px; }
  .ex-mq-track li { margin-right: 10px; }
  .ex-mq-track img { height: 200px; }
}
