@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0C2340;
  --navy-mid:    #1B3A6B;
  --gold:        #B8892A;
  --gold-light:  #D4AA4E;
  --gold-pale:   #F5EDD8;
  --bg:          #F6F3EE;
  --surface:     #FFFFFF;
  --surface2:    #EDE9E1;
  --text:        #12192B;
  --text-muted:  #7A7A8C;
  --border:      #DDD8CE;
  --radius:      3px;
  --shadow-sm:   0 1px 4px rgba(12,35,64,0.07), 0 2px 12px rgba(12,35,64,0.06);
  --shadow-md:   0 4px 20px rgba(12,35,64,0.13), 0 1px 4px rgba(12,35,64,0.06);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Site header ─────────────────────────────────────────── */

.site-header {
  background: var(--navy);
  position: relative;
  margin-bottom: 2.5rem;
}

.site-header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light) 60%, transparent);
}

.site-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.25rem 2.5rem 2rem;
}

.site-header__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.55rem;
  opacity: 0.9;
}

.site-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  line-height: 1.05;
}

/* ── Album grid (homepage) ───────────────────────────────── */

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 2.5rem 4rem;
  max-width: 1440px;
  margin: 0 auto;
}

.album-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  animation: cardReveal 0.5s ease both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger first 12 cards */
.album-card:nth-child(1)  { animation-delay: 0.04s; }
.album-card:nth-child(2)  { animation-delay: 0.08s; }
.album-card:nth-child(3)  { animation-delay: 0.12s; }
.album-card:nth-child(4)  { animation-delay: 0.16s; }
.album-card:nth-child(5)  { animation-delay: 0.20s; }
.album-card:nth-child(6)  { animation-delay: 0.24s; }
.album-card:nth-child(7)  { animation-delay: 0.28s; }
.album-card:nth-child(8)  { animation-delay: 0.32s; }
.album-card:nth-child(9)  { animation-delay: 0.36s; }
.album-card:nth-child(10) { animation-delay: 0.40s; }
.album-card:nth-child(11) { animation-delay: 0.44s; }
.album-card:nth-child(12) { animation-delay: 0.48s; }

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.album-card__cover-wrap {
  position: relative;
  overflow: hidden;
  background: var(--surface2);
}

.album-card__cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.album-card:hover .album-card__cover {
  transform: scale(1.04);
}

/* gold accent line slides up on hover */
.album-card__cover-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.album-card:hover .album-card__cover-wrap::after {
  transform: scaleX(1);
}

.album-card__info {
  padding: 0.9rem 1.1rem 1rem;
  border-top: 1px solid var(--border);
}

.album-card__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.album-card__meta {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.album-card__badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  text-transform: uppercase;
}

/* ── Album header ────────────────────────────────────────── */

.album-header {
  background: var(--navy);
  padding: 0;
  margin-bottom: 1.25rem;
  position: relative;
}

.album-header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light) 60%, transparent);
}

.album-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem 1.75rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  margin-bottom: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.back-link:hover { opacity: 1; }

.album-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.album-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.45rem;
  letter-spacing: 0.04em;
}

/* ── Photo grid ──────────────────────────────────────────── */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 3px;
  padding: 0 0 4rem;
  max-width: 1440px;
  margin: 0 auto;
}

.photo-grid__item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface2);
  position: relative;
}

.photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-grid__item:hover img {
  transform: scale(1.06);
}

.photo-grid__item--video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: white;
  background: rgba(12, 35, 64, 0.38);
  pointer-events: none;
  transition: background 0.2s;
}

.photo-grid__item--video:hover::after {
  background: rgba(12, 35, 64, 0.55);
}

/* ── Lightbox ────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(6, 10, 20, 0.97);
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
  animation: lbFadeIn 0.2s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lb-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.lb-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lb-media-wrap {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 82vh;
  animation: lbMediaIn 0.22s ease;
}

@keyframes lbMediaIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-media-wrap img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  user-select: none;
}

.lb-media-wrap video {
  max-width: 92vw;
  max-height: 82vh;
  display: block;
}

.lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  line-height: 1;
}

.lb-close:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(184,137,42,0.1);
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
  font-size: 1.6rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  user-select: none;
  line-height: 1;
}

.lb-prev:hover,
.lb-next:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(184,137,42,0.1);
}

.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

.lb-prev:disabled,
.lb-next:disabled {
  opacity: 0.15;
  cursor: default;
  pointer-events: none;
}

.lb-footer {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.75rem;
  align-items: center;
  pointer-events: auto;
  white-space: nowrap;
}

.lb-counter {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

.lb-download {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(184,137,42,0.45);
  padding: 0.35rem 1rem;
  border-radius: 2px;
  color: var(--gold-light);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.lb-download:hover {
  background: rgba(184,137,42,0.15);
  border-color: var(--gold-light);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .site-header__inner,
  .album-header__inner { padding: 1.5rem 1.25rem 1.25rem; }

  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 1rem 3rem;
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .lb-prev { left: 0.5rem; width: 2.5rem; height: 2.5rem; font-size: 1.2rem; }
  .lb-next { right: 0.5rem; width: 2.5rem; height: 2.5rem; font-size: 1.2rem; }
}

@media (max-width: 380px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
