/* oliver-parallax runtime.css — Modulkern (kein Demo-Chrome). */

.mm-oliver-parallax {
  position: relative;
  width: 100%;
  overflow: hidden; /* Fallback; internes Scrollen lebt in .mmo-view */
  background: #0c0c0e;
  font-family: inherit;
}

.mm-oliver-parallax,
.mm-oliver-parallax * {
  box-sizing: border-box;
}

/* Hintergrund-Buehne (Farbe oder Bild + Overlay) hinter der Galerie. */
.mm-oliver-parallax .mmo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mm-oliver-parallax .mmo-bg__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.mm-oliver-parallax .mmo-bg__overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* Interner Scroller-Modus (useWindowScroll: off): fixe Box, innen gescrollt. */
.mm-oliver-parallax.is-scroller .mmo-view {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}
.mm-oliver-parallax.is-scroller .mmo-view::-webkit-scrollbar { display: none; }

/* Fenster-Modus (useWindowScroll: on): die Seite scrollt, das Modul waechst. */
.mm-oliver-parallax:not(.is-scroller) .mmo-view {
  position: relative;
  z-index: 1;
}

.mm-oliver-parallax .mmo-pin {
  position: relative;
  width: 100%;
  padding: 0 clamp(0.65rem, 2.2vw, 1.75rem);
}

/* ---- Vertikal: Kolumnen-Parallax ---- */
.mm-oliver-parallax .mmo-gallery {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--mmo-gap, 16px);
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  will-change: contents;
}

.mm-oliver-parallax .mmo-column {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: var(--mmo-gap, 16px);
  min-width: 0;
  will-change: transform;
  padding-top: 8vh;
}

/* Versetzte Ruhe-Offsets — die Kolumnen wirken schon vor dem Scroll in der
   Tiefe (Proto 1:1). */
.mm-oliver-parallax .mmo-column[data-col="0"] { margin-top: 0; }
.mm-oliver-parallax .mmo-column[data-col="1"] { margin-top: 8vh; }
.mm-oliver-parallax .mmo-column[data-col="2"] { margin-top: -2vh; }
.mm-oliver-parallax .mmo-column[data-col="3"] { margin-top: 12vh; }
.mm-oliver-parallax .mmo-column[data-col="4"] { margin-top: 4vh; }

/* ---- Kachel ---- */
.mm-oliver-parallax .mmo-figure {
  position: relative;
  width: 100%;
  display: block;
  border: none;
  padding: 0;
  background: #1a1a1e;
  border-radius: var(--mmo-radius, 12px);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 3 / 4;
  font: inherit;
  color: inherit;
  box-shadow: var(--mmo-shadow, none);
  -webkit-tap-highlight-color: transparent;
}

/* Varied aspect ratios for the organic Oliver look (Proto-Zyklus). */
.mm-oliver-parallax .mmo-figure[data-ratio="tall"] { aspect-ratio: 3 / 4.4; }
.mm-oliver-parallax .mmo-figure[data-ratio="square"] { aspect-ratio: 1 / 1.05; }
.mm-oliver-parallax .mmo-figure[data-ratio="wide"] { aspect-ratio: 4 / 3.2; }
.mm-oliver-parallax .mmo-figure[data-ratio="portrait"] { aspect-ratio: 3 / 3.8; }

.mm-oliver-parallax .mmo-figure__img,
.mm-oliver-parallax .mmo-figure__ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.mm-oliver-parallax .mmo-figure:hover .mmo-figure__img,
.mm-oliver-parallax .mmo-figure:focus-visible .mmo-figure__img {
  transform: scale(1.04) !important;
}

.mm-oliver-parallax .mmo-figure__ph {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.mm-oliver-parallax .mmo-figure__hint {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  z-index: 2;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.mm-oliver-parallax .mmo-figure:hover .mmo-figure__hint,
.mm-oliver-parallax .mmo-figure:focus-visible .mmo-figure__hint {
  opacity: 1 !important;
}

@media (max-width: 640px) {
  /* Dauerhaft sichtbar NUR mit dem Toggle "Badge visible on mobile" —
     Default aus (Badge nur bei Hover/Focus, Touch sieht ihn nicht). */
  .mm-oliver-parallax.is-hint-mobile .mmo-figure__hint { opacity: 0.85 !important; }
  .mm-oliver-parallax .mmo-column { padding-top: 4vh; }
  .mm-oliver-parallax .mmo-column[data-col="1"] { margin-top: 5vh; }
  .mm-oliver-parallax .mmo-column[data-col="2"] { margin-top: 1vh; }
  .mm-oliver-parallax .mmo-column[data-col="3"] { margin-top: 7vh; }
  .mm-oliver-parallax .mmo-column[data-col="4"] { margin-top: 3vh; }
}

/* Theme-Ringe (BB/WP) auf der Kachel toeten — auch :focus; der eigene
   Fokusring kommt zusaetzlich via :focus-visible (Runde 60g). */
.mm-oliver-parallax .mmo-figure:focus {
  outline: 0 !important;
}

.mm-oliver-parallax .mmo-figure:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65) !important;
  outline-offset: -2px !important;
}

