@import url("/vendor/swiper/11.2.10/swiper-bundle.min.css");

.ms-perspective-carousel {
  --pc-accent: #7dd3fc;
  --pc-ink: #f4f4f5;
  --pc-btn-bg: #ffffff;
  --pc-btn-fg: #111111;
  --pc-card-radius: 18px;
  --pc-slide-w: 88vw;
  --pc-slide-max: 340px;
  --pc-slide-aspect: 0.72;
  --pc-stage-h: min(68dvh, 560px);

  position: relative;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  color: var(--pc-ink);
  font-family: inherit;
  overflow: visible;
}

.ms-perspective-carousel *,
.ms-perspective-carousel *::before,
.ms-perspective-carousel *::after {
  box-sizing: border-box;
}

.ms-perspective-carousel .pc-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: var(--pc-stage-h);
  padding: 0.5rem 0 1rem;
}

.ms-perspective-carousel .pc-shell {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: min-content minmax(0, 1fr) min-content;
  align-items: center;
  column-gap: 0.35rem;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding: 1.25rem 0.35rem 2rem;
}

.ms-perspective-carousel .pc-swiper {
  width: 100%;
  min-width: 0;
  height: var(--pc-stage-h);
  overflow: visible !important;
  padding: 1.25rem 0 2rem !important;
  position: relative;
  z-index: 1;
}

.ms-perspective-carousel .pc-swiper.swiper {
  overflow: visible !important;
}

.ms-perspective-carousel .pc-nav {
  position: relative;
  z-index: 50;
  justify-self: center;
  flex-shrink: 0;
  width: var(--pc-arrow-size, 2.6rem);
  height: var(--pc-arrow-size, 2.6rem);
  border: 0;
  border-radius: var(--pc-card-radius, 999px);
  background: var(--pc-btn-bg);
  color: var(--pc-btn-fg);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.ms-perspective-carousel .pc-nav:not([hidden]) {
  display: grid !important;
  visibility: visible !important;
}

.ms-perspective-carousel[data-loop="yes"] .pc-nav.swiper-button-disabled,
.ms-perspective-carousel[data-loop="yes"] .pc-nav.swiper-button-lock {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.ms-perspective-carousel[data-loop="no"] .pc-nav.swiper-button-disabled,
.ms-perspective-carousel[data-loop="no"] .pc-nav.swiper-button-lock {
  opacity: 0.42 !important;
  pointer-events: none !important;
  cursor: default;
}

.ms-perspective-carousel .pc-nav:hover,
.ms-perspective-carousel .pc-nav:focus-visible {
  filter: brightness(0.92);
}

.ms-perspective-carousel .pc-nav svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.ms-perspective-carousel .pc-nav[hidden] {
  display: none !important;
}

.ms-perspective-carousel .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(var(--pc-slide-w), var(--pc-slide-max)) !important;
  border-radius: var(--pc-card-radius);
}

.ms-perspective-carousel .pc-card {
  width: min(var(--pc-slide-w), var(--pc-slide-max));
  aspect-ratio: var(--pc-slide-aspect);
  border-radius: var(--pc-card-radius);
  overflow: hidden;
  background: #18181b;
  position: relative;
  user-select: none;
  touch-action: pan-y;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.32)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
  isolation: isolate;
}

.ms-perspective-carousel[data-orientation="vertical"] .pc-card {
  touch-action: pan-x;
}

.ms-perspective-carousel .pc-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.ms-perspective-carousel .pc-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78) 40%);
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.ms-perspective-carousel[data-mode="content"] .pc-card__body {
  display: flex;
}

.ms-perspective-carousel .pc-card__title {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--pc-ink);
  margin: 0;
}

.ms-perspective-carousel .pc-card__text {
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--pc-ink) 82%, transparent);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ms-perspective-carousel .pc-card__cta {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--pc-btn-bg);
  color: var(--pc-btn-fg);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}

.ms-perspective-carousel .pc-card__cta:hover,
.ms-perspective-carousel .pc-card__cta:focus-visible {
  text-decoration: none;
  filter: brightness(1.05);
}

.ms-perspective-carousel .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.ms-perspective-carousel .swiper-pagination-bullet-active {
  background: var(--pc-btn-bg);
}

