/* Exhibition layout: a quiet frame so the drawings remain the focus. */
.exhibition-page {
  --gallery-accent: #f0d27b;
  --gallery-dim: #a5aead;
  font-family: Rockwell, Cambria, Georgia, serif;
}
.top + #content.exhibition-page { border-top: 0; }
.top nav a[aria-current="page"] { color: #f0d27b; }
.exhibition-page :is(button, input, select, textarea),
.admin-dialog :is(button, input, select, textarea) { font: inherit; }
.exhibition-head, .exhibition-gallery {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}
.exhibition-head { padding: clamp(65px, 9vw, 138px) 0 54px; }
.exhibition-kicker, .collection-index {
  color: var(--gallery-accent, #f0d27b);
  font: 700 .74rem/1.5 "Segoe UI Variable", "Segoe UI", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.exhibition-head h1 {
  margin: 15px 0 23px;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: .97;
  letter-spacing: -.06em;
}
.exhibition-dot { color: #f0d27b; }
.exhibition-lead {
  max-width: 680px;
  color: #cad0cd;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.6;
}
.exhibition-rule {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(50px, 7vw, 94px);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--gallery-dim, #a5aead);
  font: .75rem/1.4 "Segoe UI Variable", "Segoe UI", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.exhibition-gallery { padding-bottom: 94px; }
.exhibition-collection + .exhibition-collection { margin-top: 115px; }
.collection-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 0 45px;
  align-items: end;
  margin-bottom: 34px;
}
.collection-index { grid-column: 1 / -1; margin-bottom: 20px; }
.collection-intro h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.6vw, 5rem);
  line-height: 1.03;
}
.collection-intro > p:last-child {
  max-width: 460px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 1.05rem;
}
.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(25px, 3vw, 45px);
  align-items: start;
}
.exhibition-card { margin: 0; min-width: 0; }
.exhibition-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #181b1a;
}
.exhibition-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 850px;
  object-fit: contain;
  transition: filter .25s ease;
}
.exhibition-card:hover .exhibition-media img { filter: brightness(1.09); }
.exhibition-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px 22px;
  border-top: 1px solid var(--line);
  padding: 15px 0 0;
  font-size: .9rem;
}
.exhibition-card figcaption strong { font-weight: 600; }
.exhibition-card figcaption span { color: var(--muted); text-align: right; }
.exhibition-page .contact { padding-inline: max(24px, calc((100vw - 1180px) / 2)); }
.exhibition-page .contact h2 { max-width: 800px; }
.exhibition-admin-trigger {
  cursor: pointer;
  border: 1px solid #657168;
  background: transparent;
  color: var(--text);
}
.exhibition-admin-trigger:is(:hover, :focus-visible) {
  border-color: #f0d27b;
  background: #383629;
  color: #f0d27b;
}

/* Password and publishing controls share the site's compact button language. */
.admin-dialog {
  --gallery-accent: #f0d27b;
  width: min(100% - 30px, 540px);
  max-height: min(90dvh, 900px);
  overflow-y: auto;
  margin: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171b19;
  color: var(--text);
  box-shadow: 0 30px 100px #000a;
  font-family: Rockwell, Cambria, Georgia, serif;
}
.admin-dialog::backdrop { background: #050806d9; backdrop-filter: blur(6px); }
.admin-topline { display: flex; justify-content: space-between; align-items: start; }
.admin-topline .exhibition-kicker { margin: 0; }
.admin-close, .admin-logout {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.admin-close { padding: 0 6px; font-size: 2rem !important; line-height: 1; }
.admin-dialog h2 { margin: 20px 0 26px; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.admin-status { min-height: 1.5rem; color: var(--muted); font-size: .9rem; }
.admin-status[data-error="true"] { color: #f0a9a5; }
.admin-form { display: grid; gap: 11px; }
.admin-form[hidden], .admin-form-group[hidden] { display: none; }
.admin-form-group { display: grid; gap: 11px; }
.admin-form label { margin-top: 12px; color: #d4ddd6; font-size: .86rem; }
.admin-form :is(input, textarea, select) {
  width: 100%; min-width: 0;
  padding: 12px 14px;
  border: 1px solid #516058;
  border-radius: 5px;
  background: #101311;
  color: #f3f5f0;
  outline: 0;
}
.admin-form :is(input, textarea, select):focus-visible {
  border-color: var(--gallery-accent);
  box-shadow: 0 0 0 2px #f0d27b44;
}
.admin-form input[type="file"] { font: .85rem "Segoe UI", sans-serif; }
.admin-submit {
  display: flex; justify-content: space-between;
  margin-top: 18px;
  padding: 14px 17px;
  border: 0;
  border-radius: 5px;
  background: #f0d27b;
  color: #161b16;
  cursor: pointer;
  font-weight: 700;
}
.admin-submit:hover { background: #ffe6a5; }
.admin-submit:disabled { opacity: .6; cursor: wait; }
.admin-logout { justify-self: start; padding: 12px 0; }
@media (max-width: 700px) {
  .exhibition-head, .exhibition-gallery { width: min(100% - 36px, 1180px); }
  .exhibition-head { padding-top: 62px; }
  .exhibition-head h1 { font-size: clamp(3.6rem, 14vw, 6rem); }
  .collection-intro, .exhibition-grid { grid-template-columns: 1fr; }
  .collection-intro > p:last-child { margin-top: 18px; }
  .exhibition-card figcaption { padding-top: 12px; }
  .exhibition-page .contact { padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .exhibition-media img { transition: none; }
}
