/* ==========================================================================
   Homepage — 9/14 still-hero exhibition
   Scoped to The Gallery template.
   ========================================================================== */

.page-template-template-gallery {
  --lbv-home-cream: #f7f1e6;
  --lbv-home-ivory: #f2e8e0;
  --lbv-home-card: #f0e4d9;
  --lbv-home-ink: #1c1814;
  --lbv-home-ink-soft: #5c5146;
  --lbv-home-gold: #b08a4a;
  --lbv-home-line: rgba(176, 138, 74, 0.35);
  background: var(--lbv-home-ivory);
  color: var(--lbv-home-ink);
}

.page-template-template-gallery .lbv-main {
  overflow-x: clip;
}

.lbv-home-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 72px);
}

/* ---------- Buttons ---------- */

.lbv-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.lbv-home-btn--fill {
  background: #111;
  color: #f7f1e6;
  border: 1px solid #111;
}
.lbv-home-btn--fill:hover {
  background: #2a2420;
  color: #fff;
  border-color: #2a2420;
}

.lbv-home-btn--ghost {
  background: rgba(251, 246, 238, 0.82);
  color: var(--lbv-home-ink);
  border: 1px solid var(--lbv-home-gold);
}
.lbv-home-btn--ghost:hover {
  background: #fbf6ee;
  color: var(--lbv-home-ink);
  border-color: #8d7042;
}

.lbv-home-btn--outline {
  background: transparent;
  color: var(--lbv-home-ink);
  border: 1px solid var(--lbv-home-gold);
}
.lbv-home-btn--outline:hover {
  background: var(--lbv-home-ink);
  color: var(--lbv-home-ivory);
  border-color: var(--lbv-home-ink);
}

/* ---------- Hero ---------- */

.lbv-home-hero {
  position: relative;
  isolation: isolate;
  background: #d9c9b0;
  width: 100%;
  height: clamp(420px, calc(100vw * 919 / 1711), 78vh);
  display: flex;
  align-items: flex-start;
}

.lbv-home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.lbv-home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.lbv-home-hero__copy {
  position: relative;
  z-index: 1;
  width: min(40%, 26.5rem);
  margin-left: calc(3rem + clamp(56px, 9.2vw, 152px));
  margin-top: clamp(36px, 4.6vw, 64px);
  color: var(--lbv-home-ink);
}

.lbv-home-hero__display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 4.6vw, 4.35rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lbv-home-ink);
}
.lbv-home-hero__display span {
  display: block;
}

.lbv-home-hero__lede {
  margin: 20px 0 0;
  font-family: var(--font-text);
  font-size: clamp(1.05rem, 1.28vw, 1.22rem);
  line-height: 1.5;
  color: var(--lbv-home-ink);
  max-width: 18em;
}

.lbv-home-hero__actions {
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.lbv-home-hero__actions .lbv-home-btn {
  min-width: 17.5rem;
  min-height: 48px;
  padding: 14px 32px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}
.lbv-home-hero__actions .lbv-home-btn--outline {
  background: transparent;
  border-color: rgba(176, 138, 74, 0.85);
}
.lbv-home-hero__actions .lbv-home-btn--outline:hover {
  background: rgba(251, 246, 238, 0.28);
  color: var(--lbv-home-ink);
  border-color: var(--lbv-home-gold);
}

/* ---------- Mother band ---------- */

.lbv-home-mother {
  --lbv-mother-bg: #f2e8e0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  min-height: min(46vw, 540px);
  background: var(--lbv-mother-bg);
  overflow: hidden;
}

.lbv-home-mother__media {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  overflow: hidden;
  min-height: 280px;
  position: relative;
}
.lbv-home-mother__media picture,
.lbv-home-mother__media img {
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.lbv-home-mother__media img {
  object-fit: cover;
}
.lbv-home-mother__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(242, 232, 224, 0) 42%,
    rgba(242, 232, 224, 0.18) 58%,
    rgba(242, 232, 224, 0.62) 72%,
    var(--lbv-mother-bg) 86%
  );
}