/* Navigation standard (t52u): arrow style, arrow size, dot style, dots
   alignment and "Next to the dots". Defaults (solid, round, center, sides)
   keep the original look. */
.ms-perspective-carousel .pc-nav svg {
  width: var(--pc-arrow-icon, 1.1rem);
  height: var(--pc-arrow-icon, 1.1rem);
}

.ms-perspective-carousel[data-arrow-style="glass"] .pc-nav {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--pc-btn-bg); /* t55u: icon in the nav color, was text color */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ms-perspective-carousel[data-arrow-style="outline"] .pc-nav {
  background: transparent;
  border: 1.5px solid var(--pc-btn-bg);
  color: var(--pc-btn-bg);
}

.ms-perspective-carousel .pc-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0 1rem;
  position: relative;
  z-index: 50;
}

.ms-perspective-carousel .pc-bar[hidden] {
  display: none !important;
}

.ms-perspective-carousel[data-arrows="bottom"] .pc-shell {
  grid-template-columns: minmax(0, 1fr);
}

.ms-perspective-carousel[data-arrows="bottom"] .pc-swiper {
  padding-bottom: 1.25rem !important;
}

.ms-perspective-carousel .pc-bar .swiper-pagination {
  position: static;
  width: auto;
  transform: none;
  display: flex;
  align-items: center;
}

.ms-perspective-carousel .pc-bar .swiper-pagination[hidden] {
  display: none;
}

.ms-perspective-carousel[data-dots-align="left"] .pc-bar {
  justify-content: flex-start;
}

.ms-perspective-carousel[data-dots-align="right"] .pc-bar {
  justify-content: flex-end;
}

.ms-perspective-carousel[data-dots-align="left"] .pc-swiper > .swiper-pagination-horizontal {
  text-align: left;
  padding: 0 1rem;
}

.ms-perspective-carousel[data-dots-align="right"] .pc-swiper > .swiper-pagination-horizontal {
  text-align: right;
  padding: 0 1rem;
}

.ms-perspective-carousel .swiper-pagination-bullet {
  transition: width 0.25s ease, background 0.25s ease;
}

.ms-perspective-carousel[data-dots-style="pill"] .swiper-pagination-bullet {
  border-radius: 999px;
}

.ms-perspective-carousel[data-dots-style="pill"] .swiper-pagination-bullet-active {
  width: 24px;
}

.ms-perspective-carousel[data-dots-style="line"] .swiper-pagination-bullet {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  vertical-align: middle;
}

.ms-perspective-carousel[data-dots-style="line"] .swiper-pagination-bullet-active {
  width: 34px;
}

.ms-perspective-carousel .swiper-slide-shadow-left,
.ms-perspective-carousel .swiper-slide-shadow-right,
.ms-perspective-carousel .swiper-slide-shadow-top,
.ms-perspective-carousel .swiper-slide-shadow-bottom {
  border-radius: var(--pc-card-radius) !important;
}

@media (min-width: 768px) {
  .ms-perspective-carousel {
    --pc-slide-w: 42vw;
    --pc-slide-max: 380px;
  }
  .ms-perspective-carousel .pc-shell {
    column-gap: 0.65rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-perspective-carousel .pc-card,
  .ms-perspective-carousel .swiper-slide {
    transition: none !important;
  }
}

/* Editor preview iframe (preview.html ?chrome=1): clip horizontal bleed from coverflow. */
body.chrome .ms-perspective-carousel {
  overflow-x: clip;
  max-width: 100%;
}

body.chrome .ms-perspective-carousel .pc-stage,
body.chrome .ms-perspective-carousel .pc-shell {
  overflow-x: clip;
  max-width: 100%;
}

/* Content background (t54u): replaces the built in shade when switched on */
.ms-perspective-carousel[data-content-bg] .pc-card__body {
  box-sizing: border-box;
  padding: var(--mm-cbg-pad, 18px);
  background: var(--mm-cbg, rgba(0, 0, 0, 0.6));
  -webkit-backdrop-filter: var(--mm-cbg-filter, none);
  backdrop-filter: var(--mm-cbg-filter, none);
}
.ms-perspective-carousel[data-content-bg="hug"] .pc-card__body {
  left: 12px;
  right: auto;
  bottom: 12px;
  max-width: calc(100% - 24px);
  border-radius: var(--mm-cbg-radius, 14px);
}
