.gallery-bar,
.event-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.gallery-bar { margin-bottom: 2.1rem; }
.gallery-bar a { font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.gallery-bar .breadcrumb { margin: 0; }
.work-gallery { min-height: 62vh; }
.gallery-intro {
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(22px, 3vw, 48px);
  margin-bottom: clamp(22px, 3vw, 48px);
}
.gallery-intro h1,
.editor-heading h1 {
  font: 400 clamp(52px, 6.5vw, 112px)/1.02 var(--serif);
  letter-spacing: -.052em;
  overflow-wrap: anywhere;
}
.gallery-intro p, .editor-heading .intro { margin-top: 16px; max-width: 55ch; color: #56584c; }
.gallery-intro p, .event-card p { white-space: pre-line; overflow-wrap: anywhere; }
.gallery-status { margin: 12px 0; color: #505345; font-size: 14px; }
.gallery-status:empty { display: none; }
.gallery-status[data-error] { color: #90331f; }
.gallery-state {
  padding: clamp(25px, 4vw, 64px);
  background: var(--soft);
  max-width: 76rem;
}
.gallery-state p { font: 400 clamp(24px, 3vw, 44px)/1.2 var(--serif); margin-bottom: 1.1rem; }
.gallery-grid,
.media-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(20px, 2.8vw, 54px);
}
.gallery-grid:has(.event-card:only-child) { grid-template-columns: minmax(0, 42rem); }
.event-card { min-width: 0; }
.event-card h2 { font-size: clamp(27px, 3vw, 46px); margin: 9px 0 8px; overflow-wrap: anywhere; }
.event-card h2 a { text-underline-offset: .13em; }
.event-card p { font-size: 15px; color: #53554a; max-width: 65ch; }
.event-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #292b23;
  aspect-ratio: 1.65;
}
.event-cover img, .event-cover video { width: 100%; height: 100%; object-fit: cover; }
.event-legend { flex-wrap: wrap; margin-top: 13px; color: #616354; font-size: 12px; }
.media-wall { align-items: start; }
.media-wall figure { margin: 0; min-width: 0; }
.media-wall img, .media-wall video {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #eae7dd;
}
.media-wall figure:first-child:last-child { max-width: 62rem; }
.gallery-editor {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 7vw, 110px);
  min-height: 66vh;
  align-items: start;
}
.editor-heading #sign-out { margin-top: 25px; }
.editor-panel { width: 100%; max-width: 760px; }
.editor-panel h2 { font-size: clamp(30px, 3.3vw, 49px); margin-bottom: 23px; }
.editor-panel form label { margin: 14px 0 4px; }
.editor-panel form input, .editor-panel form textarea { margin: 0; }
.editor-panel .button { margin-top: 16px; }
.editor-panel button:disabled { opacity: .65; cursor: progress; }
.editor-panel input[type=file] { padding: 10px; }
.editor-panel input::file-selector-button {
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
  margin-right: 10px;
  padding: 8px 12px;
}
.file-list { display: grid; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 4px 0; }
.file-list li span { flex: 1; overflow-wrap: anywhere; font-size: 13px; }
.file-list button { min-height: 40px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.editor-panel progress { width: 100%; margin-top: 15px; accent-color: #67653f; }
.published-panel { padding: min(5vw, 35px); background: var(--soft); }
.published-panel h2 { margin-bottom: 9px; }
.published-panel p { overflow-wrap: anywhere; }
.published-panel .text-link { margin: 16px 0 0 15px; }
@media (max-width: 720px) {
  .gallery-editor { grid-template-columns: 1fr; }
  .gallery-intro h1, .editor-heading h1 { font-size: clamp(46px, 12vw, 72px); }
  .gallery-bar { margin-bottom: 20px; }
}
