/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #101010;
  --bg-elevated: #1a1a1a;
  --text: #f5f5f5;
  --muted: #a0a0a0;
  --accent: #f0f0f0; /* light gray – matches dark theme */
}

body {
  background: radial-gradient(circle at top, #202020 0, var(--bg) 42%);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  animation: fadePage 0.7s ease-out;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: #ffffff;
  opacity: 0.9;
}

/* TOP BAR */
.top-bar {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.menu-icon {
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
}
.menu-icon::before { top: -6px; }
.menu-icon::after  { top:  6px; }

/* LAYOUT */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 40px 60px;
}

/* HEADLINE */
.headline {
  margin-bottom: 40px;
}
.headline p {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--muted);
}
.headline a {
  display: inline-block;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

/* ALBUM CARDS (index.html) */
.album-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.album-card {
  background: rgba(26, 26, 26, 0.9);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  transform: translateY(10px);
  opacity: 0;
  animation: floatIn 0.7s ease-out forwards;
}

.album-card:nth-child(1) { animation-delay: 0.05s; }
.album-card:nth-child(2) { animation-delay: 0.15s; }
.album-card:nth-child(3) { animation-delay: 0.25s; }
.album-card:nth-child(4) { animation-delay: 0.35s; }

.album-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.album-thumb img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.album-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.album-card:hover .album-thumb img {
  transform: scale(1.08);
}

.album-card:hover .album-thumb::after {
  opacity: 1;
}

.album-info {
  margin-top: 12px;
}
.album-info h3 {
  font-size: 17px;
  margin-bottom: 4px;
}
.album-info p {
  font-size: 13px;
  color: var(--muted);
}

/* GALLERY (album pages) */
.album-title {
  font-size: 26px;
  margin-bottom: 25px;
  font-weight: 500;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
  cursor: zoom-in;
  transform: translateY(18px);
  opacity: 0;
  animation: floatIn 0.8s ease-out forwards;
}

.gallery-item:nth-child(odd) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(even) {
  animation-delay: 0.2s;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item::after {
  content: "View";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -30%);
  opacity: 0;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.5);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.85);
}
.gallery-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* optional sizes */
.gallery-item.tall {
  grid-row: span 2;
}
.gallery-item.wide {
  grid-column: span 2;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.9);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  font-size: 32px;
  cursor: pointer;
  color: var(--text);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
}

/* VIDEO GRID (video album) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.video-card {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
  transform: translateY(14px);
  opacity: 0;
  animation: floatIn 0.7s ease-out forwards;
}

.video-card iframe,
.video-card video {
  width: 100%;
  height: 210px;
  border: none;
  border-radius: 10px;
}

.video-title {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* ANIMATIONS */
@keyframes fadePage {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatIn {
  0%   { opacity: 0; transform: translateY(25px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .top-bar {
    padding: 18px 18px;
  }
  .main {
    padding: 24px 18px 40px;
  }
  .headline p {
    font-size: 22px;
  }
  .headline a {
    font-size: 18px;
  }
  .lightbox img {
    max-width: 96%;
  }
}
