:root {
  --bg: #0d0e12;
  --surface: #171922;
  --border: #2a2d3d;
  --accent: #6366f1;
  --text-main: #f3f4f6;
  --text-sub: #9ca3af;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  padding: 2rem 1rem;
}

.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.header h1 {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.header p {
  color: var(--text-sub);
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* Responsive Grid / Montage Layout */
.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
}

.hero-card {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .hero-card {
    grid-column: span 2;
  }
}

.img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #000;
  position: relative;
}

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

.caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-family: monospace;
  color: var(--text-sub);
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border);
}

/* Stylized CSS AI Edits & Presets */
.edit-cyber img {
  filter: contrast(160%) hue-rotate(190deg) saturate(220%) brightness(90%);
}

.edit-noir img {
  filter: grayscale(100%) contrast(220%) brightness(85%);
}

.edit-sepia img {
  filter: sepia(90%) contrast(110%) brightness(95%) saturate(140%);
}

.edit-thermal img {
  filter: invert(100%) hue-rotate(90deg) contrast(170%) saturate(300%);
}

.edit-glitch img {
  filter: saturate(350%) hue-rotate(290deg) drop-shadow(2px 2px 0px #ff0055);
}

.edit-acid img {
  filter: saturate(400%) hue-rotate(75deg) contrast(130%);
}

.edit-duotone {
  position: relative;
}

.edit-duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #1e1b4b, #ec4899);
  mix-blend-mode: screen;
  pointer-events: none;
}

.edit-duotone img {
  filter: grayscale(100%) contrast(130%);
}

.footer {
  text-align: center;
  margin-top: 3rem;
  color: var(--text-sub);
  font-size: 0.8rem;
}