.hero-showcase {
  isolation: isolate;
  min-height: 720px;
  background: #fff;
}

.hero {
  grid-template-columns: minmax(360px, .7fr) minmax(0, 1.3fr);
  min-height: 720px;
}

.hero-slides {
  position: absolute;
  inset: 0 0 48px;
}

.hero-image .hero-slide {
  inset: 0;
  padding: 0 4px 44px;
  opacity: 0;
  pointer-events: none;
  transform: scale(.965);
  transition: opacity .65s ease, transform 3s ease;
}

.hero-image .hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.hero-showcase figcaption {
  z-index: 3;
  right: auto;
  bottom: 14px;
  left: 50%;
  width: auto;
  min-width: min(390px, calc(100% - 40px));
  padding: 4px 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: transparent;
  font-size: 17px;
  font-style: normal;
  text-align: center;
}

.hero-progress {
  display: block;
  width: 78px;
  height: 2px;
  flex: none;
  overflow: hidden;
  background: #d8dfda;
}

.hero-progress::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  transform-origin: left;
  animation: hero-progress 3s linear infinite;
}

@keyframes hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-showcase { min-height: 540px; }
  .hero-slides { inset: 0 0 48px; }
  .hero-showcase figcaption {
    right: auto;
    bottom: 13px;
    left: 50%;
    width: calc(100% - 36px);
    min-width: 0;
    font-size: 15px;
  }
  .hero-image .hero-slide { padding: 0 2px 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image .hero-slide {
    transition: none;
    transform: none;
  }
  .hero-progress { display: none; }
}
