/* Galerie v2 – Album-Grid */

.gallery-section {
  padding-top: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.2rem;
}

.album-card {
  border-radius: 1.1rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.album-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.album-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 66%;
  overflow: hidden;
  background: #e5e7eb;
}

.album-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-info {
  padding: 0.75rem 0.85rem 0.8rem;
}

.album-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.15rem;
}

.album-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.album-category {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #eef2ff;
  color: #4f46e5;
}

/* Kategorie-Farben optional differenzieren */
.album-category.r4g_aktion {
  background: #fef3c7;
  color: #b45309;
}

.album-category.r4g_treffen {
  background: #dcfce7;
  color: #15803d;
}

.album-category.supporter_aktion {
  background: #e0f2fe;
  color: #0369a1;
}

.no-albums {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #6b7280;
}

/* ========== LIGHTBOX OVERLAY ========== */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.lightbox-overlay.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper {
    max-width: 40vw;      /* 60% der Bildschirmbreite */
    max-height: 40vh;     /* 60% der Bildschirmhöhe */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightboxImage {
    max-width: 75%;
    max-height: 75%;
    border-radius: 0.75rem;
    user-select: none;
    pointer-events: none; /* verhindert Rechtsklick-Speichern weitgehend */
}

/* Buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(15,23,42,0.65);
    color: #fff;
    border: 1px solid rgba(148,163,184,0.5);
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.lightbox-close {
    top: -4rem;
    right: 0;
}

.lightbox-prev {
    left: -4rem;
}

.lightbox-next {
    right: -4rem;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    background: rgba(30,41,59,0.85);
}

/* Mobile Anpassung */
@media (max-width: 700px) {
    .lightbox-prev {
        left: -2.5rem;
    }
    .lightbox-next {
        right: -2.5rem;
    }
    .lightbox-close {
        top: -3rem;
    }
}