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

:root {
  --color-bg: #e8f5e8;
  --color-content-bg: rgba(210, 237, 210, 0.95);
  --color-text: #333;
  --color-heading: #2d5a27;
  --color-accent: #2d5a27;
  --color-accent-light: #4a7c43;
  --color-muted: #666;
  --color-border: #d4e4d4;
  --color-sold: #c00;
  --max-width: 1100px;
  --sidebar-width: 160px;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--color-accent-light);
}

/* Header */
.header {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.3)
  );
}
.header-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 20px 20px;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.header h1 {
  font-size: 2.2rem;
  font-style: italic;
  font-weight: normal;
  font-family: Georgia, "Times New Roman", serif;
}
.header h1 a {
  color: inherit;
  text-decoration: none;
}
.header .subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 5px;
  opacity: 0.9;
}

/* Layout with sidebar */
.layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 30px;
  padding: 20px;
  min-height: 500px;
}

/* Sidebar navigation */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  order: 2;
  padding: 20px 0;
  background: var(--color-content-bg);
  border-left: 1px solid var(--color-border);
  padding-left: 20px;
}
.sidebar a {
  display: block;
  padding: 8px 0;
  color: var(--color-text);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}
.sidebar a:hover {
  color: var(--color-accent);
  text-decoration: none;
}
.sidebar a.active {
  color: var(--color-accent);
  font-weight: 600;
}

/* Main content */
.main {
  flex: 1;
  background: var(--color-content-bg);
  padding: 25px;
  border-radius: 3px;
}

/* About page */
.about h1 {
  color: var(--color-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: normal;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.about-content {
  max-width: 650px;
  line-height: 1.8;
}
.about-content p {
  margin-bottom: 1em;
}
.about hr {
  margin: 25px 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.featured {
  display: grid;
  gap: 25px;
  margin: 25px 0;
}
.featured-item {
  display: grid;
  gap: 12px;
}
.featured-item img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border: 1px solid var(--color-border);
}
.featured-item figcaption strong {
  display: block;
  margin-bottom: 5px;
  color: var(--color-heading);
}
.featured-item figcaption p {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.updates {
  margin-top: 25px;
}
.updates h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-heading);
}
.updates ul {
  list-style: none;
}
.updates li {
  padding: 4px 0;
}

/* Gallery */
.gallery-page h1 {
  color: var(--color-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: normal;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.gallery {
  column-count: 4;
  column-gap: 15px;
}

.artwork {
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--color-border);
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 15px;
  transition: box-shadow 0.2s;
}
.artwork:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.artwork img {
  width: 100%;
  height: auto;
  display: block;
}
.artwork figcaption {
  padding: 10px;
  font-size: 0.8rem;
  background: #fafcfa;
}
.artwork figcaption strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--color-heading);
}
.artwork .dims,
.artwork .materials {
  display: block;
  color: var(--color-muted);
  font-size: 0.75rem;
}
.artwork .price {
  display: inline-block;
  margin-top: 4px;
  font-weight: bold;
  color: var(--color-accent);
}
.artwork .status {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--color-muted);
}
.artwork .status.sold {
  color: var(--color-sold);
}

/* Contact */
.contact-page h1 {
  color: var(--color-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: normal;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.contact-page {
  max-width: 550px;
}
.contact-content p {
  margin-bottom: 1em;
}
.contact-info {
  background: #fff;
  padding: 15px;
  border: 1px solid var(--color-border);
  margin: 15px 0;
}

/* Footer */
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  padding: 20px;
  color: var(--color-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 40, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 3px solid #4a7c43;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}
.lightbox-close:hover {
  color: #ccc;
}
#lightbox-caption {
  color: #fff;
  margin-top: 15px;
  font-size: 0.95rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 1000px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 800px) {
  .layout {
    flex-direction: column;
    gap: 0;
  }
  .sidebar {
    order: 0;
    width: 100%;
    border-left: none;
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .sidebar a {
    border-bottom: none;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    font-size: 0.8rem;
  }
  .header {
    height: 140px;
  }
  .header-content {
    padding-top: 50px;
  }
  .header h1 {
    font-size: 1.7rem;
  }
  .gallery {
    column-count: 2;
    column-gap: 10px;
  }
  .artwork {
    margin-bottom: 10px;
  }
}
