/* Visual Moments – einheitliche, ruhige Navigation im Stil der Shooting-Seite.
   Ausschliesslich Darstellung; Galerieansichten und Lightbox bleiben unveraendert. */

/* Der Galerie-Umschalter behaelt seinen verschiebbaren Indikator.
   Statt einer dunklen Flaeche zeigt er jetzt eine feine Unterstreichung. */
.gallery-page .gallery-view-switch {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: min(100%, 1100px);
  max-width: calc(100% - 32px);
  margin: 4px auto 36px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(142,121,101,.30);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.gallery-page .gallery-view-switch .gallery-view-indicator {
  position: absolute;
  z-index: 0;
  top: auto;
  bottom: -1px;
  left: 4px; /* JS rechnet weiterhin mit dem bisherigen 4px-Offset. */
  height: 2px;
  width: var(--switch-width, 33.333%);
  transform: translateX(var(--switch-x, 0px));
  background: #8e7965;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
  transition: transform .42s cubic-bezier(.22,1,.36,1), width .42s cubic-bezier(.22,1,.36,1);
}
.gallery-page .gallery-view-switch .gallery-view-button {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  padding: 14px clamp(8px,2.5vw,34px) 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #76695e;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(23px,2.6vw,33px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}
.gallery-page .gallery-view-switch .gallery-view-button.is-active,
.gallery-page .gallery-view-switch .gallery-view-button[aria-pressed='true'] { color: #302b27; }
.gallery-page .gallery-view-switch .gallery-view-button:hover { color: #51483e; }
.gallery-page .gallery-view-switch .gallery-view-button:focus-visible {
  outline: 2px solid #8e7965;
  outline-offset: -4px;
}

/* Dezente, konsistente Seitenverweise in Portfolio und Galerie. */
body.portfolio-landscape .vm-world-arrow,
body.portfolio-people .vm-world-arrow,
.gallery-page .vm-world-arrow,
.gallery-page .vm-section-jump a,
body.portfolio-landscape .vm-section-jump a,
body.portfolio-people .vm-section-jump a,
.gallery-page .vm-people-gallery-link {
  color: #786453;
  text-decoration: none;
  transition: color .2s ease;
}
body.portfolio-landscape .vm-world-arrow:hover,
body.portfolio-people .vm-world-arrow:hover,
.gallery-page .vm-world-arrow:hover,
.gallery-page .vm-section-jump a:hover,
body.portfolio-landscape .vm-section-jump a:hover,
body.portfolio-people .vm-section-jump a:hover,
.gallery-page .vm-people-gallery-link:hover { color: #302b27; }

@media (max-width: 760px) {
  .gallery-page .gallery-mobile-controls .gallery-view-switch {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(142,121,101,.30);
    border-radius: 0;
    background: transparent;
  }
  .gallery-page .gallery-mobile-controls .gallery-view-button {
    min-width: 0;
    padding: 12px 3px 14px;
    font-size: clamp(19px,4.7vw,27px) !important;
    letter-spacing: 0;
    text-transform: none;
  }
}
@media (max-width: 380px) {
  .gallery-page .gallery-mobile-controls .gallery-view-button {
    font-size: 19px !important;
    padding-left: 1px;
    padding-right: 1px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-page .gallery-view-switch .gallery-view-indicator,
  .gallery-page .gallery-view-switch .gallery-view-button { transition: none; }
}

/* FIX: Welt-/Portfolio-Links und große Galerie-Tabs in getrennten Zeilen.
   Die alten absoluten Positionierungen aus world-arrows.css würden
   sonst mit den größeren Tab-Beschriftungen kollidieren. */
.gallery-page .gallery-mobile-controls.vm-world-controls {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 18px;
  align-items: center;
  width: min(calc(100% - 32px), 1150px);
  max-width: 1150px;
  margin: 0 auto 34px;
  padding: 0;
  box-sizing: border-box;
}
.gallery-page .gallery-mobile-controls.vm-world-controls > .vm-world-arrow--left {
  position: static !important;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  transform: none !important;
  margin: 0 !important;
  z-index: auto;
}
.gallery-page .gallery-mobile-controls.vm-world-controls > .vm-section-jump--in-controls {
  position: static !important;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  transform: none !important;
  margin: 0 !important;
  width: auto !important;
  z-index: auto;
}
.gallery-page .gallery-mobile-controls.vm-world-controls > .gallery-view-switch {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  width: min(100%, 800px);
  max-width: 100%;
  margin: 0 auto !important;
  box-sizing: border-box;
}
.gallery-page .gallery-mobile-controls.vm-world-controls > .vm-world-arrow--left:hover,
.gallery-page .gallery-mobile-controls.vm-world-controls > .vm-world-arrow--left:focus-visible {
  transform: translateX(-3px) !important;
}
@media (max-width: 760px) {
  .gallery-page .gallery-mobile-controls.vm-world-controls {
    column-gap: 8px;
    row-gap: 16px;
    margin-bottom: 26px;
  }
  .gallery-page .gallery-mobile-controls.vm-world-controls > .vm-world-arrow--left,
  .gallery-page .gallery-mobile-controls.vm-world-controls > .vm-section-jump--in-controls {
    min-width: 0;
    max-width: 100%;
  }
  .gallery-page .gallery-mobile-controls.vm-world-controls > .gallery-view-switch {
    width: 100%;
  }
}
