/**************************
  Modal Base Styles
**************************/
.modal {
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir,
    helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal__container {
  background-color: #fff;
  padding: 40px;
  max-width: 1000px;
  width: 90%;
  max-height: 900px;
  box-sizing: border-box;

  /* entire popup scrolls */
  overflow-y: auto;
  overflow-x: hidden;
}

.project-slide-content-wrapper {
  height: 520px;
}

.project-slide-content-wrapper video {
  height: 100%;
}

.project-slide-content-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

/**************************
  Modal Header
**************************/
.modal__header {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  gap: 16px;
}

.modal__title {
  font-weight: 600;
  font-size: 24px;
  color: #00449e;
  margin: 0;
}

.content-button-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sub-items-pop-wrap {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.sub-item-pop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-item-pop img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sub-item-pop .box-number {
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  margin-top: 5px;
}

.sub-item-pop .box-mesure {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 5px;
}

.modal__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/**************************
  Modal Content
**************************/
.modal__content {
  margin-top: 20px;
  overflow: visible;
  /* no inner scroll */
}

/* === Modal Gallery Wrapper === */
.modal-gallery {
  display: block;
  width: 100%;
}

/* === Main Slider === */
.project-slider {
  width: 100% !important;
}

.project-slider .project-slide {
  outline: none;
  text-align: center;
}

.project-slider .project-slide img,
.project-slider .project-slide video {
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/**************************
  Thumbnail Navigation
**************************/
.slider-nav {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.slider-nav .thumb-slide {
  width: 100px;
  height: 70px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

/**************************
  Slick Dots (hidden by default)
**************************/
.slick-dots {
  display: none !important;
}

.slick-dots li button:before {
  font-size: 10px;
  color: #333;
}

.slick-dots li.slick-active button:before {
  color: #3966AD;
}

/**************************
  Modal Buttons
**************************/
.modal__btn {
  padding: 10px 15px;
  border-radius: 4px;
  background-color: #e6e6e6;
  border: none;
  cursor: pointer;
}

.modal__btn-primary {
  background-color: #00449e;
  color: #fff;
}

.blue-button-modal {
  background-color: #3966AD;
  color: white;
  border: none;
  padding: 16px 56px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
}

/**************************
  Animations
**************************/
@keyframes mmfadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(15%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10%);
  }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn 0.3s ease;
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn 0.3s ease;
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut 0.3s ease;
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut 0.3s ease;
}

/**************************
  Responsive
**************************/

@media (max-width: 1100px) {
  .slider-nav .thumb-slide {
    width: 80px;
    height: 50px;
  }

  .project-slide-content-wrapper {
    height: 512px;
  }
}

@media (max-width: 950px) {
  .slider-nav .thumb-slide {
    width: 70px;
    height: 50px;
  }

  .project-slide-content-wrapper {
    height: 440px;
  }
}

@media (max-width: 810px) {
  .slider-nav .thumb-slide {
    width: 65px;
    height: 45px;
  }

  .project-slide-content-wrapper {
    height: 365px;
  }
}

@media (max-width: 750px) {
  .slider-nav .thumb-slide {
    width: 55px;
    height: 45px;
  }

  .project-slide-content-wrapper {
    height: 330px;
  }
}

@media (max-width: 575px) {
  .modal__container {
    width: 95%;
    max-height: 90vh;
    padding: 20px;
  }

  .content-button-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal__footer {
    display: none;
  }

  /* Hide thumbnails on mobile */
  .slider-nav {
    display: none !important;
  }

  /* Show bullet dots navigation on mobile */
  .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    position: static;
  }

  .project-slide-content-wrapper {
    height: 285px;
  }

  .slick-dots li.slick-active button {
    background-color: #3966AD;
    /* your active color */
  }
}

@media (max-width: 450px) {
  .project-slide-content-wrapper {
    height: 220px;
  }
}

@media (max-width: 350px) {
  .project-slide-content-wrapper {
    height: 165px;
  }
}