/* =========================================================
   LIGHTGALLERY — FULL GLASS OVERLAY (NO INNER BOX)
   ========================================================= */

/* FULL overlay glass */
.lg-backdrop {
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(18px) saturate(120%);
}

/* Center everything */
.lg-outer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* IMAGE WRAPPER — NO BOX */
.lg-img-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  max-width: 92vw !important;
  max-height: 78vh !important;
  margin: auto !important;

  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;

  opacity: 0;
  transform: scale(0.97) translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lg-item.lg-current .lg-img-wrap {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* IMAGE */
.lg-img-wrap img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  border-radius: 12px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}

/* =========================================================
   TITLE — FLOATING UNDER IMAGE
   ========================================================= */

.lg-item .lg-sub-html {
  position: relative !important;
  margin-top: 14px !important;

  max-width: 70vw;
  margin-left: auto;
  margin-right: auto;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 10px 18px;

  text-align: center;

  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease 0.18s,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.18s;
}

.lg-item.lg-current .lg-sub-html {
  opacity: 1;
  transform: translateY(0);
}

.lg-sub-html h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.lg-sub-html p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.85;
}

/* =========================================================
   GLASS ARROWS — AUTO-HIDE AFTER IDLE
   ========================================================= */

.lg-prev,
.lg-next {
  width: 48px;
  height: 48px;

  display: flex !important;
  align-items: center;
  justify-content: center;

  border-radius: 50% !important;

  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);

  color: rgba(255, 255, 255, 0.85) !important;

  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.25s ease,
    box-shadow 0.25s ease;
}

/* AUTO-HIDE when idle */
.lg-hide-items .lg-prev,
.lg-hide-items .lg-next {
  opacity: 0 !important;
  pointer-events: none;
}

/* Show on hover / interaction */
.lg-outer:hover .lg-prev,
.lg-outer:hover .lg-next {
  opacity: 1 !important;
  pointer-events: auto;
}

/* Hover */
.lg-prev:hover,
.lg-next:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  transform: scale(1.08);
}

/* Icons */
.lg-prev::after,
.lg-next::before {
  font-size: 18px !important;
}

/* Positioning */
.lg-prev {
  left: 28px !important;
}

.lg-next {
  right: 28px !important;
}

/* =========================================================
   GLASS CLOSE ❌ BUTTON
   ========================================================= */

.lg-toolbar .lg-close {
  width: 44px;
  height: 44px;

  display: flex !important;
  align-items: center;
  justify-content: center;

  border-radius: 50% !important;

  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);

  color: rgba(255, 255, 255, 0.9) !important;

  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.25s ease;
}

.lg-toolbar .lg-close:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  transform: scale(1.1);
}

/* =========================================================
   THUMBNAILS — UNTOUCHED
   ========================================================= */

.lg-thumb-outer {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(10px);
  border-radius: 14px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .lg-img-wrap {
    max-height: 68vh !important;
  }

  .lg-item .lg-sub-html {
    max-width: 90vw;
  }

  .lg-prev,
  .lg-next {
    width: 42px;
    height: 42px;
  }

  .lg-prev {
    left: 14px !important;
  }

  .lg-next {
    right: 14px !important;
  }

  .lg-toolbar .lg-close {
    width: 40px;
    height: 40px;
  }
}