/* Base Styles */
.mixed-media-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.mixed-media-slider-container .swiper {
    width: 100%;
    height: 100%;
}

.mixed-media-slider-container .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mixed-media-slider-container .slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mixed-media-slider-container .slide-content:hover {
    transform: scale(1.02);
}

.mixed-media-slider-container .slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mixed-media-slider-container .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mixed-media-slider-container .image-slide:hover .image-overlay {
    opacity: 1;
}

/* Video Styles */
.mixed-media-slider-container .video-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.mixed-media-slider-container .video-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.mixed-media-slider-container .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mixed-media-slider-container .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.mixed-media-slider-container .play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.mixed-media-slider-container .play-button svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Video Lightbox Styles */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.video-lightbox iframe {
    border-radius: 8px;
}

.video-lightbox-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: background 0.3s ease !important;
}

.video-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Lightbox Styles */
.mixed-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.mixed-lightbox .lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mixed-lightbox .lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mixed-lightbox .lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.mixed-lightbox .lightbox-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.mixed-lightbox .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mixed-lightbox .lightbox-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mixed-lightbox .lightbox-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mixed-lightbox .lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.mixed-lightbox .lightbox-prev,
.mixed-lightbox .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    font-size: 48px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.mixed-lightbox .lightbox-prev {
    left: 20px;
}

.mixed-lightbox .lightbox-next {
    right: 20px;
}

body.lightbox-open {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 768px) {
    .mixed-media-slider-container .swiper-button-next,
    .mixed-media-slider-container .swiper-button-prev {
        display: none;
    }

    .mixed-media-slider-container .slide-content:hover {
        transform: none;
    }

    .mixed-lightbox .lightbox-prev,
    .mixed-lightbox .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 36px;
    }

    .mixed-lightbox .lightbox-prev {
        left: 10px;
    }

    .mixed-lightbox .lightbox-next {
        right: 10px;
    }

    .mixed-lightbox .lightbox-header {
        padding: 15px;
    }
}

/* === Mixed Lightbox Fix (Overlay sichtbar machen) === */

.mixed-lightbox {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(40, 40, 40, 0.6); /* leicht grauer, transparenter Hintergrund */
}

.mixed-lightbox .lightbox-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(40, 40, 40, 0.6); /* ebenfalls halbtransparentes Grau */
}


.mixed-lightbox .lightbox-container {
  position: relative;
  z-index: 1000000;
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
}

.mixed-lightbox .lightbox-image,
.mixed-lightbox iframe {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

/* === Lightbox Buttons in #FFBD59 (Gold-Orange) === */

/* === Lightbox Buttons in #FFBD59 (ruhige Variante) === */

.mixed-lightbox .lightbox-prev,
.mixed-lightbox .lightbox-next,
.mixed-lightbox .lightbox-close {
  color: #FFBD59;                       /* Symbolfarbe */
  background: rgba(255, 189, 89, 0.15); /* zarter, transparenter Hintergrund */
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease; /* nur Farbe, kein Bewegung */
  z-index: 1000001;
}

/* Hover- und Fokus-Zustand ohne Bewegung */
.mixed-lightbox .lightbox-prev:hover,
.mixed-lightbox .lightbox-next:hover,
.mixed-lightbox .lightbox-close:hover {
  background: rgba(255, 189, 89, 0.3); /* etwas heller beim Hover */
  color: #FFBD59;
}

/* Pfeilpositionierung */
.mixed-lightbox .lightbox-prev {
  left: 20px;
}

.mixed-lightbox .lightbox-next {
  right: 20px;
}

/* Close-Button oben rechts */
.mixed-lightbox .lightbox-close {
  font-size: 30px;
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Nur den Titel ausblenden – Close-Button bleibt */
.mixed-lightbox .lightbox-title {
  display: none !important;
}

/* === Lightbox: Videos richtig skalieren === */
.mixed-lightbox .lightbox-media-container {
  position: relative;
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
}

.mixed-lightbox .lightbox-media-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.mixed-lightbox .lightbox-media-container img.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
}
