:root {
  --bg: #f6f7fb;
  --text: #1f2937;
  --surface: #ffffff;
  --primary: #2563eb;
  --muted: #4b5563;
  --border: #d1d5db;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.theme-button,
.button {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin: 0 0 1rem;
}

.hero p {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 24rem;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card h2 {
  margin-top: 0;
}

.gallery-hero {
  padding: 3rem 0 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.gallery-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.85);
  padding: 2rem;
  z-index: 100;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: min(90vw, 900px);
  max-height: 75vh;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #f8fafc;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-locked {
  overflow: hidden;
}

.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
}

.dark-theme {
  --bg: #121827;
  --text: #f8fafc;
  --surface: #1f2937;
  --primary: #60a5fa;
  --muted: #cbd5e1;
  --border: #334155;
}

.home-page {
  background-image: linear-gradient(rgba(246, 247, 251, 0.88), rgba(246, 247, 251, 0.88)),
    url("ArtSamples/Orage Rose.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-page.dark-theme {
  background-image: linear-gradient(rgba(18, 24, 39, 0.88), rgba(18, 24, 39, 0.88)),
    url("ArtSamples/Orage Rose.JPG");
}
