.ug-hero {
  --ug-orange: #e8002a;
  --ug-navy: #071b2b;
  position: relative;
  width: 100%;
  height: clamp(360px, 48vw, 680px);
  overflow: hidden;
  isolation: isolate;
  background: var(--ug-navy);
  font-family: inherit;
}

.ug-hero__slides,
.ug-hero__slide,
.ug-hero__shade {
  position: absolute;
  inset: 0;
}

.ug-hero__slide {
  opacity: 0;
  visibility: hidden;
  
  transition: opacity .85s ease, visibility .85s ease;
}

.ug-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.ug-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.ug-hero__slide.is-active .ug-hero__image {
  animation: ug-hero-kenburns 7s ease-out both;
}

.ug-hero__shade {
  background:
    linear-gradient(90deg, rgba(4, 20, 34, .88) 0%, rgba(4, 20, 34, .62) 38%, rgba(4, 20, 34, .08) 100%),
    linear-gradient(0deg, rgba(4, 20, 34, .45), transparent 45%); */
}

.ug-hero__shade::after {
  content: "";
  position: absolute;
  left: clamp(24px, 8vw, 118px);
  top: 50%;
  width: 4px;
  height: clamp(90px, 12vw, 150px);
  transform: translateY(-50%);
  border-radius: 4px;
  background: var(--ug-orange);
  box-shadow: 0 0 24px rgba(245, 130, 32, .35);
}

.ug-hero__caption {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(48px, 9vw, 140px);
  width: min(680px, 72%);
  transform: translateY(-50%);
  color: #fff;
  font-size: clamp(28px, 4.3vw, 62px);
  font-weight: 750;
  line-height: 1.08;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .25);
}

.ug-hero__caption > * {
  margin-top: 0;
  margin-bottom: .18em;
}

.ug-hero__caption p {
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 400;
  line-height: 1.6;
}

.ug-hero__caption a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 22px;
  border-radius: 3px;
  background: var(--ug-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
  transition: background .2s ease, transform .2s ease;
}

.ug-hero__caption a:hover {
  transform: translateY(-2px);
  background: #df6d0d;
  color: #fff;
}

.ug-hero__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(7,27,43,.35);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.ug-hero__arrow:hover {
  border-color: var(--ug-orange);
  background: var(--ug-orange);
}

.ug-hero__arrow span {
  margin-top: -4px;
  font: 34px/1 Arial, sans-serif;
}

.ug-hero__arrow--prev { left: 22px; }
.ug-hero__arrow--next { right: 22px; }

.ug-hero__pagination {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 8vw, 118px);
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.ug-hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: width .25s ease, border-radius .25s ease, background .25s ease;
}

.ug-hero__dot.is-active {
  width: 30px;
  border-color: var(--ug-orange);
  border-radius: 8px;
  background: var(--ug-orange);
}

.ug-hero__progress {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,.18);
}

.ug-hero__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ug-orange);
}

.ug-hero.is-playing .ug-hero__progress span {
  animation: ug-hero-progress 6s linear both;
}

@keyframes ug-hero-progress {
  to { width: 100%; }
}

@keyframes ug-hero-kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.09); }
}

@media (max-width: 700px) {
  .ug-hero {
    height: clamp(360px, 115vw, 560px);
  }

  .ug-hero__shade {
    background:
      linear-gradient(90deg, rgba(4,20,34,.78), rgba(4,20,34,.2)),
      linear-gradient(0deg, rgba(4,20,34,.48), transparent 70%);
  }

  .ug-hero__shade::after {
    left: 24px;
    height: 100px;
  }

  .ug-hero__caption {
    left: 42px;
    width: calc(100% - 82px);
  }

  .ug-hero__arrow {
    top: auto;
    bottom: 23px;
    width: 40px;
    height: 40px;
    transform: none;
  }

  .ug-hero__arrow:hover { transform: none; }
  .ug-hero__arrow--prev { left: 18px; }
  .ug-hero__arrow--next { right: 18px; }

  .ug-hero__pagination {
    right: 50%;
    bottom: 39px;
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ug-hero__slide,
  .ug-hero__image,
  .ug-hero__arrow,
  .ug-hero__dot,
  .ug-hero__caption a {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 700px) {
  .ug-hero {
    height: 300px; /* Adjust to your preferred mobile height */
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    background: transparent;
  }

  .ug-hero__slide,
  .ug-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .ug-hero__image {
    object-fit: cover;
    object-position: center;
  }
}