.lbv-home-mother__copy {
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px) clamp(36px, 5.5vw, 80px) clamp(32px, 5vw, 64px) clamp(12px, 2vw, 28px);
  max-width: 38rem;
  background: transparent;
}

.lbv-home-mother__display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.05rem, 3.15vw, 3.05rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--lbv-home-ink);
}
.lbv-home-mother__display::after {
  content: "";
  display: block;
  width: 3.6rem;
  height: 1px;
  background: var(--lbv-home-gold);
  margin-top: 18px;
}

.lbv-home-mother__lead {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.05vw, 1.82rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.28;
  color: var(--lbv-home-ink);
  max-width: none;
}

.lbv-home-mother__body {
  margin: 18px 0 0;
  font-family: var(--font-text);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--lbv-home-ink-soft);
}

.lbv-home-mother__actions {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lbv-home-mother__actions .lbv-home-btn {
  min-height: 44px;
  padding: 12px 28px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

/* ---------- Collection ---------- */

.lbv-home-collection {
  background: var(--lbv-home-ivory);
  padding: clamp(36px, 4.4vw, 64px) 0 28px;
}

.lbv-home-collection__title {
  margin: 0 0 clamp(26px, 3.4vw, 42px);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lbv-home-ink);
}
.lbv-home-collection__title::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 1px;
  background: var(--lbv-home-gold);
  margin: 12px auto 0;
}

.lbv-home-collection__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lbv-home-card {
  position: relative;
  overflow: hidden;
  background: #f6e4da;
  border: 1px solid var(--lbv-home-line);
}

.lbv-home-card__link {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
  position: relative;
  isolation: isolate;
  min-height: 280px;
  aspect-ratio: 6 / 5;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.lbv-home-card--mother .lbv-home-card__link {
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
}
.lbv-home-card__link:hover {
  color: inherit;
}

.lbv-home-card__bg {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  z-index: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  pointer-events: none;
}
.lbv-home-card__bg picture,
.lbv-home-card__bg img {
  display: block;
  width: 100%;
  height: 100%;
}
.lbv-home-card__bg img {
  object-fit: cover;
  object-position: center center;
}

.lbv-home-card__copy {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 22px 16px 18px 21px;
  display: flex;
  flex-direction: column;
}

.lbv-home-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.12;
}

.lbv-home-card__eyebrow {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--lbv-home-ink);
}
.lbv-home-card--soon .lbv-home-card__eyebrow {
  color: #a6854a;
}

.lbv-home-card__body {
  margin: 12px 0 0;
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--lbv-home-ink);
}

.lbv-home-card__cta {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lbv-home-gold);
}

.lbv-home-card__link:hover .lbv-home-card__cta {
  color: var(--lbv-home-ink);
}

/* ---------- Registry ---------- */

.lbv-home-registry {
  background: var(--lbv-home-ivory);
  padding: 0 0 20px;
}

.lbv-home-registry__inner {
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 32px;
  padding: 18px 28px;
  border: 1px solid var(--lbv-home-line);
  background: var(--lbv-home-ivory);
}

.lbv-home-registry__cert {
  width: 88px;
  height: auto;
  object-fit: contain;
  display: block;
}

.lbv-home-registry__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lbv-home-registry__lede {
  margin: 6px 0 0;
  font-family: var(--font-text);
  font-style: normal;
  font-size: 1.02rem;
  color: var(--lbv-home-ink);
}

.lbv-home-registry__cta {
  white-space: nowrap;
  color: var(--lbv-home-ink);
  min-width: 0;
  min-height: 44px;
  padding: 12px 26px;
  font-size: 0.72rem;
}

/* ---------- House grid ---------- */

.lbv-home-grid {
  background: var(--lbv-home-ivory);
  padding: 0 0 clamp(36px, 5vw, 56px);
}

.lbv-home-grid__inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  grid-template-rows: 1.15fr 0.85fr;
  gap: 16px;
  align-items: stretch;
}

