/**
* Block Name: gallery_swiper
*/

section.gallery_swiper {
  overflow: hidden;
}
section.gallery_swiper .container {
  margin: 0 auto;
  height: 100%;
}

section.gallery_swiper .swiper-container {
  width: 100%;
  height: 100%;
  max-height: 518px;
}

section.gallery_swiper .swiper-wrapper {
  display: flex;
  align-items: stretch; /* Ensures all slides stretch to the same height */
}

section.gallery_swiper .swiper-slide {
  transition: all 300ms ease-in-out;
  display: flex;
  flex-direction: column;
	height: auto;
  justify-content: space-between; /* Ensures content like captions stays at the bottom */
}

section.gallery_swiper .spalten4 .swiper-slide {
  height: 400px;
}

section.gallery_swiper .swiper-slide:hover {
  text-decoration: none;
}

section.gallery_swiper .swiper-slide img {
  max-height: 518px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

section.gallery_swiper .swiper-slide .caption {
  background: var(--waldgrun);
  padding: 8px;
  color: var(--alabaster);
  font-size: 12px;
  position: sticky;
  bottom: 0;
}

section.gallery_swiper .swiper_nav {
  gap: 22px;
  position: relative;
  z-index: 9;
}

section.gallery_swiper .swiper_nav .button-prev svg circle,
section.gallery_swiper .swiper_nav .button-next svg circle {
  fill: transparent;
  transition: all 300ms ease-in-out;
}

section.gallery_swiper .swiper_nav .button-prev svg path,
section.gallery_swiper .swiper_nav .button-next svg path {
  transition: all 300ms ease-in-out;
}

section.gallery_swiper .swiper_nav .button-prev:hover svg circle,
section.gallery_swiper .swiper_nav .button-next:hover svg circle {
  fill: var(--sandbeige);
}

section.gallery_swiper .swiper_nav .button-prev:hover svg path,
section.gallery_swiper .swiper_nav .button-next:hover svg path {
  fill: #fff;
}

section.gallery_swiper .swiper-container:before,
section.gallery_swiper .swiper-container:after {
  content: "";
  position: absolute;
  height: 90%;
  width: 100px;
  bottom: 0;
  display: block;
  opacity: 1;
  transition: 0.3s linear;
}

section.gallery_swiper .swiper-container:before {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
}

section.gallery_swiper .swiper-container:after {
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
}

@media (max-width: 992px) {
  section.gallery_swiper .swiper-slide .caption {
    flex-direction: column !important;
  }
}
