/* {
  box-sizing: border-box;
}
*/
:root {
  --mzaC-fg: #e7ecf2;
  --mzaC-accent: #9ef7d2;
  --mzaC-accent2: #82a0ff;
  --mzaC-glass: rgba(255, 255, 255, 0.06);
  --mzaC-glow: rgba(130, 160, 255, 0.75);
  --mzaC-slideW: max(880px, 60vw);
  --mzaC-peek: 0.15;
  --mzaPagH: 64px;
  --mzaCardH: clamp(360px, 62vh, 600px);
}
.mzaCarousel {
  position: relative;
  height: 90vh;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 18px;
  overflow: hidden;
  contain: layout paint;
  touch-action: none;
}
.mzaCarousel-viewport {
  position: relative;
  outline: none;
  overflow: hidden;
  height: 100%;
}
.mzaCarousel-track {
  position: relative;
  height: calc(100% - var(--mzaPagH) - max(env(safe-area-inset-bottom), 12px));
  transform-style: preserve-3d;
  perspective: 1200px;
  overflow: hidden;
}
.mzaCarousel-slide {
  position: absolute;
  top: calc(50% + 5px);
  left: 25vw;
  width: var(--mzaC-slideW);
  aspect-ratio: 16/9;
  /*height: min(var(--mzaCardH), calc(100% - 50px));*/
  transform-style: preserve-3d;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  /*will-change: transform, filter;*/
  border: 1px dotted Grey;
}
.mzaCard {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}
.mzaCard::before {
  content: "";
  position: absolute;
  inset: -2%;
  background-image: var(--mzaCard-bg);
  background-size: cover;
  background-position: center;
}
.mzaCard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.15) 25%,
    rgba(0, 0, 0, 0.15) 100%
  );
}
.mzaCard-head {
  position: absolute;
  inset: 20px auto auto 20px;
  z-index: 2;
}
.mzaCard-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: clamp(22px, 3.1vw, 38px);
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
  line-height: 110%;
  cursor: text;
}
.mzaCard-text {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: absolute;
  inset: auto 20px 0px 20px;
  z-index: 2;
  max-width: 60ch;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 5px;
  text-wrap: balance;
  cursor: text;
  color: #ddd;
  overflow: hidden;
}
.mzaCard-actions {
  position: absolute;
  inset: auto auto 18px 18px;
  z-index: 2;
}

.mzaCarousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.mzaCarousel-prev,
.mzaCarousel-next {
  pointer-events: auto;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  /*backdrop-filter: blur(6px);*/
  color: var(--mzaC-fg);
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mzaCarousel-prev {
  margin-left: 6px;
}
.mzaCarousel-next {
  margin-right: 6px;
}
.mzaCarousel-prev:hover,
.mzaCarousel-next:hover {
  background: rgba(255, 255, 255, 0.14);
}
.mzaCarousel-prev:active,
.mzaCarousel-next:active {
  transform: scale(0.98);
}

.mzaCarousel-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(27px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}
.mzaCarousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.mzaCarousel-dot[aria-selected="true"] {
  background: linear-gradient(180deg, var(--mzaC-accent2), var(--mzaC-accent));
  transform: scale(1.1);
}

@media (max-width: 1000px) {
  :root {
    --mzaC-slideW: 100vw;
  }
  /*.mzaCard-head {
    inset: 16px auto auto 16px;
  }
  .mzaCard-title {
    font-size: clamp(20px, 5.4vw, 30px);
  }
  .mzaCard-kicker {
    font-size: clamp(12px, 3.6vw, 13px);
  }
  .mzaCard-text {
    inset: auto 16px 62px 16px;
  }
  */

  .mzaCarousel {
    position: relative;
    height: 70vh;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 18px;
    overflow: hidden;
    contain: layout paint;
    touch-action: none;
  }

  .mzaCarousel-viewport {
    position: relative;
    outline: none;
    overflow: hidden;
    height: 70vh;
  }

}
@media (max-width: 768px) {
  :root {
    --mzaC-slideW: 150vw; /*min(94vw, 560px);*/
  }
  .mzaCard-text,
  .mzaCard-title,
  .mzaCard-kicker {
    max-width: 45%;
  }
  .mzaCard-text::after {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    background-image: linear-gradient(
      0deg,
      rgba(0, 0, 0, 1) 2%,
      rgba(0, 0, 0, 0) 25%
    );
    content: "";
    z-index: 1;
  }

  .mzaCarousel {
    position: relative;
    height: 50vh;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 18px;
    overflow: hidden;
    contain: layout paint;
    touch-action: none;
  }

  .mzaCarousel-viewport {
    position: relative;
    outline: none;
    overflow: hidden;
    height: 50vh;
  }
  .mzaCarousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }
}
@media (max-width: 560px) {
  :root {
    --mzaC-slideW: 150vw; /*min(94vw, 560px);*/
    /*--mzaC-slideW: min(96vw, 520px);
  }*/
}
@media (max-height: 400px) {
  .mzaCard-text {
    display: none;
  }
}
@media (max-height: 280px) {
  .mzaCard-kicker {
    display: none;
  }
}
@media (max-height: 240px) {
  .mzaBtn {
    display: none;
  }
}
