@media (max-width: 991.98px) {
  body#product .product__images {
    margin-right: -15px !important;
    margin-left: -15px !important;
    padding: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
  }

  body#product .product__images #product-images .carousel-inner {
    width: 100% !important;
    border-radius: 0 !important;
  }

  body#product .product__images #product-images {
    width: 100% !important;
    max-width: none !important;
  }

  body#product .product__images #product-images .carousel-item {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
  }

  body#product .product__images #product-images .carousel-item > picture {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
  }

  body#product .product__images #product-images .carousel-item img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
  }

  body#product #product-images .product__images__modal-opener {
    position: absolute !important;
    right: 14px !important;
    bottom: 14px !important;
    z-index: 8 !important;
    display: flex !important;
    width: 48px !important;
    height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid rgba(0, 2, 24, .12) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .96) !important;
    color: #000218 !important;
    box-shadow: 0 8px 24px rgba(0, 2, 24, .18) !important;
    cursor: zoom-in !important;
    pointer-events: auto !important;
  }

  body#product #product-images .product__images__modal-opener .material-icons {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    color: #000218 !important;
    font-size: 24px !important;
    line-height: 24px !important;
    text-align: center !important;
  }
}

@media (min-width: 992px) {
  body#product #product-images .product__images__modal-opener {
    position: absolute !important;
    right: 18px !important;
    bottom: 18px !important;
    z-index: 8 !important;
    display: flex !important;
    width: 52px !important;
    height: 52px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid rgba(0, 2, 24, .12) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .96) !important;
    color: #000218 !important;
    box-shadow: 0 9px 26px rgba(0, 2, 24, .18) !important;
    cursor: zoom-in !important;
    transition: transform .2s ease, background-color .2s ease, color .2s ease !important;
  }

  body#product #product-images .product__images__modal-opener:hover {
    background: #000218 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
  }

  body#product #product-images .product__images__modal-opener .material-icons {
    margin: 0 !important;
    color: inherit !important;
    font-size: 25px !important;
    line-height: 1 !important;
  }
}

body#product #product-modal {
  z-index: 1080 !important;
}

body#product #product-modal .modal-dialog {
  max-width: min(920px, calc(100vw - 28px)) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body#product #product-modal .modal-content {
  overflow: visible !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 24px 70px rgba(0, 2, 24, .28) !important;
}

body#product #product-modal .modal-body {
  overflow: hidden !important;
  padding: 8px !important;
  border-radius: 18px !important;
}

body#product #product-modal .codebo-product-modal-close {
  position: absolute !important;
  top: -14px !important;
  right: -12px !important;
  z-index: 20 !important;
  display: flex !important;
  width: 46px !important;
  height: 46px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: #000218 !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(0, 2, 24, .28) !important;
  cursor: pointer !important;
}

body#product #product-modal .codebo-product-modal-close .material-icons {
  margin: 0 !important;
  color: #fff !important;
  font-size: 25px !important;
  line-height: 1 !important;
}

body#product #product-images-modal .carousel-item img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: calc(100vh - 64px) !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  border-radius: 12px !important;
}

.modal-backdrop.show {
  z-index: 1070 !important;
  opacity: .72 !important;
}

@media (max-width: 575.98px) {
  body#product #product-modal .modal-dialog {
    max-width: calc(100vw - 18px) !important;
    margin: 12px auto !important;
  }

  body#product #product-modal .modal-content,
  body#product #product-modal .modal-body {
    border-radius: 14px !important;
  }

  body#product #product-modal .modal-body {
    padding: 4px !important;
  }

  body#product #product-modal .codebo-product-modal-close {
    top: 8px !important;
    right: 8px !important;
    width: 44px !important;
    height: 44px !important;
  }

  body#product #product-images-modal .carousel-item img {
    max-height: calc(100vh - 32px) !important;
    border-radius: 11px !important;
  }
}
