/* widget: mr-hero-slider */
.mr-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 104px;
  height: min(640px, calc(100svh - 104px)); min-height: 480px;
  display: grid; place-items: center; padding-inline: 20px;
  background: var(--mr-ink);
}
.mr-hero__slides { position: absolute; inset: 0; z-index: -2; }
.mr-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease-in-out; }
.mr-hero__slide.is-active { opacity: 1; }
.mr-hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.mr-hero__slide.is-active img { animation: mr-hero-zoom 9s ease-out forwards; }
@keyframes mr-hero-zoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.mr-hero__overlay { position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .3); pointer-events: none; }

.mr-hero__content { display: flex; flex-direction: column; align-items: center; gap: 32px; max-width: 900px; text-align: center; }
.mr-hero__title { color: var(--mr-white); text-shadow: 0 4px 6px rgba(0, 0, 0, .1), 0 10px 16px rgba(0, 0, 0, .15); }

.mr-hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--mr-white); cursor: pointer;
  transition: background-color .25s;
}
.mr-hero__arrow:hover { background: rgba(255, 255, 255, .15); }
.mr-hero__arrow svg { width: 12px; height: 20px; }
.mr-hero__prev { left: 10px; }
.mr-hero__next { right: 10px; }

.mr-hero__dots { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 12px; }
.mr-hero__dot {
  width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .5); transition: background-color .3s, transform .3s;
}
.mr-hero__dot[aria-current="true"] { background: var(--mr-white); transform: scale(1.1); }

@media (max-width: 1080px) { .mr-hero { margin-top: var(--mr-nav-h); } }
@media (max-width: 640px) {
  .mr-hero { min-height: 440px; height: 70svh; }
  .mr-hero__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mr-hero__slide.is-active img { animation: none; } }
