/* ===========================
   Base & Reset
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #faf9f7;
  --bg-alt: #f2efe9;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --accent: #2a2a2a;
  --accent-light: #c9a87c;
  --border: #e0ddd7;
  --nav-height: 64px;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.3s ease;
  --radius: 2px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

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

img { display: block; width: 100%; }

/* ===========================
   Navigation
=========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

#navbar.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
  }

  .nav-links.open { display: flex; }
}

/* ===========================
   Hero
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
  position: relative;
  background: var(--bg);
}

.hero-sub {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 2.5rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: var(--text-muted);
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===========================
   Button
=========================== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius);
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

/* ===========================
   Sections
=========================== */
.section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.section-title.left {
  text-align: left;
}

/* ===========================
   Gallery Filter
=========================== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 0.4rem 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--text);
  color: var(--text);
  background: var(--text);
  color: var(--bg);
}

/* ===========================
   Gallery Grid
=========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
}

.gallery-item.hidden {
  display: none;
}

.load-more-wrap {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  min-width: 160px;
}

.gallery-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  overflow: hidden;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.gallery-img span {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(20,20,20,0.7) 0%, transparent 100%);
  color: #fff;
  transform: translateY(4px);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.item-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
}

.item-year {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-top: 0.2rem;
}

/* ===========================
   Lightbox
=========================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 600px;
  width: 90%;
}

.lightbox-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img span {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: rgba(255,255,255,0.4);
}

.lightbox-info {
  text-align: center;
  color: #fff;
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
}

.lightbox-year {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-top: 0.25rem;
}

.lightbox-size {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0.4;
  margin-top: 0.15rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.1);
}

.lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ===========================
   About
=========================== */
.about-section {
  background: var(--bg-alt);
  max-width: 100%;
  padding: 6rem 2rem;
}

.about-inner {
  max-width: 700px;
  margin: 0 auto;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-text .btn {
  margin-top: 1rem;
}


/* ===========================
   Contact
=========================== */
.contact-section {
  text-align: center;
}

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.contact-form {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-light);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form .btn {
  align-self: flex-start;
}

.form-status {
  font-size: 0.85rem;
  color: var(--accent-light);
  min-height: 1.2em;
}

/* ===========================
   Exhibitions
=========================== */
.exhibitions-section {
  background: var(--bg-alt);
}

.exhibitions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .exhibitions-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.exhibit-group-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.exhibit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exhibit-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.exhibit-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.exhibit-meta {
  font-size: 0.8rem;
  color: var(--accent);
  font-style: italic;
}

.exhibit-venue {
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.55;
  line-height: 1.5;
}

.contact-email-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-email-link:hover {
  border-color: var(--accent);
}

/* ===========================
   Footer
=========================== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

/* ===========================
   Fade-in animation
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
