.section-video_carousel {
  position: relative;
}

.sw--video-carousel {
  position: relative;
  padding-inline: 3rem;
  overflow: clip;
}

@media (max-width: 991.98px) {
  .sw--video-carousel {
    padding-inline: 0;
  }
}

.sw--video-carousel .swiper {
  overflow: visible;
}

.video-carousel__item {
  display: flex;
  justify-content: center;
}

.video-carousel__thumb {
  position: relative;
  display: inline-flex;
  width: 100%;
  max-width: 28rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid #eff0f6;
  box-shadow: 0px 4px 16px 0px rgba(34, 34, 34, 0.08);
  background-color: #ffffff;
  cursor: pointer;
  padding: 0;
}

.video-carousel__thumb-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 14rem;
}

.video-carousel__thumb button {
  border: none;
}

.video-carousel__play-icon {
  --size: 3.25rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background-color: rgba(5, 46, 68, 0.9);
}

.video-carousel__play-icon::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent #ffffff;
}

.sw-video-carousel__nav {
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  pointer-events: none;
}

.sw-video-carousel__nav .sw-prev,
.sw-video-carousel__nav .sw-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid #cbd5f1;
  background-color: #ffffff;
  color: #052e44;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  z-index: 1;
}

.sw-video-carousel__nav .sw-prev {
  left: 0;
}

.sw-video-carousel__nav .sw-next {
  right: 0;
  transform: translateY(-50%) rotate(270deg);
}

@media (max-width: 767.98px) {
  .sw-video-carousel__nav .sw-prev,
  .sw-video-carousel__nav .sw-next {
    /* display: none; */
  }
}

/* Modal styles */
.video-carousel-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.video-carousel-modal.is-open {
  display: flex;
}

.video-carousel-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
}

.video-carousel-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: calc(100% - 2.5rem);
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0px 20px 40px rgba(15, 23, 42, 0.45);
}

.video-carousel-modal__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border-radius: 999px;
  border: none;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: #111827;
  cursor: pointer;
}

.video-carousel-modal__content {
  margin-top: 1.5rem;
}

.video-carousel-modal__content iframe {
  width: 100%;
  min-height: min(60vh, 480px);
  border-radius: 1rem;
}
