/* =====================================
   CUSTOM JEWELRY PAGE
===================================== */

.jewelry-hero {
  min-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9rem 1.5rem 6rem;
  text-align: center;
}

.jewelry-hero-inner {
  width: min(850px, 100%);
  margin: 0 auto;
}

.jewelry-eyebrow,
.gallery-kicker {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
}

.jewelry-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  font-weight: 400;
}

.jewelry-gold-line {
  width: 65px;
  height: 1px;
  margin: 2rem auto;
  background: var(--gold-light, #c7a76b);
}

.jewelry-hero-copy {
  width: min(660px, 100%);
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
  opacity: 0.82;
}


/* =====================================
   GALLERY SECTION
===================================== */

.jewelry-gallery-section {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 5rem 2rem 9rem;
}

.jewelry-gallery-header {
  width: min(700px, 100%);
  margin: 0 auto 3.5rem;
  text-align: center;
}

.jewelry-gallery-header h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
}

.jewelry-gallery-header p {
  line-height: 1.8;
  opacity: 0.78;
}


/* =====================================
   FILTERS
===================================== */

.jewelry-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.gemstone-filters {
  margin-bottom: 1.25rem;
}

.type-filters {
  margin-bottom: 3.5rem;
}

.jewelry-filter-button {
  appearance: none;
  border: 1px solid rgba(199, 167, 107, 0.38);
  background: transparent;
  padding: 0.72rem 1.2rem;
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.jewelry-filter-button:hover,
.jewelry-filter-button.active {
  background: var(--gold-light, #c7a76b);
  border-color: var(--gold-light, #c7a76b);
  color: #111;
}


/* =====================================
   STATUS
===================================== */

.gallery-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#galleryTitle {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#galleryCount {
  font-size: 0.8rem;
  opacity: 0.55;
}


/* =====================================
   GRID
===================================== */

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

.jewelry-card {
  min-width: 0;
}

.jewelry-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
}

.jewelry-image-button img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.jewelry-card:hover
.jewelry-image-button img {
  transform: scale(1.025);
}

.jewelry-card-info {
  padding-top: 1.1rem;
}

.jewelry-card-status {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light, #c7a76b);
}

.jewelry-card-info h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 400;
}

.jewelry-card-info p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.62;
}


/* =====================================
   VIEW MORE
===================================== */

.gallery-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 4rem;
}

.gallery-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 1rem 1.6rem;
  border: 1px solid var(--gold-light, #c7a76b);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.gallery-more-button:hover {
  background: var(--gold-light, #c7a76b);
  color: #111;
}


/* =====================================
   LIGHTBOX
===================================== */

body.lightbox-open {
  overflow: hidden;
}

.jewelry-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: rgba(8, 8, 8, 0.96);
}

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

.lightbox-content {
  width: min(900px, 80vw);
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-details {
  padding-top: 1.5rem;
}

.lightbox-status {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold-light, #c7a76b);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lightbox-details h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 400;
}

.lightbox-details p {
  margin: 0;
  opacity: 0.65;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  border: 0;
  background: none;
  color: white;
  font-size: 2.2rem;
  font-weight: 200;
  cursor: pointer;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: white;
  font-size: 3.2rem;
  font-weight: 200;
  cursor: pointer;
  opacity: 0.65;
}

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

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}


/* =====================================
   TABLET
===================================== */

@media (max-width: 900px) {

  .jewelry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.25rem;
  }

}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 650px) {

  .jewelry-hero {
    min-height: 58vh;
    padding: 7rem 1.25rem 4rem;
  }

  .jewelry-gallery-section {
    padding: 4rem 1rem 6rem;
  }

  .jewelry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 0.7rem;
  }

  .jewelry-card-info h3 {
    font-size: 0.95rem;
  }

  .jewelry-card-info p {
    font-size: 0.72rem;
  }

  .jewelry-card-status {
    font-size: 0.56rem;
  }

  .jewelry-filter-button {
    padding: 0.62rem 0.85rem;
    font-size: 0.64rem;
  }

  .gallery-status {
    margin-top: 0.5rem;
  }

  .jewelry-lightbox {
    padding: 1rem;
  }

  .lightbox-content {
    width: 92vw;
  }

  .lightbox-prev {
    left: 0.3rem;
  }

  .lightbox-next {
    right: 0.3rem;
  }

}