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

:root {
  --bg: #1f1f23;
  --panel: #2a2a2f;
  --fg: #ffffff;
  --muted: #b8b8b8;
  --border: #3a3a40;
  --accent: #d4d4ff;       /* soft lavender accent */
  --link: #8ca6db;         /* soothing light blue-gray link color */
  --link-hover: #a7bce2;   /* slightly lighter on hover */
}

a,
a:visited {
  color: #ffffff;
  text-decoration: underline;
  transition: opacity 0.25s ease;
}

a:hover,
a:active {
  opacity: 0.8;
}

/* Ensure header links follow the same style */
.links a,
.links a:visited {
  color: #ffffff !important;
  text-decoration: underline;
}

.links a:hover,
.links a:active {
  opacity: 0.8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 2rem 0;
}

.site-header h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--fg);
}

.subtitle {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 1rem;
}

/* Navigation */
/* Base styles */
.category-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem;
  z-index: 50;
}

/* Mobile collapsible toggle */
.mobile-filter-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  width: 95%;
  margin: 1rem auto;
  text-align: center;
}

/* Hide filter buttons by default on mobile */
@media (max-width: 600px) {
  .category-nav {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.5rem;
    border-radius: 6px;
  }

  .mobile-filter-toggle {
    display: block;
  }
}
/* Buttons */
.category-nav button {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  font-size: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-nav button:hover,
.category-nav button.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* Desktop: horizontal row */
@media (min-width: 601px) {
  .category-nav {
    bottom: 0;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    border-radius: 6px 6px 0 0;
    background: var(--panel);
    backdrop-filter: none;
  }

  .category-nav button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }
}

/* Mobile: wrap buttons neatly, compact */
@media (max-width: 600px) {
  .category-nav {
    flex-wrap: wrap;
  }

  .category-nav button {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    margin: 0;
  }
}

/* Section titles */
.category h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--accent);
}

/* Gallery */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

figure {
  margin: 0;
  position: relative;
}

img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #121214;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

img:hover {
  transform: scale(1.015);
  opacity: 0.95;
}

figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
#lightbox .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  cursor: pointer;
  z-index: 1001;
}

#lightbox img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 92%;
  max-height: 85%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7);
  object-fit: contain;
  z-index: 1002;
}

#lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #ccc;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 1rem;
  z-index: 1003;
  transition: color 0.25s;
}

#lightbox .prev { left: 1rem; }
#lightbox .next { right: 1rem; }

#lightbox .nav:hover { color: #fff; }

#lightbox .caption {
  position: absolute;
  bottom: 2rem;
  width: 100%;
  text-align: center;
  color: var(--fg);
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  z-index: 1004;
}

body.lightbox-open {
  overflow: hidden;
}

details {
  margin-bottom: 1em;
  cursor: pointer;
}

summary {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.5em;
}

details[open] summary {
  color: #0077cc;
}


main.container {
  padding-top: 2rem;     /* existing top padding */
  padding-bottom: 6rem;  /* extra space for floating nav */
}

