:root {
  --bg: #fff;
  --fg: #111;
  --muted: #666;
  --gap: 18px;
  --max: 1200px;
  --card-radius: 8px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.36;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-header {
  max-width: var(--max);
  width: 100%;
  padding: 28px 20px;
  text-align: center;
}
.brand {
  margin: 0;
  font-size: clamp(20px, 4vw, 32px);
  letter-spacing: 0.02em;
}
.tag {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Gallery grid */
.gallery {
  display: grid;
  gap: var(--gap);
  padding: 20px;
  max-width: var(--max);
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Card */
.card {
  margin: 0;
  list-style: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--card-radius);
}
.card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
  will-change: transform;
}
.card:hover img {
  transform: scale(1.03);
}
.card figcaption {
  padding: 10px 6px;
  font-size: 14px;
  color: var(--muted);
  text-align: left;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
#lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
#lb-img {
  max-width: 95vw;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
#lb-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
#lb-caption {
  color: #ddd;
  font-size: 14px;
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.artist-profile {
  max-width: 900px;
  width: 96%;
  margin: auto;
  padding: 20px;
  text-align: center;
}
.artist-profile h1 {
  font-size: clamp(18px, 4vw, 28px);
  margin: 0 0 12px;
}
.artist-profile p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.5;
  font-size: 16px;
}
.artist-profile li {
  list-style: none;
}

/* Hero slideshow */
.hero {
  width: 100%;
  max-width: var(--max);
  margin: 0 20px 24px;
  height: clamp(
    55vh,
    85vh,
    95vh
  ); /* nearly full screen on large, smaller on mobile */
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}
@media (max-width: 520px) {
  .hero {
    height: 60vh;
    margin: 0;
  } /* full-width feel on small screens */
}

.slides {
  height: 100%;
  position: relative;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2));
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  backdrop-filter: blur(4px);
}

/* reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }
}
