/* Postloop style: graphic — centered title + CTA arrow */

.wh-carousel--graphic {
  padding-inline: 0;
}

.wh-carousel--graphic .wh-carousel__stage {
  position: relative;
  display: flex;
  align-items: center;
}

.wh-carousel--graphic .wh-carousel__swiper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.wh-carousel--graphic .wh-carousel__nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.wh-carousel--graphic .wh-carousel__nav.swiper-button-next,
.wh-carousel--graphic .wh-carousel__nav.swiper-button-prev {
  position: absolute;
  inset: auto;
  margin-top: 0;
}

.wh-carousel--graphic .wh-carousel__nav:hover,
.wh-carousel--graphic .wh-carousel__nav:focus-visible {
  background: rgb(0 0 0 / 35%);
  opacity: 1;
}

.wh-carousel--graphic .wh-carousel__prev {
  left: 0.35rem;
}

.wh-carousel--graphic .wh-carousel__next {
  right: 0.35rem;
}

.wh-carousel--graphic .swiper-slide {
  height: auto;
}

.wh-graphic-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #111;
  background-image: var(--wh-card-image);
  background-position: center;
  background-size: cover;
  text-decoration: none;
  color: #fff;
}

.wh-graphic-card--placeholder {
  background-image: none;
}

.wh-graphic-card__overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 42%);
  transition: background 0.3s ease;
  pointer-events: none;
}

.wh-graphic-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.wh-graphic-card__title {
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.wh-graphic-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1.5px solid rgb(255 255 255 / 85%);
  border-radius: 50%;
  color: #fff;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.wh-graphic-card:hover .wh-graphic-card__overlay,
.wh-graphic-card:focus-visible .wh-graphic-card__overlay {
  background: rgb(0 0 0 / 55%);
}

.wh-graphic-card:hover .wh-graphic-card__cta,
.wh-graphic-card:focus-visible .wh-graphic-card__cta {
  transform: translateX(3px);
  background-color: rgb(255 255 255 / 12%);
}

@media (max-width: 767px) {
  .wh-graphic-card {
    min-height: 16rem;
  }

  .wh-carousel--graphic .wh-carousel__nav {
    width: 2.25rem;
    height: 2.25rem;
  }
}
