body.elementor-editor-active .splide {
  visibility: visible !important;
}

/* Modal */
/* Modal base styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  /* Tailwind's gap-5 */
  padding-top: 5rem;
  /* Tailwind's pt-20 */
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;

  & .splide__slide {
    display: flex;
    justify-content: center;
  }
}

/* When modal is active */
.modal {
  z-index: -1;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  z-index: 10000;
}

/* Splide container sizing */
.splide-container {
  width: 80%;
  max-width: 80%;
}

/* Navigation Container */
.modal-navigation {
  position: absolute;
  bottom: 1.25rem;
  /* Tailwind's bottom-5 */
  display: flex;
  height: 3.5rem;
  /* Tailwind's h-14 */
  overflow: hidden;
  border: 1px solid #334155;
  /* Tailwind's border-slate-700 */
  border-radius: 0.75rem;

  /* Tailwind's rounded-xl */
  & button {
    border: none !important;
  }
}

/* Navigation Buttons Shared */
.nav-button {
  display: flex;
  width: 7rem;
  /* Tailwind's w-28 */
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  /* Tailwind's bg-slate-900 */
  color: white;
  transition: background-color 0.3s, color 0.3s;
}

.nav-button:hover {
  background-color: white;
  color: black;
}

/* Close Button */
.close-modal {
  display: flex;
  width: 6rem;
  /* Tailwind's w-24 */
  align-items: center;
  justify-content: center;
  background-color: black;
  padding-bottom: 0.25rem;
  font-size: 1.875rem;
  /* Tailwind's text-3xl */
  line-height: 1;
  color: white;
  text-align: center;
  transition: background-color 0.3s ease;
}

.close-modal:hover {
  background-color: #ef4444;
  /* Tailwind's hover:bg-red-500 */
}

/* Icon size (SVG) */
.icon {
  width: 1.5rem;
  /* Tailwind's size-6 */
  height: 1.5rem;
}


/* Slide Container */
.project-slide {
  height: 50vh;
  overflow: hidden;
  border-radius: 0.75rem;
  /* Tailwind's rounded-xl */
  background-color: white;
  position: relative;
}


/* Modal Trigger Container */
.modal-trigger {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

/* Slide Image */
.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Icon Container (Hover-in Scale Effect) */
.slide-icon {
  position: relative;
  width: 4rem;
  /* Tailwind's size-16 */
  height: 4rem;
  transform: scale(0);
  border-radius: 9999px;
  border: 1px solid white;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease;
  will-change: transform;
}

/* SVG inside Icon */
.icon-svg {
  width: 100%;
  height: 100%;
}

/* Show icon on hover */
.modal-trigger:hover .slide-icon {
  transform: scale(1);
  background-color: white;
}


/* Color Boxes */
.ColorOptionsSlider {
  display: none;
}

@media (min-width: 1030px) {
  .ColorOptionsSlider {
    display: block;
  }
}

#color-options-slider-track {
  align-items: stretch;

  &::before {
    background: linear-gradient(90deg, #ffffff 20%, #ffffff9c 40%, #ffffff00 100%);
    position: absolute;
    height: 100%;
    width: 3%;
    content: "";
    z-index: 10;
    top: 0;
  }

  &::after {
    background: linear-gradient(-90deg, #ffffff 20%, #ffffff9c 40%, #ffffff00 100%);
    position: absolute;
    height: 100%;
    width: 3%;
    content: "";
    z-index: 10;
    top: 0;
    right: 0;
  }
}



.ColorOptionsSlider__mob .splide__slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Hide it on anything greater than a tablet */
@media (min-width: 1030px) {
  .ColorOptionsSlider__mob {
    display: none;
  }
}

.OptionBox {
  display: flex;
  cursor: pointer;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  position: relative;



  &::before {
    content: " ";
    position: absolute;
    display: block;
    transform: rotate(180deg);
    background-repeat: no-repeat;
    background-size: contain;
    bottom: 0;
    right: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='9' height='9' viewBox='0 0 9 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 0L0 9V0H9Z' fill='white'/%3E%3C/svg%3E%0A");
    height: 40px;
    width: 40px;
    z-index: 5;
  }

  & img {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    will-change: transform;
  }

  & h3 {
    height: 80px;
    font-weight: bold;
    color: white;
    position: absolute;
    width: 100%;
    /* color: #222; */
    font-size: 26px;
    bottom: 0;
    margin: 0;
    display: flex;
    padding: 11px 15px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    background-image: linear-gradient(#ffffff29 4%, #00000059 60%, #000000b3);
    height: 40%;
    -webkit-mask: linear-gradient(#0000, #000, #000);
    mask: linear-gradient(#0000, #000, #000);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    align-items: flex-end;
    justify-content: center;
  }

}

/* On Tablets */

@media (max-width: 1030px) {
  .OptionBox h3 {
    font-size: 35px;
    height: 48%;
    padding: 20px 5px;
    padding-bottom: 30px;
    border: none;
    transform: translateY(2%);
  }

  .OptionBox {
    &::before {
      bottom: -2px;
      right: -1px;
    }
  }

  .OptionBox {
    height: 410px;
    border: none;
  }
}

/* On Mobile */
@media (max-width: 768px) {
  .OptionBox h3 {
    font-size: 15px;
    height: 48%;
    padding: 20px 5px;
    padding-bottom: 30px;
    border: none;
    transform: translateY(2%);
  }

  .OptionBox {
    &::before {
      bottom: -2px;
      right: -1px;
    }
  }

  .OptionBox {
    height: 200px;
    border: none;
  }
}

.slideIcon {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 10;
  height: auto;
  width: 100px;
  transform: translate(-50%, -50%);
  color: #0b7d0b;
}