.ip-product-images-container {
  display: flex;
  align-items: start;
  gap: 5px;
  position: relative;
}

#ip-product-main-img-container {
  width: 500px;
}

.ip-product-images-magnifying-glass {
  position: absolute;
  top: 5px;
  left: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.ip-product-images-magnifying-glass img {
  width: 25px;
}

.ip-product-images-main-img {
  max-width: 500px !important; /*Fighting WooCommerce styles*/
}

.ip-product-images-gallery-images-container {
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  max-height: 600px;
  gap: 5px;
}

.ip-product-images-gallery-img {
  width: 100px;
  max-width: initial !important; /*Fighting WooCommerce styles*/
  cursor: pointer;
}

.ip-product-images-inactive-img {
  opacity: 0.5;
}

.ip-product-images-lightbox {
  background-color: rgba(0, 0, 0, 0.9);
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  justify-content: space-between;
  align-items: center;
  display: flex;
  z-index: 100;
}

/*If the admin bar is showing*/
.admin-bar .ip-product-images-lightbox {
  top: 32px;
}

.ip-product-images-lightbox-button,
#ip-product-images-lightbox-close {
  display: block;
  background: none;
  color: white;
  cursor: pointer;
  font-size: 30px;
  font-weight: bold;
  border: none;
}

#ip-product-images-lightbox-close {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 20px;
}

.ip-product-images-lightbox-img {
  max-width: initial !important; /*Fighting WooCommerce styles*/
  height: 98% !important; /*Fighting WooCommerce styles*/
}

@media screen and (max-width: 768px) {
  .ip-product-images-container {
    flex-direction: column;
  }

  .ip-product-images-gallery-images-container {
    flex-direction: row;
    width: 320px;
    overflow-y: initial;
    overflow-x: scroll;
  }

  #ip-product-main-img-container {
    width: 100%;
  }

  .ip-product-images-main-img {
    width: 100%;
  }
}
