/* MyUI · Embla hero · ricmax + itch front pages */

.myui-hero-embla {
  position: relative;
  width: 100%;
  margin: 0 0 1.25rem;
  background: var(--myui-surface);
  border-bottom: 1px solid var(--myui-line);
  overflow: hidden;
}

.myui-hero-embla__viewport {
  overflow: hidden;
}

.myui-hero-embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
}

.myui-hero-embla__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.myui-hero-embla__frame {
  position: relative;
  margin: 0;
  aspect-ratio: 21 / 9;
  min-height: min(52vh, 28rem);
  max-height: min(70vh, 36rem);
  background: #111;
}

.myui-hero-embla__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.myui-hero-embla__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1rem, 3vw, 2rem);
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.myui-hero-embla__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.myui-hero-embla__title a {
  color: inherit;
  text-decoration: none;
}

.myui-hero-embla__title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.myui-hero-embla__text {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  line-height: 1.45;
  opacity: 0.92;
}

.myui-hero-embla__controls {
  position: absolute;
  inset: auto 0 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0 0.75rem;
  pointer-events: none;
}

.myui-hero-embla__btn,
.myui-hero-embla__dots button {
  pointer-events: auto;
}

.myui-hero-embla__btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.myui-hero-embla__btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.65);
}

.myui-hero-embla__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.myui-hero-embla__dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.myui-hero-embla__dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.myui-hero-embla__dots button.is-selected {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .myui-hero-embla__frame {
    aspect-ratio: 4 / 3;
    min-height: 14rem;
  }

  .myui-hero-embla__text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
