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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #111;
  color: #e0e0e0;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
header {
  padding: 2rem 1.5rem 1rem;
  text-align: center;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: lowercase;
}

.site-title a:hover {
  opacity: 0.6;
}

/* Back to gallery link */
.back-to-gallery {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #999;
  transition: color 0.2s;
}

.back-to-gallery:hover {
  color: #e0e0e0;
}

/* Intro */
.intro {
  max-width: 480px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #aaa;
  text-align: center;
}

/* Shop Link (below intro) */
.shop-link {
  text-align: center;
  margin-bottom: 2rem;
}

.shop-link a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #e67e22;
  transition: color 0.2s;
}

.shop-link a:hover {
  color: #f39c12;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  border-top: 1px solid #333;
  margin-top: 1rem;
}

footer a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #777;
  transition: color 0.2s;
}

footer a:hover {
  color: #e67e22;
}

/* Gallery Grid — Home */
.gallery-grid {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.gallery-item {
  cursor: pointer;
  overflow: hidden;
  background: #222;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.gallery-item:hover img {
  opacity: 0.8;
}

.empty-state {
  text-align: center;
  color: #999;
  padding: 4rem 1rem;
  font-size: 0.9rem;
}

/* Detail View — Art Page */
.detail-view {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.artwork-container {
  width: 100%;
  text-align: center;
}

.artwork-img {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  margin: 0 auto;
}

.artwork-info {
  margin-top: 1.5rem;
  text-align: center;
}

.artwork-info h2 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.artwork-info p {
  font-size: 0.85rem;
  color: #999;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Navigation — prev / newest / next */
.artwork-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  width: 100%;
  max-width: 400px;
}

.nav-btn {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #999;
  transition: color 0.2s;
}

.nav-btn:hover {
  color: #e0e0e0;
}

.nav-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    padding: 0.75rem 1rem 2rem;
  }

  header {
    padding: 1.5rem 1rem 0.75rem;
  }
}
