/* ══════════════════════════════════════════════════════════════════
   DOLTON GALLERY — PREMIUM LIGHTBOX STYLES
   ══════════════════════════════════════════════════════════════════ */

/* ── Galeria: nakładka z ikoną powiększenia przy hover ── */
.dolton-gallery-wrapper .gal-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.dolton-gallery-wrapper .gal-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  pointer-events: none;
}

.dolton-gallery-wrapper .gal-item:hover .gal-item-overlay {
  opacity: 1;
}

.dolton-gallery-wrapper .gal-zoom-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.9);
  color: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.7);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dolton-gallery-wrapper .gal-item:hover .gal-zoom-icon {
  transform: scale(1);
}

/* ── Lightbox Modal ── */
.dolton-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(14, 13, 12, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  user-select: none;
  overflow: hidden;
}

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

/* ── Pasek górny (Top Bar) ── */
.dolton-lightbox-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  color: #fff;
  z-index: 10;
}

.dolton-lightbox-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dolton-lightbox-cat {
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c9a96e;
  font-weight: 600;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
}

.dolton-lightbox-counter {
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

.dolton-lightbox-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.dolton-lightbox-close:hover {
  background: #c9a96e;
  color: #1e1e1e;
  transform: rotate(90deg);
  border-color: #c9a96e;
}

/* ── Kontener główny zdjęcia ── */
.dolton-lightbox-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 80px;
  box-sizing: border-box;
}

.dolton-lightbox-img-wrapper {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dolton-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dolton-lightbox-img.loading {
  opacity: 0;
  transform: scale(0.96);
}

/* ── Spinner ładowania ── */
.dolton-lightbox-spinner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #c9a96e;
  border-radius: 50%;
  animation: dolton-spin 0.8s linear infinite;
  display: none;
}

.dolton-lightbox-stage.is-loading .dolton-lightbox-spinner {
  display: block;
}

@keyframes dolton-spin {
  to { transform: rotate(360deg); }
}

/* ── Przyciski nawigacji (Prev / Next) ── */
.dolton-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.dolton-lightbox-nav:hover {
  background: #c9a96e;
  color: #1e1e1e;
  border-color: #c9a96e;
  transform: translateY(-50%) scale(1.08);
}

.dolton-lightbox-prev {
  left: 24px;
}

.dolton-lightbox-next {
  right: 24px;
}

/* ── Pasek dolny (Podpis / Tytuł) ── */
.dolton-lightbox-bottombar {
  width: 100%;
  text-align: center;
  padding: 16px 20px 24px;
  z-index: 10;
}

.dolton-lightbox-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ── Responsywność dla urządzeń mobilnych ── */
@media (max-width: 768px) {
  .dolton-lightbox-topbar {
    padding: 14px 18px;
  }
  .dolton-lightbox-stage {
    padding: 0 10px;
  }
  .dolton-lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .dolton-lightbox-prev {
    left: 8px;
  }
  .dolton-lightbox-next {
    right: 8px;
  }
  .dolton-lightbox-img {
    max-height: 72vh;
  }
  .dolton-lightbox-title {
    font-size: 1.15rem;
  }
}
