/*
 * gallery.css — Masonry Galerie + Lightbox
 * Fotogruppe elektron Lübbenau Child Theme
 */

/* ---- Header ---- */
.fge-gallery-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 50px; flex-wrap: wrap; gap: 20px;
}

/* ---- Filter ---- */
.fge-gallery-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.fge-filter-btn {
  padding: 8px 20px; border-radius: 50px; border: 1.5px solid var(--border-blue);
  background: transparent; color: var(--text-muted); font-size: 0.8rem;
  font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.3s;
}
.fge-filter-btn:hover,
.fge-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* ---- Masonry ---- */
.fge-gallery-masonry { columns: 3; column-gap: 16px; }
.fge-gallery-item {
  break-inside: avoid; margin-bottom: 16px;
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer; box-shadow: var(--shadow-sm);
}
.fge-gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), filter 0.4s;
}
.fge-gallery-item:hover img { transform: scale(1.04); filter: brightness(0.65); }

.fge-gallery-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s; gap: 8px;
}
.fge-gallery-item:hover .fge-gallery-overlay { opacity: 1; }
.fge-gallery-overlay i     { font-size: 1.6rem; color: #fff; }
.fge-gallery-overlay span  {
  font-family: 'Space Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.9); text-transform: uppercase;
}

/* ---- Lightbox ---- */
#fge-lightbox {
  position: fixed; inset: 0; background: rgba(10,30,70,0.93); z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s; backdrop-filter: blur(8px);
}
#fge-lightbox.active { opacity: 1; pointer-events: all; }
#fge-lightbox img {
  max-width: 90vw; max-height: 85vh; width: auto; object-fit: contain;
  border-radius: 10px; box-shadow: 0 40px 100px rgba(10,30,70,0.5);
  transition: opacity 0.22s ease;
}
.fge-lightbox-close {
  position: fixed; top: 22px; right: 26px; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 1.2rem;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.3s; z-index: 9001;
}
.fge-lightbox-close:hover { background: rgba(255,255,255,0.3); }
.fge-lightbox-prev,
.fge-lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1rem; width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; z-index: 9001;
}
.fge-lightbox-prev { left: 18px; }
.fge-lightbox-next { right: 18px; }
.fge-lightbox-prev:hover,
.fge-lightbox-next:hover { background: var(--accent); border-color: var(--accent); }

/* ---- Caption ---- */
.fge-lightbox-caption {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: rgba(10,30,70,0.7); backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.85); padding: 8px 20px; border-radius: 50px;
  font-family: 'Space Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; z-index: 9001;
  white-space: nowrap;
}
