#thumbnail-product .iFrame-3D-modal {
display: none;
}
#main-product a.coh-link.iFrame-3D-modal {
  bottom: 18px;
 }

a.coh-link.iFrame-3D-modal {
  position: absolute;
  right: 32px;
  width: 40px;
  height: 40px;
}

.iFrame-3D-modal:hover {
  opacity: 40%;
}

a.coh-link.iFrame-3D-modal img {
  width: 40px;
  height: 40px;
}
/* Basic styling for the modal */
.custom-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Styling for the modal content */
.custom-modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%; /* Responsive width */
  max-width: 1300px; /* Limit maximum width for larger screens */
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: row-reverse;
}

/* Responsive iframe styling */
.custom-modal-content iframe {
  width: 100%;
  height: calc(100vh - 40px); /* Adjust height to fit within viewport */
  border: none;
  z-index: 2;
  position: relative;
}

/* Close button styling */
.custom-close {
  font-size: 30px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .custom-modal-content {
    width: 95%; /* Slightly wider on smaller screens */
    padding: 10px; /* Less padding for smaller screens */
  }

  .custom-close {
    font-size: 24px; /* Adjust close button size for smaller screens */
  }
  #main-product a.coh-link.iFrame-3D-modal {
    bottom: 0px;
   }
}
