/* ==============================
   Page Title
============================== */
.page-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  color: #f3ece4;
  transition: color 0.3s ease; /* sanfter Übergang */
}
.page-title:hover {
    color: #FF6F61;
}

/* ==============================
   Releases Gallery Styles
============================== */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
  justify-items: center;
}

/* Jedes Bild mit Caption */
.gallery-item {
  width: 100%;
}

.gallery-image-wrapper {
  position: relative; /* damit Caption am Bild positioniert werden kann */
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}

/* Bilder */
.gallery-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.gallery-image-wrapper img:hover {
  transform: scale(1.03);
}

/* Caption unten rechts */
.image-caption {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background-color: rgba(255,111,97,0.6);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  max-width: 85%;
  line-height: 1.2;
  white-space: normal;
}

/* Caption-Link Styling */
.image-caption a {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.image-caption a:hover {
  color: #FF6F61;
}

/* ==============================
   Lightbox Styles
============================== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  z-index: 1000;

  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.show {
  opacity: 1;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.7);
  border-radius: 6px;
}

/* ==============================
   Responsive Anpassungen
============================== */
@media (max-width: 1024px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 700px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .image-caption a {
    font-size: 0.7rem; /* noch kleiner auf Mobile */
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }
}


