:root {
  --white: #ffffff;
  --near-black: #1c1c1c;
  --gray: #767676;
  --light-gray: #e5e5e5;
  --max-width: 1200px;
}

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

body {
  background-color: var(--white);
  color: var(--near-black);
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

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

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-name {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  font-size: 1rem;
  position: relative;
}

.site-nav a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- page content ---------- */

.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.gallery-page {
  padding-top: 0.75rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.page-intro {
  text-align: center;
  color: var(--near-black);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ---------- gallery grid ---------- */

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

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

@media (max-width: 550px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.gallery-item {
  cursor: pointer;
}

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

.gallery-item img {
  width: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.gallery-item:hover img {
  opacity: 0.85;
}

.gallery-item .item-info {
  padding-top: 0.75rem;
}

.gallery-item .item-title {
  font-size: 0.95rem;
  font-weight: 400;
}

.gallery-item .item-price {
  font-size: 0.9rem;
  color: var(--near-black);
  margin-top: 0.2rem;
}

.gallery-item .item-available {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}

.gallery-item .item-inquire {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--near-black);
  border-bottom: 1px solid var(--near-black);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}

.gallery-item .item-inquire:hover {
  opacity: 0.6;
}

/* ---------- lightbox ---------- */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--near-black);
  line-height: 1;
  padding: 0.5rem;
  touch-action: manipulation;
}

.lightbox-close:hover {
  opacity: 0.5;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  width: 100%;
  max-height: calc(100vh - 4rem);
}

.lightbox-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 12rem);
  object-fit: contain;
}

.lightbox-info {
  text-align: center;
  padding-top: 1.25rem;
  width: 100%;
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.lightbox-meta {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.3rem;
}

.lightbox-price {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.lightbox-inquire {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--near-black);
  border-bottom: 1px solid var(--near-black);
  padding-bottom: 1px;
}

.lightbox-inquire:hover {
  opacity: 0.6;
}

.lightbox-image-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  justify-content: center;
  flex: 1;
  min-height: 0;
}

.lightbox-arrow {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--near-black);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  opacity: 0.4;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  width: 3rem;
  text-align: center;
  touch-action: manipulation;
}

.lightbox-arrow.invisible {
  visibility: hidden;
}

.lightbox-arrow:hover {
  opacity: 1;
}

@media (max-width: 550px) {
  .lightbox-overlay {
    padding: 1rem;
    overflow-y: auto;
    background: var(--white);
  }

  .lightbox-content {
    max-width: 100%;
  }

  .lightbox-image-area {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  .lightbox-image-wrap {
    order: -1;
    width: 100%;
  }

  .lightbox-image-wrap img {
    max-width: 90vw;
    max-height: calc(100vh - 14rem);
  }

  .lightbox-arrow {
    width: auto;
    font-size: 2rem;
    padding: 0.5rem 2rem;
    margin-top: 0.5rem;
  }

  .lightbox-arrow.invisible {
    display: none;
  }
}

/* ---------- about page ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 364px 1fr;
  gap: 3rem;
  align-items: start;
}

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

  .about-photo {
    max-width: 364px;
  }
}

.about-photo img {
  width: 100%;
  object-fit: cover;
}

.about-content {
  max-width: 620px;
}

.about-content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.about-content p:last-of-type {
  margin-bottom: 2rem;
}

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

.about-links a {
  font-size: 0.95rem;
  border-bottom: 1px solid var(--near-black);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}

.about-links a:hover {
  opacity: 0.6;
}

/* ---------- contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 700px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info a {
  border-bottom: 1px solid var(--near-black);
  padding-bottom: 1px;
}

.contact-info a:hover {
  opacity: 0.6;
}

.contact-detail {
  color: var(--gray);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  margin-top: 1.25rem;
}

.contact-form label:first-child {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--light-gray);
  color: var(--near-black);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease;
}

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

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

.contact-form button {
  margin-top: 1.5rem;
  align-self: flex-start;
  padding: 0.75rem 2rem;
  background-color: var(--near-black);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.contact-form button:hover {
  opacity: 0.75;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
}

/* ---------- mobile nav ---------- */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--near-black);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 550px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1.25rem;
    border-bottom: 1px solid var(--light-gray);
  }

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

  .site-header {
    position: relative;
  }
}
