/* Galerie-Container */
.yachtdetails-gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  min-height: 75vh;
  position: relative;
  /* background-color: #f8f9fa; */
  text-align: center;
  position: relative;
  z-index: 0;
}

/* Slider-Bereich */
.yachtdetails-gallery-slider {
  width: 100%;
  max-width: 880px;
  overflow-x: auto;
  display: flex;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 1rem 0;
}

.gallery-slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
  position: relative;
  width: 100%;
  max-width: 720px;
}

.gallery-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}

.gallery-slide:hover img {
  transform: scale(1.015);
}

/* Bildbeschriftung */
.gallery-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 6px;
  z-index: 4;
  pointer-events: none;
  font-weight: 500;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}


/* Badges oben links */
.gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  background-color: #0c2e42;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  user-select: none;
  z-index: 5;
}

.gallery-badge.rebate {
  background-color: #b92929;
  z-index: 5;
}

.gallery-badge.new {
  background-color: #267c2c;
  z-index: 5;
}

.gallery-badge.rentstart img {
  height: 32px;
  vertical-align: middle;
  z-index: 5;
}

/* Mobile Anpassung */
@media screen and (max-width: 768px) {
  .yachtdetails-gallery-container {
    padding: 1rem;
  }

  .yachtdetails-gallery-slider {
    gap: 1rem;
    padding: 1rem 0;
  }

  .gallery-slide {
    max-width: 90vw;
  }

  .gallery-caption {
    font-size: 0.9rem;
  }

  .gallery-badge {
    font-size: 0.85rem;
    padding: 4px 8px;
  }
}

.technical-details .iconlist {
  display: block;
  max-width: 90%;
  margin: 0 auto;
  text-align: left;
  word-break: break-word;
}
