/* ===== Album Grid ===== */
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.album {
  cursor: pointer;
  text-align: center;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.album:hover {
  transform: scale(1.02);
}

.album img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.album-title {
  padding: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  color: #333;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e95e9a;
    color: rgb(255, 255, 255);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    top: 10px;
    left: 47%;
    position: fixed;

    box-shadow: 0 5px 0 #a52727;
    transition: all 0.1s ease;
}

.back-button:active {
    box-shadow: 0 2px 0 #a52727;
    transform: translateY(3px);
}

/* ===== Lightbox Overlay ===== */
#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 9999;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

/* ===== Lightbox Controls ===== */
#lightbox-overlay button {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  font-size: 40px;
  padding: 10px 15px;
  cursor: pointer;
  user-select: none;
  border-radius: 5px;
  transition: background 0.3s;
}

#lightbox-overlay button:hover {
  background: rgba(255, 255, 255, 0.5);
}

#lightbox-overlay button:nth-of-type(1) {
  left: 20px;
}

#lightbox-overlay button:nth-of-type(2) {
  right: 20px;
}

#lightbox-overlay button:nth-of-type(3) {
  top: 20px;
  right: 20px;
  font-size: 30px;
}