.lbv-home-panel {
  border: 1px solid var(--lbv-home-line);
  background: var(--lbv-home-ivory);
  padding: 28px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lbv-home-panel--editions {
  grid-column: 1;
  grid-row: 1;
  padding: 28px 22px 22px;
}
.lbv-home-panel--registry-note {
  grid-column: 1;
  grid-row: 2;
  padding: 22px 22px 20px;
  justify-content: center;
}
.lbv-home-panel--concierge {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  padding: 48px 36px 40px;
  border-color: rgba(176, 138, 74, 0.55);
  box-shadow: inset 0 0 0 7px var(--lbv-home-ivory), inset 0 0 0 8px rgba(176, 138, 74, 0.4);
  justify-content: flex-start;
}
.lbv-home-panel--promise {
  grid-column: 3;
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 32px;
  min-height: 280px;
}

.lbv-home-panel__icon {
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 0 14px;
}
.lbv-home-panel__icon--tree { width: 96px; }
.lbv-home-panel__icon--book { width: 128px; margin: 0 0 12px; }
.lbv-home-panel__icon--bell { width: 118px; margin-bottom: 20px; }
.lbv-home-panel__icon--flower {
  width: 160px;
  max-width: none;
  margin: 0 0 16px;
  pointer-events: none;
}

.lbv-home-panel__title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lbv-home-panel--concierge .lbv-home-panel__title {
  font-size: clamp(1.7rem, 2.55vw, 2.2rem);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.lbv-home-panel--promise .lbv-home-panel__title {
  position: relative;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lbv-home-panel__kicker {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  color: #a6854a;
}

.lbv-home-panel__body {
  margin: 12px 0 0;
  font-family: var(--font-text);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--lbv-home-ink);
}
.lbv-home-panel--editions .lbv-home-panel__body {
  max-width: 14em;
}
.lbv-home-panel--concierge .lbv-home-panel__body {
  margin-top: 18px;
  max-width: 28em;
  font-size: 0.95rem;
  line-height: 1.5;
}
.lbv-home-panel--promise .lbv-home-panel__body {
  position: relative;
  max-width: 16em;
  font-size: 0.95rem;
  line-height: 1.45;
}

.lbv-home-panel__note {
  margin: 0;
  font-family: var(--font-text);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--lbv-home-ink);
}
.lbv-home-panel__note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lbv-home-ink);
  margin-bottom: 4px;
}

.lbv-home-panel__cta {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lbv-home-gold);
}
.lbv-home-panel__cta:hover {
  color: var(--lbv-home-ink);
}

/* ---------- Compact footer (unused while Gallery uses the site footer) ---------- */

.lbv-home-footer {
  background: var(--lbv-home-ivory);
  color: var(--lbv-home-gold);
  padding: 28px 0 0;
}

.lbv-home-footer__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 22px;
}

.lbv-home-footer__brand .lbv-mark img {
  height: 44px;
  width: auto;
}

.lbv-home-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}
.lbv-home-footer__nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #8d7042;
}
.lbv-home-footer__nav a:hover {
  color: var(--lbv-home-ink);
}

.lbv-home-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
}
.lbv-home-footer__social a {
  color: #8d7042;
  display: inline-flex;
}
.lbv-home-footer__social a:hover { color: var(--lbv-home-ink); }
.lbv-home-footer__social svg { width: 16px; height: 16px; }

.lbv-home-footer__bottom {
  background: #111;
  color: var(--lbv-home-gold);
}
.lbv-home-footer__bottom-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lbv-home-gold);
}

.lbv-home-footer__copy {
  margin: 0;
  color: var(--lbv-home-gold);
}

.lbv-home-footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  justify-content: center;
}
.lbv-home-footer__legal a { color: var(--lbv-home-gold); }
.lbv-home-footer__legal a:hover { color: #f7f1e6; }

.lbv-home-footer__mark {
  margin: 0;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--lbv-home-gold);
}
.lbv-home-footer__flower {
  display: inline-flex;
  color: #c4a15a;
}