/* ---- Horizontal: Pin-Frame + Filmstrip ---- */
.mm-oliver-parallax.is-horizontal .mmo-pin {
  height: 100%;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.mm-oliver-parallax.is-horizontal .mmo-gallery {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  width: max-content;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0 max(5%, 1.5rem);
  will-change: transform;
}

.mm-oliver-parallax.is-horizontal .mmo-column {
  flex: 0 0 auto;
  width: var(--mmo-col-w, 380px);
  height: auto;
  min-height: 100%;
  margin-top: 0 !important;
  padding-top: 0;
}

/* Reduced motion: keine Kolumnen-Transforms (die Runtime baut noch nicht
   einmal Trigger auf — der CSS-Gurt bleibt als Belt). */
@media (prefers-reduced-motion: reduce) {
  .mm-oliver-parallax .mmo-column {
    transform: none !important;
  }
}

/* ---- Lightbox (Standard der Galerien: fixed ueber den MONITOR, Karte
   min(96vw, 960px), Bild contained in der Viewport-Hoehe) ---- */
.mm-oliver-parallax .mmo-lb {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.mm-oliver-parallax .mmo-lb.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mm-oliver-parallax .mmo-lb__scrim {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: rgba(0, 0, 0, 0.62) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
}

.mm-oliver-parallax .mmo-lb__card {
  position: relative;
  z-index: 1;
  width: min(96vw, 960px);
  max-height: min(92dvh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.75rem;
  background: var(--mmo-lb-bg, #0a0a10);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mm-oliver-parallax .mmo-lb.is-open .mmo-lb__card { transform: none; }

.mm-oliver-parallax .mmo-lb__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mm-oliver-parallax .mmo-lb__media {
  display: block;
  /* Box haftet am Foto, nicht an der Kartenbreite — nur dann runden die
     Ecken (border-radius aus dem Image-radius-Setting) das sichtbare Bild. */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78dvh, 780px);
  min-height: min(42dvh, 320px);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.25);
  border: 0;
  padding: 0;
  box-shadow: none;
}

.mm-oliver-parallax .mmo-lb__body {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 0.85rem 1.1rem 1.05rem;
  overflow-y: auto;
}

.mm-oliver-parallax .mmo-lb__kicker {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mmo-lb-text, #c8c8d0);
  opacity: 0.75;
}

.mm-oliver-parallax .mmo-lb__title {
  margin: 0 0 0.45rem;
  font-size: var(--mmo-lb-title-size, 21px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--mmo-lb-title, #ffffff);
}

.mm-oliver-parallax .mmo-lb__title[hidden] { display: none; }

.mm-oliver-parallax .mmo-lb__desc {
  margin: 0;
  font-size: var(--mmo-lb-text-size, 14px);
  line-height: 1.5;
  color: var(--mmo-lb-text, #c8c8d0);
}

.mm-oliver-parallax .mmo-lb__desc[hidden] { display: none; }

.mm-oliver-parallax .mmo-lb__link {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: #0c0c12;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.mm-oliver-parallax .mmo-lb__link:hover { transform: translateY(-1px); }
.mm-oliver-parallax .mmo-lb__link,
.mm-oliver-parallax .mmo-lb__link:hover { text-decoration: none; }
.mm-oliver-parallax .mmo-lb__link[hidden] { display: none; }

/* ---- Close-Icon App-Dialog-Look (Runde 60j): Inline-SVG statt Text-Glyphe,
   theme-sicher zentriert, duenner Ring wie im App-Modal. ---- */
.mm-oliver-parallax .mmo-lb__close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
}

.mm-oliver-parallax .mmo-lb__close svg {
  width: 45% !important;
  height: 45% !important;
  display: block !important;
  pointer-events: none;
}

/* 1.2.79: lift the module ROOT above later BB rows while the lightbox is
   open. isolation:isolate on the root turns it into a stacking context,
   so the fixed lightbox only ranked inside it - later rows painted over
   it. A z-index on the root itself wins over the auto-level siblings. */
.mm-oliver-parallax.is-lightbox {
  z-index: 1000000;
}
