/* Startseite: Archivfoto im bisherigen Highlight-Bereich. */
.sv-highlight-layout.has-archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}
.sv-highlight-content { min-width: 0; }
.sv-highlight-layout.has-archive .sv-highlight-content .sv-button-group {
  max-width: 500px;
  margin-inline: auto;
}
.sv-highlight-layout.has-archive .sv-highlight-content .sv-button-group > div {
  flex: 0 0 100%;
  width: 100%;
}
.sv-highlight-layout.has-archive .sv-highlight-content .sv-button {
  max-width: 100%;
}
.sv-archive-photo { min-width: 0; width: 100%; max-width: 560px; margin-inline: auto; container-type: inline-size; }
.sv-archive-photo[hidden], .sv-archive-photo [hidden] { display: none !important; }
.sv-archive-heading { text-align: center; margin: 0 0 16px; }
.sv-archive-frame {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
}
.sv-archive-frame a {
  display: block;
  flex: 0 0 auto;
  width: min(100%, calc(75% * var(--sv-archive-image-ratio, 1.333333)));
  aspect-ratio: var(--sv-archive-image-ratio, 1.333333);
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.sv-archive-frame a:focus-visible {
  outline: 2px solid #006600; outline-offset: -2px;
}
.sv-archive-frame img {
  width: 100%; height: 100%; display: block; object-fit: contain;
  border-radius: 12px; cursor: pointer;
}
.sv-archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; flex-wrap: wrap;
  /* Den Leerraum unter Querformaten ausgleichen, ohne den festen Bildrahmen zu verändern. */
  transform: translateY(min(0px, calc((100cqw / var(--sv-archive-image-ratio, 1.333333) - 75cqw) / 2)));
}
.sv-archive-caption { margin: 0; overflow-wrap: anywhere; flex: 1 1 140px; }
.sv-archive-caption .sv-archive-gallery-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: .15em;
  cursor: pointer;
}
.sv-archive-caption .sv-archive-gallery-link:hover,
.sv-archive-caption .sv-archive-gallery-link:focus-visible {
  color: #006600; text-decoration: underline;
}
.sv-archive-event-detail { display: block; }
.sv-archive-year-arrow { white-space: nowrap; }
.sv-archive-caption .sv-archive-gallery-link:focus-visible {
  outline: 2px solid #006600; outline-offset: 3px;
}
.sv-archive-next.sv-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin: 0; flex: 0 0 auto; max-width: 100%; }
.sv-archive-next:disabled { opacity: .6; cursor: default; transform: none; }
.sv-archive-status { margin: 8px 0 0; font-size: .95rem; }
@media (max-width: 767.98px) {
  .sv-highlight-layout.has-archive { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* Nur Einzelbild-Lightboxes auf der Startseite: keine Blätterpfeile. */
.pswp.pswp--one-slide .pswp__button--arrow { display: none !important; }
