/* -----------------------------------------
   RADIAL CARDS (WPBakery element)
   Based on Osmo's radial cards slider.
----------------------------------------- */

.ccg-radial-cards {
  --rc-card-bg: #fff;
  --rc-card-color: #000;
  --rc-btn-bg: rgba(255, 255, 255, 0.1);
  --rc-btn-color: #fff;
  --rc-btn-next-bg: #fff;
  --rc-btn-next-color: #000;
  --rc-dot: var(--light-fade);
  --rc-dot-active: #fff;
  /* Side-card depth shade */
  --rc-shade: linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.38) 55%, rgba(0, 0, 0, 0.22) 100%);
  width: 100%;
  margin-bottom: 1.5em;
  /* Side cards are cut off at the edges instead of causing sideways scrolling.
     For edge-to-edge, set the WPBakery row to "Full Width Content". */
  /* overflow: hidden; */
}

.ccg-radial-cards.is--light {
  --rc-btn-bg: rgba(0, 0, 0, 0.06);
  --rc-btn-color: #000;
  --rc-btn-next-bg: #000;
  --rc-btn-next-color: #fff;
  --rc-dot: rgba(0, 0, 0, 0.2);
  --rc-dot-active: #000;
}

/* The slider measures card sizes, so padding must be included in them */
.ccg-radial-cards,
.ccg-radial-cards *,
.ccg-radial-cards *::before,
.ccg-radial-cards *::after {
  box-sizing: border-box;
}

.ccg-radial-cards .radial-gsap-slider {
  --slider-rotate: 18deg;
  --slider-radius: 360%;
  /* Space between neighbouring cards (sets the angle; overrides --slider-rotate) */
  --slider-gap: 1.75rem;
  gap: 3rem;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  left: 0%;
  padding-top: 0;
  display: flex;
  position: relative;
}

.radial-gsap-slider__item[data-radial-slider-item-status="active"] {
    z-index: 99999999;
}

.ccg-radial-cards .radial-gsap-slider__list:before {
    z-index: 1;
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    background: linear-gradient(0deg, black, transparent);
    bottom: -210px;
    left: 0;
    opacity: 0.7;
    user-select:none;
    pointer-events:none;
}

.radial-gsap-slider__item[data-radial-slider-item-status="active"] a.radial-card {
    top: -20px;
    transform: scale(1.05);
    opacity: 1;
}

.radial-gsap-slider__item a.radial-card {
    top: 20px;
    opacity: 0.6;
}



.ccg-radial-cards .radial-gsap-slider__collection {
  width: 100%;
  max-width: 100%;
  /* Horizontal drags turn the wheel, vertical swipes scroll the page */
  touch-action: pan-y;
  position: relative;
}

.ccg-radial-cards .radial-gsap-slider__list {
  -webkit-user-select: none;
  user-select: none;
  will-change: transform;
  touch-action: pan-y;
  backface-visibility: hidden;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  display: flex;
  position: relative;
}

.ccg-radial-cards [data-radial-slider-list] > :first-child {
  position: relative;
}

.ccg-radial-cards .radial-gsap-slider__item {
  transform-origin: 50% var(--slider-radius);
  flex: none;
  position: absolute;
  width: 23.5em;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* top: 10px; */
}

.ccg-radial-cards [data-radial-slider-drag-status="grab"] .radial-gsap-slider__item {
  cursor: grab;
}

.ccg-radial-cards [data-radial-slider-drag-status="grabbing"] .radial-gsap-slider__item {
  cursor: grabbing;
}

@media screen and (max-width: 767px) {
  /* Side cards stick out past the screen; without clipping, the page becomes wider
     than the phone and can only pan right, so the slider looks off-centre.
     "clip" (unlike "hidden") doesn't cut off the cards vertically. */
  .ccg-radial-cards {
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: visible;
  }

  .ccg-radial-cards .radial-gsap-slider {
    --slider-rotate: 12deg;
    --slider-radius: 465%;
    --slider-gap: 1.4rem;
    gap: 2.5rem;
  }
}

/* Card */
.ccg-radial-cards .radial-card {
  width: 100%;
  color: var(--rc-card-color);
  text-align: center;
  text-decoration: none;
  background-color: var(--rc-card-bg);
  border-radius: 1.375em;
  flex-flow: column;
  align-items: flex-start;
  padding: 0.625em 0.625em 0;
  display: flex;
  position: relative;
  -webkit-user-drag: none;
  transition: all 0.2s ease;
}

/* Depth shade on the side cards. Its opacity follows the wheel (set by the
   script), so it eases in and out with the drag. */
.ccg-radial-cards .radial-card__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: var(--rc-shade);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.ccg-radial-cards a.radial-card:hover,
.ccg-radial-cards a.radial-card:focus {
  color: var(--rc-card-color);
  text-decoration: none;
}

