/**
 * Styles for the [nnyb_circles] reward-items carousel shortcode.
 */

/* General Carousel Styling */

.nnyb-circles-swiper {
  max-height: none;
  height: auto;
  position: relative;
  max-width: 1584px;
  margin: 0 auto;
  overflow: hidden;
  background-color: #e9edf0;
  padding-bottom: 0;
}

.nnyb-circles-swiper::before,
.nnyb-circles-swiper::after {
  width: 0 !important;
}

.nnyb-circles-swiper .swiper-wrapper {
  display: flex !important;
  height: 700px !important;
  padding-left: 44px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.nnyb-circles-swiper .swiper-slide:last-of-type .slide-contents {
  padding-right: 0;
}

.nnyb-circles-swiper .swiper-slide {
  width: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

/* Slide Vertical Position */
.nnyb-circles-swiper .slide-contents {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nnyb-circles-swiper .swiper-slide[data-align="top"] {
  justify-content: flex-start !important;
}

.nnyb-circles-swiper .swiper-slide[data-align="middle"] {
  justify-content: center !important;
}

.nnyb-circles-swiper .swiper-slide[data-align="bottom"] {
  justify-content: flex-end !important;
}

/* Circle Styling */
.nnyb-circles-swiper .circle {
  border-radius: 50%;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nnyb-circles-swiper .circle .border-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(90deg, #D69A45 0%, #FFEED0 20%, #FAE5C1 40%, #DEAC64 75%, #F1D1A0 100%);
  z-index: 1;
}

.nnyb-circles-swiper .circle img {
  position: relative;
  z-index: 1;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

/* Text Styling */
.nnyb-circles-swiper p {
  color: var(--e-global-color-primary);
  font-family: "jost", arial, san-serif;
  margin-top: 6px;
  margin-bottom: 0;
  text-align: center;
  max-width: 200px;
}
.nnyb-circles-swiper .swiper-slide:nth-child(4n-2) p {
  max-width: 230px;
}
.nnyb-circles-swiper .text {
  padding-top: 9px;
  font-size: 1.5rem;
  font-weight: 700;
}
.nnyb-circles-swiper .subtext {
  font-size: 1rem;
  line-height: 1.5em;
}

/* Pagination Dots */
.nnyb-circles-swiper .swiper-pagination {
  position: static;
  display: flex !important;
  justify-content: center;
  gap: 15px;
  padding: 0;
  margin: 40px 0 0;
}

.nnyb-circles-swiper .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  margin: 0 !important;
  border-radius: 50%;
  background-color: #fff;
  opacity: 1;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nnyb-circles-swiper .swiper-pagination-bullet-active {
  background-color: #1f355e;
}

/* Desktop: 1440px and above */
@media (min-width: 1440px) {

  /* Gradient overlay */
  .nnyb-circles-swiper::before,
  .nnyb-circles-swiper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: none;
    z-index: 2;
  }

  .nnyb-circles-swiper::before {
    left: 0;
    background: linear-gradient(to right, #e9edf0, rgba(233, 237, 240, 0));
  }

  .nnyb-circles-swiper::after {
    right: 0;
    background: linear-gradient(to left, #e9edf0, rgba(233, 237, 240, 0));
  }

  .nnyb-circles-swiper {
    max-width: 1584px;
  }

  .nnyb-circles-swiper .swiper-slide {
    margin-right: -56px !important;
  }

  .nnyb-circles-swiper .swiper-slide:nth-child(4n-3) .circle {
    width: 414px;
    height: 414px;
  }

  .nnyb-circles-swiper .swiper-slide:nth-child(4n-2) .circle {
    width: 510px;
    height: 510px;
  }

  .nnyb-circles-swiper .swiper-slide:nth-child(4n-1) .circle {
    width: 408px;
    height: 408px;
  }

  .nnyb-circles-swiper .swiper-slide:nth-child(4n) .circle {
    width: 332px;
    height: 332px;
  }
}

/* Between 1440px and 1584px */
@media (max-width: 1584px) and (min-width: 1440px) {
  .nnyb-circles-swiper .swiper-wrapper {
    display: flex !important;
    margin-bottom: 40px;
  }
}

/* Scaling Between 1440px and 1024px */
@media (max-width: 1440px) and (min-width: 1024px) {
  .nnyb-circles-swiper .swiper-wrapper {
    display: flex !important;
    height: calc(40vw + 112px) !important;
    margin-bottom: 40px;
    margin-left: calc(-3vw - 40px);
  }

  .nnyb-circles-swiper {
    width: 100vw;
    max-width: 100vw;
  }

  .nnyb-circles-swiper .swiper-slide:nth-child(4n-3) .circle {
    width: calc(414 * (100vw / 1440));
    height: calc(414 * (100vw / 1440));
  }

  .nnyb-circles-swiper .swiper-slide:nth-child(4n-2) .circle {
    width: calc(510 * (100vw / 1440));
    height: calc(510 * (100vw / 1440));
  }

  .nnyb-circles-swiper .swiper-slide:nth-child(4n-1) .circle {
    width: calc(408 * (100vw / 1440));
    height: calc(408 * (100vw / 1440));
  }

  .nnyb-circles-swiper .swiper-slide:nth-child(4n) .circle {
    width: calc(332 * (100vw / 1440));
    height: calc(332 * (100vw / 1440));
  }

  .nnyb-circles-swiper .swiper-slide {
    margin-right: calc(-56 * (100vw / 1440)) !important;
  }
}

/* Tablet: 768px to 1024px */
@media (max-width: 1024px) and (min-width: 768px) {
  .nnyb-circles-swiper {
    max-width: 100%;
  }

  .nnyb-circles-swiper .swiper-wrapper {
    display: flex !important;
    height: calc(50vw + 220px) !important;
    padding-left: 0;
    margin-bottom: 40px;
  }

  .nnyb-circles-swiper .circle {
    width: 52vw;
    aspect-ratio: 1 / 1;
    border-width: 6px;
  }
}

/* Mobile: Below 768px */
@media (max-width: 768px) {
  .nnyb-circles-swiper p {
    margin-top: 10px;
  }
  .nnyb-circles-swiper .subtext {
    margin-top: 6px;
    margin-bottom: 10px;
  }
  .nnyb-circles-swiper {
    padding-bottom: 20px;
  }
  .nnyb-circles-swiper .swiper-wrapper {
    display: flex !important;
    height: calc(100vw + 100px) !important;
    padding-left: 0;
    margin-bottom: 40px;
  }

  .nnyb-circles-swiper .circle {
    width: 90vw;
    aspect-ratio: 1 / 1;
    border-width: 4px;
  }
}
