@charset "UTF-8";

/* ========================================================================
   1. COMPONENT: BLOG FIGURE & MEDIA WRAPPER
   ======================================================================== */
.novaropro-blog-figure {
  margin: 0 0 25px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Zentriert Bilder, wenn sie kleiner als die Textspalte sind */
  width: 100%;
}

.novaropro-blog-figure-trigger {
  display: block;
  max-width: 100%; /* Verhindert das Ausbrechen aus dem Grid */
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.novaropro-blog-figure-media {
  display: inline-block; /* Passt sich präzise an die echte Bildbreite an */
  max-width: 100%;
  overflow: hidden;
  border: 2px solid #e6e6e6;
  box-shadow: 0 10px 30px #00000025;
}

.novaropro-blog-figure .image-max-100 {
  display: block;
  box-sizing: border-box;
  width: auto;       /* CORE-FIX: Verhindert das künstliche Aufblähen kleinerer Bilder */
  height: auto;      /* Behält das korrekte Seitenverhältnis bei */
  max-width: 100%;   /* Skaliert das Bild nur herunter, wenn es zu breit für den Artikel ist */
  border: 0 !important;
  box-shadow: none;
  transition: transform 0.25s ease, filter 0.25s ease;
  transform-origin: center center;
}

/* Interaktiver Hover- & Fokus-Effekt auf dem Teaser-Bild */
.novaropro-blog-figure-trigger:hover .image-max-100,
.novaropro-blog-figure-trigger:focus-visible .image-max-100 {
  transform: scale(1.03);
  filter: brightness(1.01);
}

.novaropro-blog-figure figcaption {
  padding-top: 8px;
  width: 100%;
  text-align: center; /* Harmonisiert die Bildunterschrift unter zentrierten Bildern */
}

/* ========================================================================
   2. COMPONENT: LIGHTBOX ZOOM OVERLAY (WAI-ARIA COMPLIANT)
   ======================================================================== */
.novaropro-blog-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 24, 28, 0.95);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(8px);
  cursor: zoom-out; /* Lupe mit Minus für den Hintergrund */
}

.novaropro-blog-lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.novaropro-blog-lightbox-image {
  width: 92%;
  max-width: 1200px;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-out; /* CORE-FIX: Ändert den Zeiger über dem Bild von 'default' auf 'zoom-out' (Lupe mit Minus) */
}

.novaropro-blog-lightbox-overlay.is-active .novaropro-blog-lightbox-image {
  transform: scale(1);
}

.novaropro-blog-lightbox-caption {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: #f1f3f5;
  background-color: rgba(29, 39, 43, 0.85);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  max-width: 80%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.novaropro-blog-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #adb5bd;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.novaropro-blog-lightbox-close:hover {
  color: #fff;
}