/* Foto-Grossansicht (GLightbox) auf Flotte und Dienstleistungsseiten.
   Wird über plugins/includes/lightbox_assets.html nach glightbox.min.css geladen
   und überschreibt dessen Standard-Look. */

/* Foto auf der Seite: Lupe zeigt, dass man es vergrössern kann */
.lightbox-link {
  position: relative;
  display: block;
  cursor: zoom-in;
}

.lightbox-link img {
  display: block;
}

.lightbox-link:focus-visible {
  outline: 2px solid var(--bh-accent);
  outline-offset: 3px;
}

.lightbox-link__icon {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--bh-accent);
  box-shadow: 0 2px 8px rgba(var(--bh-shade-rgb), 0.2);
  opacity: 0;
  transition: opacity 0.2s;
}

.lightbox-link:hover .lightbox-link__icon,
.lightbox-link:focus-visible .lightbox-link__icon {
  opacity: 1;
}

/* Touch-Geräte haben kein Hover: Lupe immer zeigen, damit klar ist, dass man tippen kann */
@media (hover: none) {
  .lightbox-link__icon {
    opacity: 1;
  }
}

/* Grossansicht: dunkelblauer Hintergrund statt Schwarz (GLightbox setzt auf dem Handy
   und bei niedrigen Bildschirmen eigene Regeln, daher mit .glightbox-container) */
.glightbox-container .goverlay,
.glightbox-mobile .glightbox-container .goverlay {
  background: rgba(var(--bh-shade-rgb), 0.98);
}

/* Bildunterschrift als weisser Text direkt unter dem Foto statt weisser Box */
.glightbox-clean .gslide-description {
  background: transparent;
}

.glightbox-clean .gdesc-inner {
  padding: 1rem 0 0;
  text-align: center;
}

.glightbox-clean .gslide-title {
  margin: 0;
  font-family: "Public Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
}

.glightbox-clean .gslide-media {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Handy: Titel liegt unten auf dem Foto, Verlauf in Navy statt Schwarz */
.glightbox-mobile .glightbox-container .gslide-description {
  background: linear-gradient(to bottom, rgba(var(--bh-shade-rgb), 0) 0%, rgba(var(--bh-shade-rgb), 0.85) 100%);
}

.glightbox-mobile .glightbox-container .gslide-title {
  font-size: 1rem;
}

/* Schliessen-Button gut sichtbar oben rechts, mit Text */
.glightbox-clean .gclose {
  top: 1rem;
  right: 1rem;
  width: auto;
  height: 2.75rem;
  padding: 0 1.125rem 0 0.875rem;
  flex-direction: row;
  gap: 0.375rem;
  border-radius: 999px;
  background-color: #ffffff;
  color: var(--bh-navy);
  font-family: "Public Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.glightbox-clean .gclose svg {
  width: 1.125rem;
}

.glightbox-clean .gclose:hover,
.glightbox-clean .gclose.focused,
.glightbox-clean .gclose:focus-visible {
  background-color: #ffe600;
  color: var(--bh-navy);
  opacity: 1;
}

/* Vor/Zurück als weisse Kreise (nur Desktop; auf dem Handy wird gewischt) */
.glightbox-clean .gprev,
.glightbox-clean .gnext {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--bh-navy);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.glightbox-clean .gprev:hover,
.glightbox-clean .gnext:hover {
  background-color: #ffe600;
}

.glightbox-clean .gprev svg,
.glightbox-clean .gnext svg {
  width: 1.5rem;
}

/* Icons kommen aus lightbox.js (Tabler, stroke), daher die Füllung des Standard-Icons zurücksetzen */
.glightbox-clean .gclose path,
.glightbox-clean .gnext path,
.glightbox-clean .gprev path {
  fill: none;
}
