@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&family=Inter:wght@300&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: #f8f6f3;
  color: #222;
  font-family: 'Inter', sans-serif;
}

header {
  text-align: center;
  padding: 2rem 1rem;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #555;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: #000;
}

.intro {
  text-align: center;
  font-size: 1.2rem;
  margin: 2rem 1rem;
  font-family: 'Playfair Display', serif;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.gallery img {
  width: 300px;       /* thumbnail width */
  max-width: 45vw;    /* responsive on small screens */
  height: auto;       /* keeps natural aspect ratio */
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: block;
}

.content {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.7;
}

footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #777;
}


/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.lb-caption {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #eee;
  background: rgba(0,0,0,0.35);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  max-width: 90vw;
  text-align: center;
  backdrop-filter: blur(3px);
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px; line-height: 44px; text-align: center;
  transition: background 0.2s ease, transform 0.1s ease;
}
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(0,0,0,0.7); }
@media (max-width: 640px) {
  .lb-caption { bottom: 18px; font-size: 0.85rem; }
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 22px; }
}


/* language switch */
nav .lang-switch { margin-left: 1rem; font-weight: 600; }

/* --- Albums grid --- */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.album-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.album-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.12); }
.album-cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.album-meta { padding: .75rem .9rem 1rem; }
.album-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; margin: 0 0 .25rem; }
.album-count { font-size: .9rem; color: #666; }
.breadcrumbs { max-width: 1100px; margin: 1rem auto 0; padding: 0 1rem; color: #666; font-size: .9rem; }
.breadcrumbs a { color: inherit; }
.album-hero { text-align: center; margin: 1rem auto 0; padding: 0 1rem; }
.album-hero h2 { font-family: 'Playfair Display', serif; margin: .5rem 0 0; }

/* Albums: uniform cropped tiles (scoped to album pages only) */
.album-hero + .gallery {
  max-width: 1100px;
  margin: 1rem auto 2.5rem;
  padding: 0 1rem;
  display: grid;  /* override homepage flex */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.album-hero + .gallery img {
  width: 100% !important;  /* override homepage 300px */
  aspect-ratio: 4 / 3;     /* choose 3/2 or 1/1 if you prefer */
  object-fit: cover;       /* crop to fill the tile */
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  display: block;
}

/* Tighter grid on small phones */
@media (max-width: 480px) {
  .album-hero + .gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}

/* Sticky header with subtle blur */
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.75);backdrop-filter:saturate(160%) blur(8px)}
header nav a{padding:.35rem .6rem;border-radius:8px}
header nav a:hover{background:rgba(0,0,0,.05)}

/* Dark mode */
/*
@media (prefers-color-scheme: dark){
  :root{--bg:#0e0f11;--card:#15171a;--ink:#eaecef}
  body{background:var(--bg);color:var(--ink)}
  header{background:rgba(18,19,22,.6)}
  .home-albums .album-card, .album-hero + .gallery img{box-shadow:0 8px 20px rgba(0,0,0,.35)}
  .album-card, .album-hero + .gallery img{background:var(--card)}
}
*/
