/* FMG rotator (owl-carousel markup) without the FMG Owl dependency.
   Family Office, Family Governance, Why Clexperus, and a few other pages
   ship the original rotator HTML. This sheet + rotator.js turn that stack
   of slides into a single-slide carousel with arrows and autoplay. */

.section_Rotator {
  position: relative;
  overflow: hidden;
}

.section_Rotator .c-customsection__container {
  position: relative;
}

.section_Rotator .c-slide-int,
.section_Rotator .c-slide-auto {
  display: none;
}

.owl-carousel.c-grid__collapse--Rotator,
.c-grid__collapse--Rotator.owl-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.c-rotator-size--fullwidth .owl-carousel.c-grid__collapse--Rotator,
.c-rotator-size--fullwidth .c-grid__collapse--Rotator.owl-carousel {
  height: 700px;
}

.c-rotator-size--small .owl-carousel.c-grid__collapse--Rotator,
.c-rotator-size--small .c-grid__collapse--Rotator.owl-carousel {
  height: 700px;
}

.c-rotator-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.c-rotator-item.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.c-rotator__image-wrapper,
.c-rotator__link {
  display: block;
  width: 100%;
  height: 100%;
}

.c-rotator__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 700px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Full-width slides: photo behind a centred text panel. */
.c-rotator-size--fullwidth .c-rotator-summary__box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 48px 56px;
  max-width: min(920px, calc(100% - 80px));
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.88);
}

.c-rotator-size--fullwidth .c-rb-textalign--Center {
  text-align: center;
}

.c-rotator-size--fullwidth .c-rotator--title,
.c-rotator-size--fullwidth .c-rotator--title p {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2em;
  font-weight: 400;
  line-height: 1.25;
  color: #1e2f4b;
}

.c-rotator-size--fullwidth .c-rotator--description,
.c-rotator-size--fullwidth .c-rotator--description p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #1e2f4b;
}

/* Why Clexperus: navy band, photo left, copy right. */
.c-rotator-size--small .c-customsection__container {
  max-width: 1170px;
  margin: 0 auto;
}

.c-rotator-orientation--right .c-rotator-item.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 48px;
  padding: 0 24px;
}

.c-rotator-orientation--right .c-rotator__image-wrapper {
  height: 700px;
}

.c-rotator-orientation--right .c-rotator__image {
  min-height: 700px;
}

.c-rotator-orientation--right .c-rotator-summary__box {
  position: static;
  padding: 0;
  max-width: 480px;
}

.c-rotator-orientation--right .c-rotator--title,
.c-rotator-orientation--right .c-rotator--title p {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2em;
  font-weight: 400;
  line-height: 1.3;
}

.c-rotator-orientation--right .c-rotator--description,
.c-rotator-orientation--right .c-rotator--description p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.cx-rotator-prev,
.cx-rotator-next {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 47, 75, 0.72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cx-rotator-prev { left: 16px; }
.cx-rotator-next { right: 16px; }

.cx-rotator-prev:hover,
.cx-rotator-next:hover {
  background: rgba(30, 47, 75, 0.92);
  transform: scale(1.05);
}

.c-rotator-size--small .cx-rotator-prev,
.c-rotator-size--small .cx-rotator-next {
  background: rgba(255, 255, 255, 0.18);
}

.c-rotator-size--small .cx-rotator-prev:hover,
.c-rotator-size--small .cx-rotator-next:hover {
  background: rgba(255, 255, 255, 0.32);
}

.cx-rotator-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.cx-rotator-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(30, 47, 75, 0.35);
  cursor: pointer;
  pointer-events: auto;
}

.cx-rotator-dot.is-active { background: #1e2f4b; }

.c-rotator-size--small .cx-rotator-dot { background: rgba(255, 255, 255, 0.4); }
.c-rotator-size--small .cx-rotator-dot.is-active { background: #fff; }

@media (max-width: 900px) {
  .c-rotator-size--fullwidth .owl-carousel.c-grid__collapse--Rotator,
  .c-rotator-size--fullwidth .c-grid__collapse--Rotator.owl-carousel,
  .c-rotator-size--small .owl-carousel.c-grid__collapse--Rotator,
  .c-rotator-size--small .c-grid__collapse--Rotator.owl-carousel {
    height: auto;
    min-height: 420px;
  }

  .c-rotator-item,
  .c-rotator-item.is-active {
    position: relative;
    inset: auto;
  }

  .c-rotator-item:not(.is-active) { display: none; }

  .c-rotator__image { min-height: 280px; height: 280px; }

  .c-rotator-size--fullwidth .c-rotator-summary__box {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-width: none;
    padding: 28px 24px 56px;
  }

  .c-rotator-orientation--right .c-rotator-item.is-active {
    display: block;
    padding: 0 16px 48px;
  }

  .c-rotator-orientation--right .c-rotator__image-wrapper,
  .c-rotator-orientation--right .c-rotator__image {
    height: 280px;
    min-height: 280px;
  }

  .c-rotator-orientation--right .c-rotator-summary__box {
    max-width: none;
    padding: 24px 8px 0;
  }

  .cx-rotator-prev,
  .cx-rotator-next {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-rotator-item { transition: none; }
}
