/*
	CSS-Erweiterungen für Videos
*/

/* Play-Icon */
.thumb.video .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.thumb.video:hover .play-icon { opacity: 1; }

/* Video-Thumbnail wie normale Kachel */
.thumb.video > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: none;
}
.thumb.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

/* Lightbox Vollbild */
#video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.75); /* RM: background von 0.85 auf 0.75 geaendert, damit der Hintergrund der anderen Bilder nicht so dunkel ist */
  display: none;
  z-index: 10002;
  text-align: center;
}
#video-lightbox .close {
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10003;
}
#video-lightbox video {
  max-width: 90%; /* RM: max-width von 100% auf 90% geaendert, damit das Video nur 90% des Browser-Fensters belegt */
  max-height: 90%; /* RM: max-height von 100% auf 90% geaendert, damit das Video nur 90% des Browser-Fensters belegt */
  width: auto;
  height: auto;
  object-fit: contain; /* Video immer vollständig sichtbar */
  display: block;
  margin: auto;
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
}