/* ---------- Dev overlay ---------- */

.lbv-home-mock {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.42;
}
.lbv-home-mock img {
  width: 100%;
  height: auto;
  display: block;
}

body.page-template-template-gallery {
  position: relative;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .lbv-home-collection__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
  .lbv-home-card__link {
    height: auto;
    min-height: 240px;
  }
  .lbv-home-grid__inner {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    max-width: 480px;
    margin-inline: auto;
  }
  .lbv-home-panel--editions,
  .lbv-home-panel--registry-note,
  .lbv-home-panel--concierge,
  .lbv-home-panel--promise {
    grid-column: auto;
    grid-row: auto;
  }
  .lbv-home-panel--promise {
    min-height: 260px;
  }
  .lbv-home-hero__copy {
    width: min(48%, 26rem);
    margin-left: calc(2rem + clamp(36px, 6vw, 88px));
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .lbv-home-hero {
    height: auto;
    min-height: min(92svh, 46rem);
    align-items: stretch;
  }
  .lbv-home-hero__media img {
    object-position: center center;
  }
  .lbv-home-hero__copy {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: none;
    margin: 0;
    padding: clamp(12px, 4vw, 22px) 18px 20px;
    background: none;
  }
  .lbv-home-hero__copy::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 46%;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(242, 232, 224, 0.68) 0%,
      rgba(242, 232, 224, 0.36) 42%,
      rgba(242, 232, 224, 0.08) 74%,
      rgba(242, 232, 224, 0) 100%
    );
  }
  .lbv-home-hero__display,
  .lbv-home-hero__lede {
    position: relative;
  }
  .lbv-home-hero__display {
    font-size: 2.35rem;
  }
  .lbv-home-hero__lede {
    margin-top: 12px;
    font-size: 0.95rem;
  }
  .lbv-home-hero__actions {
    margin-top: auto;
    width: 100%;
    max-width: 20rem;
    gap: 8px;
  }
  .lbv-home-hero__actions .lbv-home-btn {
    min-width: 0;
    width: 100%;
    max-width: none;
    min-height: 42px;
    padding: 10px 20px;
  }
  .lbv-home-hero__actions .lbv-home-btn--outline {
    background: rgba(247, 241, 230, 0.82);
    border-color: var(--lbv-home-gold);
    color: var(--lbv-home-ink);
  }
  .lbv-home-hero__actions .lbv-home-btn--outline:hover,
  .lbv-home-hero__actions .lbv-home-btn--outline:focus-visible {
    background: #fbf6ee;
    border-color: #8d7042;
    color: var(--lbv-home-ink);
  }

  .lbv-home-mother {
    grid-template-columns: 1fr;
    height: auto;
  }
  .lbv-home-mother__media {
    grid-column: auto;
    grid-row: auto;
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }
  .lbv-home-mother__media img {
    object-position: 12% center;
  }
  .lbv-home-mother__copy {
    grid-column: auto;
    grid-row: auto;
    padding: 36px 22px 48px;
    background: var(--lbv-mother-bg);
  }
  .lbv-home-mother__media::after {
    background: linear-gradient(
      to bottom,
      rgba(242, 232, 224, 0) 55%,
      rgba(242, 232, 224, 0.55) 78%,
      var(--lbv-mother-bg) 100%
    );
  }

  .lbv-home-registry__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 28px 20px;
  }

  .lbv-home-footer__top,
  .lbv-home-footer__bottom-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .lbv-home-footer__mark {
    text-align: center;
    justify-content: center;
  }
  .lbv-home-footer__nav ul { justify-content: center; }
  .lbv-home-panel--promise {
    align-items: center;
    text-align: center;
    min-height: 300px;
  }
  .lbv-home-panel--promise .lbv-home-panel__icon--flower {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 160px;
    margin: 0 auto 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lbv-home-btn,
  .lbv-home-card__cta,
  .lbv-home-registry__cta,
  .lbv-home-panel__cta {
    transition: none;
  }
}
