/* ============================================
   QN Masonry Gallery - Zusätzliche Lightbox Styles
   ============================================ */

/* Cursor für klickbare Bilder */
.glightbox,
a.lightbox,
a[data-glightbox] {
  cursor: zoom-in;
}

/* Hover-Effekt für Lightbox-Bilder */
.ce-gallery a.glightbox img,
.ce-textpic a.glightbox img,
.ce-image a.glightbox img,
.frame-type-image a.glightbox img,
.frame-type-textpic a.glightbox img,
.frame-type-textmedia a.glightbox img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ce-gallery a.glightbox:hover img,
.ce-textpic a.glightbox:hover img,
.ce-image a.glightbox:hover img,
.frame-type-image a.glightbox:hover img,
.frame-type-textpic a.glightbox:hover img,
.frame-type-textmedia a.glightbox:hover img {
  transform: scale(1.02);
  opacity: 0.9;
}

/* Fix: GLightbox 3.3.0 setzt object-fit: cover, was Bilder beschneidet statt einpasst */
.gslide-image img {
  object-fit: contain !important;
}

/* GLightbox Anpassungen für bessere Lesbarkeit */
.glightbox-clean .gslide-title {
  font-size: 1.1em;
  font-weight: 500;
  color: #333;
}

.glightbox-clean .gslide-desc {
  font-size: 0.95em;
  color: #666;
}

/* Dunklerer Overlay */
.goverlay {
  background: rgba(0, 0, 0, 0.9) !important;
}

/* Navigation Buttons */
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  background-color: rgba(114, 47, 55, 0.8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
  background-color: rgba(114, 47, 55, 1);
}

.glightbox-clean .gclose {
  background-color: rgba(114, 47, 55, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.glightbox-clean .gclose:hover {
  background-color: rgba(114, 47, 55, 1);
}

/* ============================================
   Slideshow Button IN GLightbox (neben X-Button)
   ============================================ */

.qn-glightbox-slideshow-btn {
  position: fixed !important;
  top: 15px !important;
  right: 70px !important;
  left: auto !important;
  z-index: 9999999 !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background-color: rgba(114, 47, 55, 0.9) !important;
  color: #fff !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.qn-glightbox-slideshow-btn:hover {
  background-color: rgba(114, 47, 55, 1) !important;
  transform: scale(1.1) !important;
}

.qn-glightbox-slideshow-btn:focus {
  outline: 2px solid #fff !important;
  outline-offset: 2px !important;
}

.qn-glightbox-slideshow-btn svg {
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
  display: block !important;
}

/* Playing State - Grün */
.qn-glightbox-slideshow-btn.qn-playing {
  background-color: rgba(39, 174, 96, 0.9) !important;
  animation: qn-glow 1.5s ease-in-out infinite !important;
}

.qn-glightbox-slideshow-btn.qn-playing:hover {
  background-color: rgba(39, 174, 96, 1) !important;
}

@keyframes qn-glow {
  0%, 100% { 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(39, 174, 96, 0.4);
  }
  50% { 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(39, 174, 96, 0);
  }
}

/* Mobile Anpassung */
@media (max-width: 767px) {
  .qn-glightbox-slideshow-btn {
    top: 15px !important;
    right: 55px !important;
    width: 36px !important;
    height: 36px !important;
  }
  
  .qn-glightbox-slideshow-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
}
