/* MARE Cockpit Lightbox */
html.mc-lb-open, html.mc-lb-open body { overflow: hidden; }
.mc-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(11, 22, 63, .94); display: flex; flex-direction: column; color: #fff; font-family: "IBM Plex Sans", system-ui, sans-serif; }
.mc-lb[hidden] { display: none; }
.mc-lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 6px 20px; min-height: 56px; }
.mc-lb__count { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: .04em; opacity: .85; }
.mc-lb__stage { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; padding: 0 72px; outline: none; }
.mc-lb__fig { margin: auto; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.mc-lb__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); background: #fff; }
/* ganze Seiten: in Breite (max. 1440 px) zeigen und scrollen */
.mc-lb.is-tall .mc-lb__fig { height: auto; align-items: flex-start; margin: 0 auto; padding-bottom: 24px; }
.mc-lb.is-tall .mc-lb__img { max-height: none; width: 100%; max-width: 1440px; }
/* lange Seiten: Fortschrittsbalken, Hinweis und sichtbarer Scrollbalken */
.mc-lb__progress { height: 4px; margin: 0 20px 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; visibility: hidden; }
.mc-lb.is-tall .mc-lb__progress { visibility: visible; }
.mc-lb__progress span { display: block; height: 100%; width: 0; background: #F28C28; transition: width .08s linear; }
.mc-lb__hint { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); margin: 0; padding: 10px 18px; border-radius: 999px; background: #F28C28; color: #0B163F; font-weight: 600; font-size: 15px; line-height: 1.3; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); pointer-events: none; white-space: nowrap; animation: mc-lb-nudge 1.6s ease-in-out 3; }
.mc-lb__hint[hidden] { display: none; }
@keyframes mc-lb-nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
.mc-lb.is-tall .mc-lb__stage { scrollbar-width: auto; scrollbar-color: #F28C28 rgba(255, 255, 255, .1); }
.mc-lb.is-tall .mc-lb__stage::-webkit-scrollbar { width: 12px; }
.mc-lb.is-tall .mc-lb__stage::-webkit-scrollbar-track { background: rgba(255, 255, 255, .08); border-radius: 12px; }
.mc-lb.is-tall .mc-lb__stage::-webkit-scrollbar-thumb { background: #F28C28; border-radius: 12px; border: 3px solid rgba(11, 22, 63, .94); }
.mc-lb__cap { margin: 0; padding: 10px 20px 16px; text-align: center; font-size: 14px; line-height: 1.45; opacity: .9; }
.mc-lb__cap[hidden] { display: none; }
/* .mc-lb davor, damit die Button-Stile des Themes nicht greifen */
.mc-lb .mc-lb__btn { appearance: none; border: 0; padding: 0; margin: 0; min-height: 0; box-shadow: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; transition: background .15s; }
.mc-lb .mc-lb__btn:hover, .mc-lb .mc-lb__btn:focus { background: rgba(255, 255, 255, .26); color: #fff; box-shadow: none; }
.mc-lb .mc-lb__btn:focus-visible { outline: 3px solid #F28C28; outline-offset: 2px; }
.mc-lb .mc-lb__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mc-lb__btn[hidden] { display: none; }
.mc-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.mc-lb__prev { left: 12px; }
.mc-lb__next { right: 12px; }
@media (max-width: 767px) {
  .mc-lb__stage { padding: 0 8px; }
  .mc-lb .mc-lb__nav { top: auto; bottom: 10px; transform: none; background: rgba(255, 255, 255, .2); }
  .mc-lb__prev { left: 12px; }
  .mc-lb__next { right: 12px; }
  .mc-lb__cap { padding: 10px 72px 18px; font-size: 13px; }
}
@media (max-width: 767px) { .mc-lb__hint { bottom: 72px; font-size: 13px; white-space: normal; width: max-content; max-width: calc(100% - 140px); text-align: center; } }
@media (prefers-reduced-motion: reduce) { .mc-lb__btn { transition: none; } .mc-lb__hint { animation: none; } }

/* Vorschaubilder: nur oberer Teil, Klick zeigt alles */
.mc-shot img, img.mc-shot { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; }
a[href$=".webp"], a[href$=".png"], a[href$=".jpg"], a[href$=".jpeg"], a[href$=".avif"] { cursor: zoom-in; }
