.fabric-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
  padding: 20px;
}

.fabric-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.fabric-modal-inner {
  position: relative;
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

.fabric-modal img {
  display: block;
  width: 100%;
  max-width: 1000px;
  max-height: 82vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.fabric-label {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(40,40,40,0.82);
  color: #fff;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.fabric-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 22px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
}

.fabric-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 30px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.fabric-nav.left {
  left: -52px;
}

.fabric-nav.right {
  right: -52px;
}

@media (max-width: 1024px) {
  .fabric-modal-inner {
    max-width: 92vw;
  }

  .fabric-nav.left {
    left: -10px;
  }

  .fabric-nav.right {
    right: -10px;
  }
}

@media (max-width: 767px) {
  .fabric-modal {
    padding: 12px;
  }

  .fabric-modal img {
    max-height: 72vh;
    border-radius: 6px;
  }

  .fabric-label {
    bottom: 14px;
    font-size: 13px;
    padding: 8px 14px;
  }

  .fabric-close {
    top: -8px;
    right: -8px;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 30px;
  }

  .fabric-nav {
    width: 38px;
    height: 38px;
    font-size: 26px;
    line-height: 38px;
  }
}
#il-media-gallery-main-image {
  transition: opacity 0.35s ease;
}

#il-media-gallery-main-image.is-fading-out {
  opacity: 0.25;
}

.product-options p.required {
  display: none !important;
}