/* No title: keep even padding all round */
.ccg-radial-cards .radial-card:not(:has(.radial-card__info)) {
  padding-bottom: 0.625em;
}

.ccg-radial-cards .radial-card__media {
  aspect-ratio: 1.1 / 1;
  border-radius: 0.75em;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.06);
}

.ccg-radial-cards .radial-card__img {
  object-fit: cover;
  border-radius: inherit;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.ccg-radial-cards .radial-card__info {
  justify-content: center;
  align-items: center;
  width: 100%;
  /* height: 4.5em; */
  padding: 0.625em;
  display: flex;
}

.ccg-radial-cards .radial-card__h {
  color: var(--rc-card-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 0;
  font-size: 1.125em;
  font-weight: 600;
  line-height: 1;
}

/* Cards with a description/button.
   Every card must be the same height for the wheel to line up, so the text
   area is a fixed size: one-line title, four-line description, button. */
.ccg-radial-cards.has--details .radial-card__info {
  flex-direction: column;
  /* justify-content: flex-start; */
  gap: 0.9rem;
  /* title + description + button + gaps + padding, so cards missing a part stay the same height */
  /* height: 12em; */
  overflow: hidden;
  padding: 1.135em 0.5em 1em;
}

.ccg-radial-cards .radial-card__info .radial-card__h {
  max-width: 100%;
  /* overflow: hidden; */
  /* white-space: nowrap; */
  /* text-overflow: ellipsis; */
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: -0.5rem;
}

.ccg-radial-cards .radial-card__p {
  color: var(--rc-card-color);
  opacity: 0.9;
  margin: 0;
  padding: 0 0.5rem;
  font-size: 0.85em;
  line-height: 1.4;
  height: auto;
  display: -webkit-box;
  text-overflow: ellipsis;
}

.ccg-radial-cards .radial-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: 3.5em;
  padding: var(--button-padding);
  border-radius: 50em;
  border: var(--button-border);
  color: var(--rc-card-color);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: 100%;
  justify-content: center;
  background: transparent;
  border-color: var(--light-fade);
}

.ccg-radial-cards .radial-card__btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

span.radial-card__btn path {
    stroke-width: 2px;
}

/* Narrower cards on phones: one more line of description, smaller title */
@media screen and (max-width: 767px) {
  .ccg-radial-cards .radial-card__p {
  }

  .ccg-radial-cards.has--details .radial-card__info {
  }

  .ccg-radial-cards .radial-card__info .radial-card__h {
    font-size: 1.7rem;
    line-height: 1.15;
  }
}

/* Controls */
.ccg-radial-cards .radial-gsap-slider__controls {
  gap: 1em;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: flex;
  position: relative;
}

.ccg-radial-cards .radial-gsap-slider__control-btn {
  z-index: 1;
  color: var(--rc-btn-color);
  letter-spacing: 0;
  cursor: pointer;
  background-color: var(--rc-btn-bg);
  border: none;
  border-radius: 60px;
  height: auto;
  margin: 0;
  padding: 0.75rem 1.4em;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 0.9;
  position: relative;
  transition: opacity 0.2s ease;
}

body .ccg-radial-cards .radial-gsap-slider__control-btn:hover {
  opacity: 1;
  background-color: #fff;
  border-color: #fff;
  color: #000;
}

.ccg-radial-cards .radial-gsap-slider__control-btn.is--next {
  color: #fff;
  background-color: transparent;
  border: 1.5px solid var(--light-fade);
}

.ccg-radial-cards .radial-gsap-slider__dots {
  justify-content: center;
  align-items: center;
  display: flex;
}

/* Dot buttons have a large transparent border so they're easy to tap */
.ccg-radial-cards .radial-gsap-slider__control-dot {
  z-index: 1;
  color: var(--rc-dot);
  cursor: pointer;
  background-color: currentColor;
  background-clip: content-box;
  border: 0.25em solid transparent;
  border-radius: 50em;
  width: 1em;
  height: 1em;
  margin: 0;
  padding: 0;
  font-size: 1em;
  transition: color 0.15s ease;
  position: relative;
  overflow: hidden;
  outline: none;
  box-shadow: none;
}

.ccg-radial-cards .radial-gsap-slider__control-dot:focus-visible {
  outline: 1px solid var(--rc-dot-active);
}

.ccg-radial-cards .radial-gsap-slider__control-dot[data-radial-slider-control-status="active"] {
  color: var(--nectar-extra-color-2);
}

/* Phones: narrower cards so a slice of the card either side shows (hints at swiping),
   with a slightly taller image so the narrower card doesn't look squat */
@media screen and (max-width: 690px) {
  .ccg-radial-cards .radial-gsap-slider__item {
    width: 77%;
    max-width: 30rem;
  }

  .ccg-radial-cards .radial-card__media {
    aspect-ratio: 1 / 1;
  }
}
