@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@200;300;400&display=swap');

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

/* === BASE === */
:root {
  --nav-h: 68px;
  --white: #ffffff;
  --black: #0f0f0f;
  --gray: #888888;
  --border: #e8e8e8;
  --font-ui: 'Jost', system-ui, -apple-system, sans-serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }

/* === NAV === */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 38px; display: block; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links > li > a,
.nav-links > li > span {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--black);
  transition: opacity 0.25s;
  white-space: nowrap;
  font-family: var(--font-ui);
}

.nav-links > li > a:hover { opacity: 0.45; }
.nav-links > li > span { cursor: default; }

/* Exhibitions dropdown */
.nav-exhibitions { position: relative; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  list-style: none;
  padding: 10px 0;
}

.nav-exhibitions:hover .nav-dropdown,
.nav-exhibitions:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 9px 20px 9px 36px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
}

.nav-dropdown li a:hover { color: var(--black); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 201;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-mobile.active { display: flex; }

.nav-mobile > a,
.nav-mobile .mobile-section > span {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--black);
  transition: opacity 0.2s;
}

.nav-mobile > a:hover { opacity: 0.45; }

.nav-mobile .mobile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.nav-mobile .mobile-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.nav-mobile .mobile-sub a {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
}

.nav-mobile .mobile-sub a:hover { color: var(--black); }

/* === HOME HERO === */
.hero {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* === FOOTER === */
.site-footer {
  padding: 40px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 20px;
}

.footer-socials a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.2s;
}

.footer-socials a:hover { opacity: 0.45; }

.footer-copy {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gray);
  text-transform: uppercase;
}

/* === INNER PAGES === */
.page-wrapper {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.page-header {
  padding: 60px 48px 44px;
}

.page-title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* === SELECTED WORK === */
.masonry {
  padding: 0 32px 96px;
  columns: 3 260px;
  column-gap: 10px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 10px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: opacity 0.35s;
}

.masonry-item:hover img { opacity: 0.82; }

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(88vw, 1000px);
}

.modal-img {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 0.2s;
}

.modal-img.fading { opacity: 0; }

.modal-caption {
  margin-top: 20px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  min-height: 1.2em;
  text-align: center;
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 32px;
  background: none;
  border: none;
  font-size: 30px;
  font-weight: 200;
  color: var(--black);
  line-height: 1;
  padding: 10px;
  opacity: 0.5;
  transition: opacity 0.2s;
  font-family: var(--font-ui);
}

.modal-close:hover { opacity: 1; }

.modal-prev,
.modal-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 44px;
  font-weight: 200;
  color: var(--black);
  padding: 16px 24px;
  opacity: 0.2;
  transition: opacity 0.2s;
  font-family: var(--font-ui);
  line-height: 1;
}

.modal-prev { left: 4px; }
.modal-next { right: 4px; }
.modal-prev:hover, .modal-next:hover { opacity: 0.65; }

/* === EXHIBITION PAGE === */
.exhibition-wrapper {
  padding-top: var(--nav-h);
}

.exhibition-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.exhibition-header {
  padding: 64px 0 52px;
  max-width: 680px;
}

.exhibition-title {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 36px;
  line-height: 1.3;
}

.exhibition-text {
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.95;
  font-weight: 400;
  color: #333;
}

.exhibition-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-bottom: 96px;
}

.exhibition-images img {
  width: 100%;
  height: auto;
  display: block;
}

/* === ABOUT PAGE === */
.about-wrapper {
  padding-top: var(--nav-h);
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: start;
  padding: 80px 0 96px;
}

.about-photo img {
  width: 100%;
  height: auto;
}

.about-text { padding-top: 4px; }

.about-name {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 44px;
}

.about-bio p {
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.95;
  color: #333;
  margin-bottom: 28px;
}

.about-bio p:last-child { margin-bottom: 0; }

/* === CONTACT PAGE === */
.contact-wrapper {
  padding-top: var(--nav-h);
  max-width: 580px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
  padding-bottom: 96px;
}

.contact-header {
  padding: 80px 0 52px;
}

.contact-title {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.contact-intro {
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 52px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.contact-link:hover { opacity: 0.5; }

.contact-link-label {
  color: var(--gray);
  min-width: 76px;
  font-size: 9.5px;
  letter-spacing: 0.22em;
}

.contact-link-value {
  color: var(--black);
}

/* === EXHIBITIONS INDEX === */
.exhibitions-grid {
  padding: 0 48px 96px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1000px;
}

.exhibition-card {
  display: block;
  overflow: hidden;
  position: relative;
}

.exhibition-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: opacity 0.35s;
}

.exhibition-card:hover img { opacity: 0.82; }

.exhibition-card-title {
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .site-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .page-header { padding: 44px 24px 28px; }

  .masonry { padding: 0 16px 64px; columns: 2 200px; }

  .about-wrapper { padding-left: 24px; padding-right: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 64px; }

  .exhibition-inner { padding: 0 24px; }
  .exhibition-images { grid-template-columns: 1fr; }

  .exhibitions-grid { padding: 0 24px 64px; grid-template-columns: 1fr; }

  .contact-wrapper { padding-left: 24px; padding-right: 24px; }

  .site-footer { padding: 32px 24px; }
}

@media (max-width: 520px) {
  .masonry { columns: 1; padding: 0 12px 48px; }
  .modal-prev, .modal-next { display: none; }
  .site-nav { padding: 0 16px; }
  .nav-logo img { height: 38px; }
}
