/* media-lightbox.css — lightbox modal pra imagens + vídeos de reviews/UGC */

/* Lightbox container — fundo escuro overlay */
.ml-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
  -webkit-tap-highlight-color: transparent;
}
.ml-lightbox.open { display: flex; }
.ml-lightbox-content {
  position: relative;
  max-width: min(95vw, 600px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.ml-lightbox img,
.ml-lightbox video {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 8px;
  background: #000;
  display: block;
}
.ml-lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}
.ml-lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

/* Customer Photos grid — fotos de reviews */
.ml-customer-photos {
  max-width: 1400px;
  margin: 32px auto;
  padding: 0 20px;
}
.ml-customer-photos__heading {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  text-align: center;
  margin: 0 0 24px;
  color: #1a1a1a;
}
@media (min-width: 768px) {
  .ml-customer-photos__heading { font-size: 36px; margin-bottom: 32px; }
}
.ml-customer-photos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
@media (min-width: 768px) {
  .ml-customer-photos__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}
.ml-photo-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
  background: #f5f5f5;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ml-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.ml-photo-card img,
.ml-photo-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ml-photo-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  pointer-events: none;
}
.ml-photo-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: #fff;
  padding: 16px 8px 6px;
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
}

/* Loading spinner */
.ml-lightbox-loader {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ml-spin 1s linear infinite;
}
@keyframes ml-spin { to { transform: rotate(360deg); } }
