/* -----------------------------------------------------------------------------
   Αρχείο:     assets/css/album.css
   Σκοπός:     Interior άλμπουμ (πλέγμα εικόνων + lightbox modal)
   VERSION:    0.1.0
   ----------------------------------------------------------------------------- */

.album-page {
  max-width: var(--content-max);
  margin: 40px auto 80px;
  padding: 0 20px;
}
.album-page__header { text-align: center; margin: 20px 0 8px; }
.album-page__count {
  text-align: center;
  font-family: var(--font-sans);
  color: var(--text-muted);
  margin-bottom: 32px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.album-grid__item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-band);
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--border);
}
.album-grid__item:hover, .album-grid__item:focus-visible {
  transform: scale(1.04);
  box-shadow: var(--sh-card);
  z-index: 1;
}
.album-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.album-page__body {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.album-page__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
  background: var(--bg-band);
  border-radius: var(--r-card);
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox__figure {
  margin: 0; max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lightbox__img {
  max-width: 100%; max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}
.lightbox__caption {
  color: #f0dcc8;
  font-family: var(--font-sans);
  font-size: 14px;
  text-align: center;
  max-width: 720px;
  padding: 0 20px;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(0, 0, 0, 0.4);
  color: #fff; border: 0;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lightbox__close {
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  font-size: 32px; line-height: 1;
  border-radius: 50%;
}
.lightbox__close:hover { background: rgba(0, 0, 0, 0.7); transform: scale(1.1); }
.lightbox__nav {
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  font-size: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__nav:hover { background: rgba(0, 0, 0, 0.7); transform: translateY(-50%) scale(1.1); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__counter {
  position: absolute;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #f0dcc8;
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
}

@media (max-width: 600px) {
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .lightbox__nav { width: 44px; height: 44px; font-size: 18px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}
