@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --black: #000; --white: #fff; --accent: #c8a96e; --gray: #888; --typo: 'Inter', sans-serif; }
body { font-family: var(--typo); background: var(--white); color: var(--black); min-height: 100vh; display: flex; flex-direction: column; }

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.site-title {
  font-family: var(--typo);
  font-size: clamp(1.7rem, 4.5vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--black);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.hamburger {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: none; border: none; padding: 4px;
  z-index: 200; position: relative; flex-shrink: 0;
}
.hamburger svg { width: 28px; height: 28px; display: block; }
.hamburger .bar { fill: none; stroke: #000; stroke-width: 2.5; stroke-linecap: round; transition: all 0.35s cubic-bezier(.77,0,.175,1); transform-origin: center; }
.hamburger.open .bar1 { transform: translateY(8px) rotate(45deg); }
.hamburger.open .bar2 { opacity: 0; }
.hamburger.open .bar3 { transform: translateY(-8px) rotate(-45deg); }

nav.overlay {
  position: fixed; inset: 0; background: var(--white);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start;
  gap: 28px; z-index: 500; opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
  padding: 48px;
}
nav.overlay.open { opacity: 1; pointer-events: all; }
.nav-close {
  position: absolute; top: 26px; right: 28px;
  background: none; border: none; color: var(--black);
  font-size: 2.4rem; cursor: pointer; opacity: 0.7; line-height: 1;
  z-index: 600; padding: 6px;
}
.nav-close:hover { opacity: 1; color: var(--accent); }
nav.overlay a {
  font-family: var(--typo);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 400;
  color: var(--black); text-decoration: none; cursor: pointer;
  transition: color 0.2s; position: relative;
}
nav.overlay a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
nav.overlay a:hover { color: var(--accent); }
nav.overlay a:hover::after { width: 100%; }

/* ── Home sections (Featured / Recent Artworks) ── */
.home-section { padding: 32px 40px 0; max-width: 1400px; margin: 0 auto; width: 100%; }
.home-section:last-of-type { padding-bottom: 20px; }
.home-section h2 { font-family: var(--typo); font-weight: 400; font-size: clamp(1.3rem, 3vw, 1.9rem); margin-bottom: 18px; color: var(--black); }

/* Large page title, same size/font as .page-section h2 (About/Exhibitions), reusable outside .page-section */
.page-title-lg { font-family: var(--typo); font-size: clamp(2rem,4vw,3rem); font-weight: 400; color: var(--black); margin-bottom: 40px; }

/* ── Gallery grid (used on home + artworks page) ── */
.gallery {
  flex: 1;
  padding: 24px 40px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  background: var(--white);
}
.home-section .gallery { padding: 0 0 40px; }

.artwork { cursor: pointer; }
a.artwork { text-decoration: none; color: inherit; display: block; }
.artwork img { display: block; width: 100%; height: auto; }
.artwork-caption { padding: 8px 2px 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; }
.artwork-caption h4 { font-family: var(--typo); font-size: 0.85rem; font-weight: 500; color: var(--black); }
.artwork-caption span { font-size: 0.75rem; color: var(--gray); letter-spacing: 0.04em; }
.artwork-tech { padding: 2px 2px 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; }
.artwork-tech span { font-size: 0.72rem; color: var(--gray); letter-spacing: 0.03em; }
.artwork-tech span:first-child { text-transform: lowercase; }

.bio-photo-wrap { margin-bottom: 32px; display: flex; justify-content: center; }
.bio-photo-wrap img { max-width: 280px; width: 100%; height: auto; object-fit: contain; border-radius: 4px; display: block; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0;
  background: #6b6b6b;
  z-index: 800;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  padding: 60px 8vw;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 100%;
}

.lightbox img {
  max-width: 56vw; max-height: 74vh;
  object-fit: contain; display: block;
}

.lightbox-dots-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
}
.lightbox-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-dot.active { background: #ffffff; transform: scale(1.2); }

.lightbox-caption {
  text-align: left; color: #ffffff;
  display: flex; flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-width: 200px; max-width: 280px;
  flex-shrink: 0;
}
.lightbox-caption h3 { font-family: var(--typo); font-size: 1rem; font-weight: 500; margin-bottom: 5px; color: #ffffff; }
.lightbox-caption p { font-size: 0.88rem; color: rgba(255,255,255,0.75); letter-spacing: 0.04em; }

.lb-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.lb-meta span { font-size: 0.72rem; color: rgba(255,255,255,0.55); letter-spacing: 0.06em; }

.lb-info {
  display: flex; align-items: baseline; gap: 5px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  letter-spacing: 0.06em;
}
.lb-info-icon {
  flex-shrink: 0;
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.4rem; font-style: italic; font-weight: 600;
  color: var(--white); line-height: 1;
  position: relative; top: -1px;
}

.lb-shop-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}
.lb-sold {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: #ffffff; color: #222;
  border: none; padding: 3px 10px;
}
.lb-for-sale {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 3px 10px;
}

.lightbox-close {
  position: absolute; top: 52px; right: 28px;
  background: none; border: none; color: #ffffff;
  font-size: 2.2rem; cursor: pointer; opacity: 0.7; line-height: 1;
  z-index: 10000;
}
.lightbox-close:hover { opacity: 1; }

/* ── Static pages (About / Exhibitions) ── */
.page-section { min-height: calc(100vh - 80px); padding: 60px 48px 80px; max-width: 820px; margin: 0 auto; width: 100%; background: var(--white); }
.page-section h2 { font-family: var(--typo); font-size: clamp(2rem,4vw,3rem); font-weight: 400; margin-bottom: 48px; color: var(--black); }
.page-section p { font-size: 1rem; line-height: 1.85; color: #333; margin-bottom: 18px; }

.expo-item { border-left: 3px solid var(--black); padding: 10px 0 10px 20px; margin-bottom: 32px; background: var(--white); }
.expo-item .year { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--black); margin-bottom: 5px; }
.expo-item h3 { font-family: var(--typo); font-size: 1.1rem; margin-bottom: 4px; color: var(--black); }
.expo-item p { font-size: 0.9rem; color: var(--black); margin: 0; }

.cv-download {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 8px; font-size: 0.85rem;
  color: var(--black); text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.cv-download:hover { color: var(--accent); border-color: var(--accent); }
.cv-download svg { width: 13px; height: 13px; fill: currentColor; }

footer {
  background: var(--white); color: var(--black);
  padding: 32px 48px 24px;
  display: flex; flex-direction: column; align-items: stretch; gap: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.footer-top { display: flex; align-items: center; gap: 20px; }
.footer-instagram a,
.footer-email a {
  color: var(--black); display: flex; align-items: center;
  transition: color 0.2s; text-decoration: none;
}
.footer-instagram a:hover,
.footer-email a:hover { color: var(--accent); }
.footer-instagram svg { width: 22px; height: 22px; fill: currentColor; }
.footer-email svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-copy { font-size: 0.68rem; color: var(--black); opacity: 1; letter-spacing: 0.06em; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); padding: 20px 20px 40px; gap: 16px; }
  .home-section { padding: 24px 20px 0; }
  .home-section .gallery { padding: 0 0 32px; }
  header { padding: 18px 24px; }
  footer { padding: 24px; }
  .page-section { padding: 40px 24px 60px; }
  nav.overlay { padding: 40px 24px 48px; }
  .lightbox { flex-direction: column; align-items: flex-start; justify-content: center; padding: 60px 6vw 40px; gap: 20px; }
  .lightbox img { max-width: 88vw; max-height: 50vh; }
  .lightbox-caption { max-width: 100%; min-width: 0; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; gap: 12px; }
}
