.custom-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  backdrop-filter: blur(7.4px);
  background: rgb(242 241 239 / 80%);
  overflow-y: auto;
  display: none;
  height: 100vh;
}
.popup-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 40px;
  height: 100%;
}
.popup-wrapper {
  border-radius: 31px;
  background-color: var(--white);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  max-width: 1356px;
  padding: 24px 24px 12px;
  width: 100%;
  position: relative;
}
#gallery-popup .popup-wrapper {
  height: 100%;
  animation: smileFadeScaleIn 0.4s ease-in-out !important;
  transition-delay: 0.4s !important;
  animation-fill-mode: forwards !important;
  transition: all 0.4s ease-in-out !important;
}
.gallery-popup-main .img-wrapper {
  position: relative;
  cursor: pointer;
  text-align: center;
  height: auto;
  padding-top: 51%;
}
.gallery-popup-main .img-wrapper img {
  height: 100%;
  width: auto;
  margin: auto;
}
.gallery-popup-main .slick-slide {
  display: flex;
  flex-direction: column;
}
.gallery-popup-main .img-wrapper img,
.gallery-popup-thumb .img-wrapper img {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  /*object-fit: cover;*/
  margin: auto;
  right: 0;
}
.gallery-popup-main {
  margin-bottom: 30px;
}
.gallery-popup-thumb::before,
.gallery-popup-thumb::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  width: 60px;
  z-index: 1;
}
.gallery-popup-thumb::after {
  right: 0;
  left: auto;
  background: linear-gradient(270deg, rgba(255, 255, 255, 1) 2%, rgba(255, 255, 255, 0) 100%);
}
.gallery-popup-thumb .img-wrapper {
  position: relative;
  padding-top: 65%;
  cursor: pointer;
  border: 1px solid transparent;
}
.gallery-popup-thumb .slick-active.slick-center .img-wrapper,
.gallery-popup-thumb .slick-current .img-wrapper {
  border: 1px solid var(--black);
}
.woocommerce .gallery-popup-thumb .slick-slide .img-wrapper img {
  height: 100%;
  object-fit: cover;
}
.gallery-popup-thumb .slick-slide {
  padding: 0 6px;
}
#product-gallery-popup .popup-close {
  top: 35px;
  right: 35px;
}
.custom-popup .bottom-wrapper {
  display: flex;
  row-gap: 20px;
  column-gap: 40px;
}
.custom-popup .bottom-wrapper .btn-wrapper {
  flex-shrink: 0;
  margin-top: 7px;
}
.custom-popup .bottom-wrapper .btn {
  display: block;
  color: var(--black) !important;
  min-width: 186px;
  padding: 10px 35px 10px 18px;
  background-color: #dddbd9;
}
.custom-popup .bottom-wrapper .btn:hover {
  color: var(--white) !important;
  background-color: #373737;
}
.custom-popup .bottom-wrapper .btn:not(:last-child) {
  margin-bottom: 12px;
}
.gallery-popup-thumb {
  width: calc(100% - 306px);
  margin-right: 80px;
}
.gallery-popup-thumb .splide__arrows,
.gallery-popup-thumb .slick-arrow {
  position: absolute;
  right: -80px;
  top: 7px;
  z-index: 2;
  cursor: pointer;
}
.gallery-popup-thumb .splide__arrows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-popup-thumb .splide__arrows button.splide__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  transform: none;
}
.gallery-popup-thumb .slick-arrow.slick-next {
  top: 55px;
}
.gallery-popup-thumb .slick-list {
  padding: 0 70px 0 50px !important;
}
.gallery-popup-thumb .slick-arrow:hover circle {
  fill: #383a42;
}
.gallery-popup-thumb .slick-arrow:hover path {
  stroke: var(--white);
}
.custom-popup .bottom-wrapper .btn:after {
  position: absolute;
  right: 5px;
  background-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="12" cy="12" rx="12" ry="12" transform="rotate(-90 12 12)" fill="white"/><path d="M12.1562 6V12" stroke="%23383A42" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M10.0938 10.4375L12.1562 12.5L14.2188 10.4375" stroke="%23383A42" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M17.3125 13.5V14.1875C17.3125 14.5522 17.1676 14.9019 16.9098 15.1598C16.6519 15.4176 16.3022 15.5625 15.9375 15.5625H8.375C8.01033 15.5625 7.66059 15.4176 7.40273 15.1598C7.14487 14.9019 7 14.5522 7 14.1875V13.5" stroke="%23383A42" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  top: 50%;
  transform: translateY(-50%);
}
.gallery-popup-main p {
  font-family: "Helvetica Now Micro", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.36px;
  margin-top: 14px;
  text-align: center;
}
.popup-close {
  text-align: center;
  height: 27px;
  width: 27px !important;
  position: absolute;
  right: 13px;
  top: 13px;
  cursor: pointer;
  z-index: 1;
  background-color: var(--theme-color);
  border-radius: 100%;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-close:hover {
  background-color: #373737;
}

#product-enquire-popup {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(56, 58, 66, 0.1);
  backdrop-filter: blur(2.5px);
  height: 100vh;
  transition: 0.2s;
}
#product-enquire-popup.open {
  visibility: visible;
  opacity: 1;
  pointer-events: initial;
}

#product-enquire-popup.open .popup-wrapper {
  animation: smileFadeScaleIn 0.4s ease-in-out !important;
  transition-delay: 0.4s !important;
  animation-fill-mode: forwards !important;
  transition: all 0.4s ease-in-out !important;
}
@keyframes smileFadeScaleIn {
  0% {
    opacity: 0;
    transform: translateY(150px);
    visibility: hidden;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}

@media only screen and (max-width: 1199px) {
  .gallery-popup-main .img-wrapper {
    padding-top: 54%;
  }
}
@media only screen and (min-width: 992px) {
  #product-gallery-popup .popup-body {
    height: 100vh;
  }
  #product-gallery-popup .popup-wrapper {
    /*height: 100%;*/
  }
  .gallery-popup-main {
    /*height: calc(100% - 138px);*/
    height: auto;
    margin-bottom: 30px;
  }
  .gallery-popup-main div {
    height: 100%;
  }
}
@media only screen and (min-width: 768px) {
  .gallery-popup-main p {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
  }
}
@media only screen and (max-width: 991px) {
  .gallery-popup-thumb {
    width: 100%;
    margin-right: 0;
  }
  .custom-popup .bottom-wrapper {
    flex-direction: column;
  }
  .gallery-popup-thumb .slick-list {
    padding: 0 50px !important;
  }
}
@media only screen and (max-width: 767px) {
  .popup-body {
    padding: 40px 10px;
  }
  .popup-wrapper {
    padding: 9px 9px 30px;
    border-radius: 24px;
  }
  .custom-popup .bottom-wrapper .btn {
    width: 100%;
  }
  .custom-popup .bottom-wrapper {
    margin: 0 10px;
  }
  .custom-popup .bottom-wrapper {
    column-gap: 20px;
  }
  .gallery-popup-main .img-wrapper img {
    border-radius: 20px;
  }
  .popup-close {
    right: 20px;
    top: 20px;
  }
  #product-gallery-popup .popup-close {
    top: 15px;
    right: 15px;
  }
  .gallery-popup-main {
    margin-bottom: 20px;
  }
  .gallery-popup-main .img-wrapper {
    padding-top: 94%;
  }
}
@media only screen and (max-width: 575px) {
  .gallery-popup-main .img-wrapper {
    padding-top: 75%;
  }
}
