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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: #f8dfdb;
  color: #1a1a1a;
  line-height: 1.5;
}

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

/* ---- Header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #f8dfdb;
  border-bottom: 1px solid #e8c9c5;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
}

.logo {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.nav-links > li > a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  transition: color 0.15s;
}

.nav-links > li > a:hover { color: #777; }

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  background: #f8dfdb;
  border: 1px solid #e8c9c5;
  border-top: none;
  min-width: 180px;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: 0.65rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a1a;
  transition: background 0.15s;
}

.dropdown li a:hover { background: #eecfcb; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
  color: #1a1a1a;
}

/* ---- Page Title ---- */
.page-title {
  max-width: 1400px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.page-title h1 {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b09090;
}

/* ---- Gallery Grid ---- */
.gallery {
  max-width: 1400px;
  margin: 1.5rem auto 3rem;
  padding: 0 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eecfcb;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  transform: translateY(100%);
  transition: transform 0.2s ease;
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ---- Lightbox ---- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

#lightbox.active { display: flex; }

#lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  user-select: none;
}

.lb-caption {
  color: #ccc;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  min-height: 1.2em;
  text-align: center;
}

.lb-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.15s;
  background: none;
  border: none;
}

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

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.06);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 3.5rem;
  height: 6rem;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.lb-prev { left: 0.5rem; border-radius: 0 4px 4px 0; }
.lb-next { right: 0.5rem; border-radius: 4px 0 0 4px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.14); opacity: 1; }

.lb-counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #555;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

/* ---- Content Pages ---- */
.content-page {
  max-width: 680px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.content-page h1 {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b09090;
  margin-bottom: 2rem;
}

.content-page p {
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  color: #333;
}

/* ---- Contact Form ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d4b0ad;
  font-family: inherit;
  font-size: 0.9rem;
  color: #1a1a1a;
  outline: none;
  background: #fdf0ee;
  transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: #1a1a1a; }

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

.contact-form button {
  align-self: flex-start;
  padding: 0.7rem 2rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.contact-form button:hover { background: #444; }

.commission-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #eecfcb;
  border-left: 3px solid #d4b0ad;
}

.commission-note p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.7;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid #e8c9c5;
  text-align: center;
  padding: 2rem;
  color: #c0a0a0;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-top: 2rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }

  header { position: relative; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #f8dfdb;
    border-bottom: 1px solid #e8c9c5;
    padding: 0.5rem 0 1rem;
    gap: 0;
    align-items: stretch;
    z-index: 199;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-links > li > a { display: block; padding: 0.75rem 2rem; }

  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown {
    display: block;
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    background: #eecfcb;
  }

  .dropdown li a { padding-left: 3rem; }

  .lb-prev { left: 0; width: 3rem; height: 5rem; font-size: 1.3rem; }
  .lb-next { right: 0; width: 3rem; height: 5rem; font-size: 1.3rem; }
  #lightbox-img { max-width: 100vw; max-height: 75vh; }
}
