/* ── LIGHTBOX OVERLAY ─────────────────────────── */
.smw-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(10px);
}

.smw-lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* ── LIGHTBOX CONTENT ─────────────────────────── */
.smw-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smw-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.smw-lightbox-img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* ── LIGHTBOX CONTROLS ────────────────────────── */
.smw-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.3s, color 0.3s;
}

.smw-lightbox-close:hover {
  transform: rotate(90deg);
  color: var(--o);
}

.smw-lightbox-prev,
.smw-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  width: 56px;
  height: 56px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s, border-color 0.3s;
}

.smw-lightbox-prev:hover,
.smw-lightbox-next:hover {
  background: var(--o);
  border-color: var(--o);
}

.smw-lightbox-prev { left: 24px; }
.smw-lightbox-next { right: 24px; }

.smw-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  z-index: 10;
}

/* ── LOADING SPINNER ──────────────────────────── */
.smw-lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--o);
  border-radius: 50%;
  animation: lightboxSpin 1s linear infinite;
  z-index: -1;
}

@keyframes lightboxSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
  .smw-lightbox-prev, .smw-lightbox-next { width: 44px; height: 44px; }
  .smw-lightbox-prev { left: 16px; }
  .smw-lightbox-next { right: 16px; }
  .smw-lightbox-close { top: 16px; right: 16px; }
}
