/* ============================================================
   MoonCress — Gallery Page styles
   Scoped entirely under .gallery-* classes.
   ============================================================ */

/* ---------- Hero ---------- */
.gallery-hero {
  position: relative;
  height: clamp(420px, 59vw, 850px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(
      to bottom,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.35) 35%,
      rgba(255,255,255,.75) 65%,
      rgba(255,255,255,1) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.gallery-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gallery-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(1.08) contrast(.95) saturate(.85);
}

.gallery-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(245, 243, 238, 0) 0%,
      rgba(245, 243, 238, 0.55) 60%,
      rgba(255, 255, 255, 0.2) 100%
  );
}

.gallery-hero__content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 24px 48px;
  max-width: 1100px;
}

.gallery-hero__eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #3D1705;
  margin-bottom: 26px;
}

.gallery-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: #3d1705;
  margin: 0;
}

.gallery-hero__label {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #111111;
}

/* ---------- Grid ---------- */
.gallery-grid-section {
  background: #fcfcfc;
  padding: 78px 0;
}

.gallery-container {
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 24px;
}

.gallery-grid {
  display: grid;
  gap: 24px;
}

.gallery-grid + .gallery-grid {
  margin-top: 24px;
}

.gallery-grid--a,
.gallery-grid--c {
  grid-template-columns: 1280fr 2240fr 1278fr;
}

.gallery-grid--b {
  grid-template-columns: 1536fr 1536fr 1782fr;
}

.gallery-grid--d {
  grid-template-columns: 2240fr 1280fr 1326fr;
}

.gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item--wide-a {
  aspect-ratio: 2240 / 1284;
}

.gallery-item--narrow {
  aspect-ratio: 1280 / 1284;
}

.gallery-item--med {
  aspect-ratio: 1536 / 1272;
}

.gallery-item--med-wide {
  aspect-ratio: 1782 / 1272;
}

.gallery-item--wide-d {
  aspect-ratio: 2240 / 1284;
}

.gallery-item--narrow-d {
  aspect-ratio: 1326 / 1284;
}

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

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

/* ---------- Quote ---------- */
.gallery-quote {
  background: #faf5f0;
  padding: 84px 24px 82px;
  text-align: center;
}

.gallery-quote__icon {
  width: 33px;
  height: 33px;
  color: var(--color-gold);
  margin: 0 auto 28px;
  display: block;
}

.gallery-quote__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-quote__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(21px, 2.2vw, 31px);
  font-weight: 500;
  line-height: 1.38;
  color: #411c0a;
  max-width: 700px;
  margin: 0 auto;
}

.gallery-quote__author {
  display: block;
  margin-top: 27px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b58c4a;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gallery-grid {
    gap: 16px;
  }

  .gallery-grid + .gallery-grid {
    margin-top: 16px;
  }

  .gallery-grid-section {
    padding: 56px 0;
  }
}

@media (max-width: 720px) {
  .gallery-grid--a,
  .gallery-grid--b,
  .gallery-grid--c,
  .gallery-grid--d {
    grid-template-columns: 1fr;
  }

  .gallery-item--narrow,
  .gallery-item--narrow-d {
    aspect-ratio: 4 / 3;
  }

  .gallery-item--med,
  .gallery-item--med-wide {
    aspect-ratio: 4 / 3;
  }

  .gallery-item--wide-a,
  .gallery-item--wide-d {
    aspect-ratio: 16 / 10;
  }

  .gallery-hero {
    height: clamp(380px, 78vw, 520px);
  }

  .gallery-hero__eyebrow {
    font-size: 12px;
    letter-spacing: 0.3em;
    margin-bottom: 18px;
  }

  .gallery-hero__label {
    margin-top: 16px;
    font-size: 15px;
  }

  .gallery-hero__content {
    padding-bottom: 36px;
  }

  .gallery-quote {
    padding: 60px 24px;
  }

  .gallery-quote__icon {
    margin-bottom: 20px;
  }

  .gallery-quote__author {
    margin-top: 20px;
  }
}
