/* =========================
   Photopi — photos.css
   Photos page styling
   ========================= */

/* Albums grid */
.albums{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  gap: 18px;
  margin-top: 14px;
  justify-content: start;
}

/* Never underline album cards */
.album-card,
.album-card:hover,
.album-card:visited,
.album-card:focus{
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.album-cover{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(255,255,255,0.04);
  max-height: 340px;
}

.album-cover--empty{
  border: 1px solid rgba(255,255,255,0.10);
}

.album-meta{ padding-top: 10px; }
.album-title{ font-weight: 600; }

/* Album view */
.crumbs{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.crumbs a{ color: var(--accent); }
.crumb-sep{ opacity: 0.6; }

/* Photo grid */
.gallery-grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.gallery-item,
.gallery-item:hover,
.gallery-item:visited,
.gallery-item:focus{
  display: block;
  text-decoration: none !important;
  background: rgba(255,255,255,0.03);
}

.gallery-item img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.lightbox.is-open{ display: flex; }

.lightbox .lb-img{
  max-width: min(92vw, 1800px);
  max-height: 86vh;
  object-fit: contain;
}

.lightbox button{
  position: fixed;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.lightbox .lb-close{ top: 14px; right: 14px; font-size: 22px; }
.lightbox .lb-prev{ left: 14px; top: 50%; transform: translateY(-50%); font-size: 26px; }
.lightbox .lb-next{ right: 14px; top: 50%; transform: translateY(-50%); font-size: 26px; }
