/* ─── Custom lightbox modal (replaces Elementor's broken lightbox) ─── */
.mesh-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  cursor: default;
}
.mesh-lightbox.is-open { display: flex; }

.mesh-lightbox__inner {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.mesh-lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, .5);
  background: #fff;
}

.mesh-lightbox__title {
  color: #fff;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 18px;
  margin-top: 16px;
  text-align: center;
  max-width: 90vw;
}

/* Close button - grey/white circle pinned to the viewport corner */
.mesh-lightbox .mesh-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f1f1;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
  padding: 0;
  z-index: 2;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.mesh-lightbox .mesh-lightbox__close:hover,
.mesh-lightbox .mesh-lightbox__close:focus { background: #fff; color: #000; }
.mesh-lightbox .mesh-lightbox__close:hover { transform: scale(1.1); }
.mesh-lightbox .mesh-lightbox__close:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 4px 16px rgba(0, 0, 0, .3); }
.mesh-lightbox .mesh-lightbox__close:active { background: #e2e2e2; transform: scale(.96); }
.mesh-lightbox .mesh-lightbox__close svg { display: block; }

/* Prev / Next navigation - grey/white circles */
.mesh-lightbox .mesh-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f1f1;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, box-shadow .15s;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.mesh-lightbox .mesh-lightbox__nav:hover,
.mesh-lightbox .mesh-lightbox__nav:focus { background: #fff; color: #000; }
.mesh-lightbox .mesh-lightbox__nav:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55); }
.mesh-lightbox .mesh-lightbox__nav:active { background: #e2e2e2; }
.mesh-lightbox .mesh-lightbox__nav svg { display: block; }

.mesh-lightbox__nav--prev { left: -60px; }
.mesh-lightbox__nav--next { right: -60px; }
.mesh-lightbox__nav[hidden] { display: none; }

@media (max-width: 768px) {
  .mesh-lightbox { padding: 20px; }
  .mesh-lightbox__nav--prev { left: 8px; }
  .mesh-lightbox__nav--next { right: 8px; }
  .mesh-lightbox__close { top: 8px; right: 8px; }
  /* On mobile the nav arrows sit over the image; a soft shadow keeps them
     visible against white/light product photos without a hard outline. */
  .mesh-lightbox .mesh-lightbox__nav {
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  }
}
