:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-hover: #202733;
  --text: #f0f3f6;
  --muted: #9da7b3;
  --accent: #58a6ff;
  --border: rgba(255,255,255,.10);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13,17,23,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 750;
  letter-spacing: -.02em;
  font-size: 1.15rem;
}

.nav-link {
  color: var(--muted);
  transition: color .2s ease;
}

.nav-link:hover { color: var(--text); }

.hero {
  padding: 70px 0 36px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  padding-bottom: 60px;
}

.album-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  isolation: isolate;
}

.slideshow,
.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slideshow img {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .8s ease, transform 5s ease;
}

.slideshow img.active {
  opacity: 1;
  transform: scale(1.0);
}

.album-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
}

.album-info {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
}

.album-info h2 {
  margin: 0 0 5px;
  font-size: 1.45rem;
}

.album-info p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .92rem;
}

.album-page {
  padding: 48px 0 70px;
}

.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 25px;
}

.back-link:hover { color: var(--text); }

.album-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.album-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -.045em;
}

.album-heading p {
  margin: 0;
  color: var(--muted);
}

.slideshow-button {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 11px 17px;
  cursor: pointer;
}

.slideshow-button:hover { background: var(--surface-hover); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item:hover img { transform: scale(1.045); }

.empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0,0,0,.94);
}

.lightbox.open { display: flex; }

.lightbox-content {
  max-width: min(1100px, 86vw);
  max-height: 88vh;
  margin: 0;
  text-align: center;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 5px;
}

.lightbox-content figcaption {
  color: #c9d1d9;
  margin-top: 12px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  border: 0;
  color: white;
  background: rgba(255,255,255,.09);
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.7rem;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,.18);
}

@media (max-width: 700px) {
  .hero { padding-top: 45px; }
  .album-grid { grid-template-columns: 1fr; }
  .album-card { min-height: 280px; }
  .album-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }
  .lightbox { padding: 15px; }
  .lightbox-prev, .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}
