@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  0% {
    transform: rotate(360deg);
  }
}

#caravan-galleries header {
  display: flex;
  gap: 24px;
  color: var(--e-global-color-secondary);
  margin-bottom: 24px;
}

#caravan-galleries h2 {
  font-family: var(--e-global-typography-e9eb8c5-font-family);
  font-size: var(--e-global-typography-e9eb8c5-font-size);
  font-weight: var(--e-global-typography-e9eb8c5-font-weight);
  line-height: var(--e-global-typography-e9eb8c5-line-height);
  letter-spacing: var(--e-global-typography-e9eb8c5-letter-spacing);
  margin: 0;
  width: auto;
}

#caravan-galleries select {
  width: auto;
  height: auto;
  font-family: var(--e-global-typography-text-font-family);
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  letter-spacing: var(--e-global-typography-text-letter-spacing);
  padding: 0;
  color: var(--e-global-color-text);
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--e-global-color-text);
}

#caravan-galleries .galleries-container {
  width: 100%;
  height: max(50vh, 500px);
  position: relative;
}

#caravan-galleries .galleries-container .caravan-gallery {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#caravan-galleries .swiper-lazy-preloader {
  border: 4px solid var(--e-global-color-text) !important; 
  border-top: 4px solid #0000 !important;
  animation-name: spin;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-play-state: running;
  animation-iteration-count: infinite;
}

#caravan-galleries .galleries-container .caravan-gallery.active {
  display: block;
}

#caravan-galleries .galleries-container .caravan-gallery swiper-slide {
  height: 100%;
  width: auto
}

#caravan-galleries .galleries-container .caravan-gallery swiper-slide img {
  height: 100%;
  width: auto
}

@media screen and (max-width: 1024px) {
  #caravan-galleries .galleries-container .caravan-gallery swiper-slide {
    width: 100%;
  }

  #caravan-galleries .galleries-container .caravan-gallery swiper-slide img {
    width: 100%;
    object-fit: contain;
  }
}

#caravan-galleries .galleries-container .caravan-gallery::part(pagination) {
  width: auto;
  bottom: 8px;
  background-color: var(--e-global-color-primary);
  color: var(--e-global-color-text);
  border-radius: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px;
  font-family: var(--e-global-typography-text-font-family);
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-e9eb8c5-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  letter-spacing: var(--e-global-typography-text-letter-spacing);
}

#caravan-galleries .galleries-container .caravan-gallery::part(button-next),
#caravan-galleries .galleries-container .caravan-gallery::part(button-prev) {
  width: 8px;
  height: 8px;
  background-color: var(--e-global-color-primary);
  border-radius: 100px;
  padding: 8px;
  color: var(--e-global-color-text);
}