/* ═══════════════════════════════════════
   Night Owl Gallery — Base Styles
═══════════════════════════════════════ */

/* Layout: Masonry */
.nowgal--masonry {
  column-gap: 6px;
}

/* Layout: Grid */
.nowgal--grid {
  display: grid;
  gap: 6px;
}

/* ── Item ── */
.nowgal__item {
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  line-height: 0;
}

.nowgal--grid .nowgal__item {
  line-height: normal;
}

.nowgal__item a,
.nowgal__item > div {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* ── Image ── */
.nowgal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: all 450ms ease;
}

/* ── Overlay ── */
.nowgal__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  z-index: 2;
  transition: opacity 450ms ease;
  pointer-events: none;
}

.nowgal__item:hover .nowgal__overlay {
  opacity: 1;
}

/* ── Title ── */
.nowgal__title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: #fff;
  text-align: center;
  line-height: 1.15;
}

/* ═══════════════════════════════════════
   ENTRANCE ANIMATIONS
═══════════════════════════════════════ */
@keyframes nowgalFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes nowgalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes nowgalZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.nowgal-anim {
  opacity: 0;
}

.nowgal-anim--fadeUp {
  animation: nowgalFadeUp 0.5s ease forwards;
}

.nowgal-anim--fadeIn {
  animation: nowgalFadeIn 0.5s ease forwards;
}

.nowgal-anim--zoomIn {
  animation: nowgalZoomIn 0.5s ease forwards;
}

/* ═══════════════════════════════════════
   LIGHTBOX OVERRIDES (GLightbox)
═══════════════════════════════════════ */
.goverlay {
  background: rgba(0, 0, 0, 0.92) !important;
}

/* Make sure desc container is visible */
.gslide-description {
  background: transparent !important;
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  padding: 16px 0 !important;
}

.gdesc-inner {
  font-family: 'Outfit', sans-serif !important;
  padding: 0 !important;
}

.gslide-title {
  font-family: 'Bebas Neue', Impact, sans-serif !important;
  font-size: 30px !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 8px !important;
  color: #fff !important;
  display: block !important;
}

.gslide-desc {
  font-size: 14px !important;
  color: rgba(255,255,255,0.6) !important;
  line-height: 1.6 !important;
  display: block !important;
  max-width: 600px !important;
}

/* Image + description layout */
.gslide-media {
  max-height: 75vh !important;
}

.gslide-inner-content {
  max-width: 900px !important;
}

/* Close button */
.gclose {
  transition: transform 0.2s ease !important;
}

.gclose:hover {
  transform: rotate(90deg) !important;
}

/* Arrow buttons */
.gprev,
.gnext {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}

.gprev:hover,
.gnext:hover {
  background: rgba(255,255,255,0.15) !important;
}
