.wp-block-hcp-carousel {
  width: 100%;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wp-block-hcp-carousel--text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wp-block-hcp-carousel--text h2 {
  text-transform: uppercase;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.wp-block-hcp-carousel--text p {
  font-size: 1.5rem;
}

.wp-block-hcp-carousel--slides {
  max-width: 1280px;
  width: 100%;
}

.carousel-slide {
  width: 20%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.carousel-cta {
  text-decoration: none;
}

.carousel-title {
  font-size: 22px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.carousel-image {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.flickity-prev-next-button {
  width: 44px;
  height: 44px;
}

.flickity-page-dots {
  bottom: -40px;
}

.flickity-page-dots .dot {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: #333;
  opacity: 0.25;
}

.flickity-page-dots .dot.is-selected {
  opacity: 1;
}

@media only screen and (max-width: 768px) {
  .carousel-slide {
    width: 33.33%;
    /* 3 slides on medium screens */
  }

  .carousel-cta {
    font-size: 12px;
    padding: 8px 16px;
  }
}

@media only screen and (max-width: 480px) {
  .carousel-slide {
    width: 100%;
    /* 1 slide on small screens */
  }

  .carousel-cta {
    font-size: 16px;
    padding: 10px 24px;
  }
}

/* wp-block-hcp-carousel */
.carousel-cn .alignfull {
  padding: 0 50px;
}

.carousel-cn .hcp-carousel.alignfull {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .carousel-cn .hcp-carousel.alignfull {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Previous arrow button */
.carousel-cn .flickity-prev-next-button.previous {
  right: -15px !important;
  background-color: transparent !important;
}

@media (min-width: 768px) {
 .carousel-cn .flickity-prev-next-button.previous {
    right: -5px !important;
  }
}

/* Next arrow button */
.carousel-cn .flickity-prev-next-button.next {
  right: -15px !important;
}
@media (min-width: 768px) {
.carousel-cn .flickity-prev-next-button.next {
    right: -5px !important;
  }
}

/* Both arrows buttons */
.carousel-cn button.flickity-button {
  background-color: transparent !important;
}

/* Image and title together (according to original website)*/
.carousel-cn a:hover
  img,
.carousel-cn a:hover
  h2 {
  border-color: #f6c9dd;
  border-width: 5px;
  border-style: solid;
  border-radius: 50%;
  transition-behavior: normal;
  transition-delay: 0s;
  transition-duration: 0.3s;
  transition-property: all;
  transition-timing-function: ease;
  white-space-collapse: collapse;
}

/* Title below the image */
.carousel-cn a
  h2:hover {
  border-color: #f6c9dd;
  border-width: 3px;
  border-style: solid;
  border-radius: 8px;
  padding: 16px 16px;
  transition-behavior: normal;
  transition-delay: 0s;
  transition-duration: 0.3s;
  transition-property: all;
  transition-timing-function: ease;
  white-space-collapse: collapse;
  margin-top: 3px;
}

/* ! if hover  doesn't work try this implementation with after */
.carousel-cn a
  img::after {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  bottom: -10%;
  right: -10%;
  z-index: -1;
  border-radius: 50%;
  transition: all 0.3s;
}

.carousel-cn a
  img:hover::after {
  top: -3%;
  left: -2%;
  bottom: -2%;
  right: -2%;
  background-color: #f6c9dd;
}


.carousel-cn a:hover
  img {
  outline: 5px solid #f6c9dd;
  border-radius: 50%;
  transition-behavior: normal;
  transition-delay: 0s;
  transition-duration: 0.3s;
  transition-property: all;
  transition-timing-function: ease;
  white-space-collapse: collapse;
}
/* Title below the image */
.carousel-cn a:hover
  h2,
.carousel-cn a
  h2:hover {
  border-color: #f6c9dd;
  border-width: 3px;
  border-style: solid;
  border-radius: 8px;
  transition-behavior: normal;
  transition-delay: 0s;
  transition-duration: 0.3s;
  transition-property: all;
  transition-timing-function: ease;
  white-space-collapse: collapse;
  padding: 8px 24px;
  margin-top: 0;
  margin-bottom: 0;
}