@import url("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css");
.block-slider {
  border-radius: 2.7em;
  position: relative;
  padding-bottom: 2em;
  padding-top: 2em;
  --swiper-pagination-color: var(--fg, #000);
  --swiper-pagination-bullet-inactive-color: var(--fg, #000);
  --swiper-navigation-size: 1em;
  --swiper-navigation-color: var(--fg, #000);
  --swiper-navigation-color-hover: var(--fg, #000);
}

/* Hero layout: media 2/3 + editor 1/3 on desktop */
.block-slider--hero .block-slider__hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}
@media (min-width: 760px) {
  .block-slider--hero .block-slider__hero-inner {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }
  .block-slider--hero.block-slider--has-editor .block-slider__media {
    flex: 0 0 66.666%;
    max-width: 66.666%;
  }
  .block-slider--hero:not(.block-slider--has-editor) .block-slider__media {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .block-slider--hero .block-slider__editor {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 2em 2em 2em 3.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
.block-slider__media {
  min-height: 0;
}
.block-slider__title {
  margin: 0 0 0.5em;
  font-size: 1.5rem;
  line-height: 1.3;
}
.block-slider__content {
  font-size: 0.95rem;
  line-height: 1.6;
}
.block-slider__content p {
  margin: 0 0 0.5em;
}
.block-slider__content p:last-child {
  margin-bottom: 0;
}
.block-slider .swiper {
  border-radius: 2.7em;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}
.block-slider .swiper-slide img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 7;
}
.block-slider .swiper-wrapper {
  position: relative;
  padding-bottom: 0;
  height: 100%;
}
.block-slider__grid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  aspect-ratio: 3/2;
  z-index: 9;
  top: 2em;
  pointer-events: none;
  border: 1px solid var(--fg-headline, #000);
}
.block-slider .swiper-slide {
  width: 100% !important;
  height: 100%;
}
.block-slider .swiper-slide img {
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 7;
}
.swiper-button-prev {
  left: 0;
}
.swiper-button-next {
  right: 0;
}
.swiper-button-prev,
.swiper-button-next {
  top: auto;
  bottom: 0.7em;
  display: none;
}
.swiper-pagination-bullet {
  position: relative;
  overflow: hidden;
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}
.high-contrast .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
}
.swiper-pagination-bullet .progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
    background-color: var(--fg-headline, #000);
  transform: scaleX(0);
  transform-origin: left;
  visibility: hidden;
  animation: none;
}
.swiper-pagination-bullet.swiper-pagination-bullet-active {
  width: 40px;
  transition: width 0.25s ease-in;
  border-radius: 8px;
}
.swiper-pagination-bullet.swiper-pagination-bullet-active .progress-bar {
  visibility: visible;
  animation: progress-bar-fill 3.8s linear;
}
@keyframes progress-bar-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.swiper-zoom-container {
  text-align: inherit;
}
/*
.wp-block-slide {
    background: black;
    position: relative;
    display: block;
    width: 100%;
    padding-top: (2/3 * 100%);
    overflow: hidden;
    > figure {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        > img {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            aspect-ratio: (3/2);
            object-fit: contain;
            object-position: center center;
        }
    }
}
*/
