.bv-gallery-page {
  --bv-black: #101010;
  --bv-gold: #c89a5a;
  --bv-cream: #f7f3ed;
  --bv-stone: #716b65;
  background: #fff;
  color: var(--bv-black);
}

.bv-gallery-page *,
.bv-gallery-page *::before,
.bv-gallery-page *::after {
  box-sizing: border-box;
}

.bv-gallery-intro,
.bv-gallery-section,
.bv-gallery-cta-inner {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.bv-gallery-intro {
  max-width: 850px;
  padding: 88px 0 68px;
  text-align: center;
}

.bv-gallery-eyebrow {
  margin: 0 0 12px;
  color: var(--bv-gold);
  font-family: "Lora", serif;
  font-size: 17px;
  font-style: italic;
  letter-spacing: .04em;
}

.bv-gallery-intro h2,
.bv-gallery-section h2,
.bv-gallery-cta h2 {
  margin: 0;
  color: var(--bv-black);
  font-family: "Old Standard TT", Georgia, serif;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bv-gallery-intro h2 {
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.05;
}

.bv-gallery-intro p:last-child {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--bv-stone);
  font-family: "Open Sans", sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

.bv-gallery-section {
  padding: 54px 0 20px;
}

.bv-gallery-section + .bv-gallery-section {
  padding-top: 78px;
}

.bv-gallery-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
  padding-bottom: 17px;
  border-bottom: 1px solid #d8c4a7;
}

.bv-gallery-section h2 {
  max-width: 780px;
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.08;
}

.bv-gallery-section-header p {
  flex: 0 0 auto;
  margin: 0;
  color: var(--bv-gold);
  font-family: "Lora", serif;
  font-size: 15px;
  font-style: italic;
}

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

.bv-gallery-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bv-cream);
  box-shadow: 0 8px 28px rgba(18, 16, 13, .09);
  text-decoration: none;
}

.bv-gallery-card figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

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

.bv-gallery-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, .68), transparent);
  pointer-events: none;
}

.bv-gallery-card figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 15px;
  left: 18px;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1.35;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}

.bv-gallery-card:hover img,
.bv-gallery-card:focus-visible img {
  transform: scale(1.035);
}

.bv-gallery-card:focus-visible {
  outline: 3px solid var(--bv-gold);
  outline-offset: 3px;
}

.bv-gallery-note {
  width: min(850px, calc(100% - 48px));
  margin: 58px auto 82px;
  color: #7c756e;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

.bv-gallery-cta {
  margin-top: 20px;
  padding: 88px 0;
  background: var(--bv-black);
  text-align: center;
}

.bv-gallery-cta-inner {
  max-width: 820px;
}

.bv-gallery-cta .bv-gallery-eyebrow {
  color: #d8ad70;
}

.bv-gallery-cta h2 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.bv-gallery-cta-copy {
  max-width: 680px;
  margin: 22px auto 30px;
  color: #d8d5d0;
  font-family: "Open Sans", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

.bv-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.bv-gallery-button {
  display: inline-flex;
  min-width: 218px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 1px solid var(--bv-gold);
  background: var(--bv-gold);
  color: #111;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}

.bv-gallery-button:hover,
.bv-gallery-button:focus-visible {
  background: #fff;
  color: #111;
}

.bv-gallery-button--secondary {
  background: transparent;
  color: #fff;
}

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

  .bv-gallery-section-header {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .bv-gallery-intro,
  .bv-gallery-section,
  .bv-gallery-cta-inner {
    width: min(100% - 28px, 1240px);
  }

  .bv-gallery-intro {
    padding: 62px 0 44px;
  }

  .bv-gallery-intro p:last-child,
  .bv-gallery-cta-copy {
    font-size: 15px;
    line-height: 1.7;
  }

  .bv-gallery-section,
  .bv-gallery-section + .bv-gallery-section {
    padding-top: 50px;
  }

  .bv-gallery-grid {
    gap: 8px;
  }

  .bv-gallery-card figcaption {
    right: 10px;
    bottom: 9px;
    left: 10px;
    font-size: 11px;
  }

  .bv-gallery-note {
    width: min(100% - 28px, 850px);
    margin: 42px auto 60px;
  }

  .bv-gallery-cta {
    padding: 66px 0;
  }

  .bv-gallery-actions {
    flex-direction: column;
  }

  .bv-gallery-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bv-gallery-card img,
  .bv-gallery-button {
    transition: none;
  }
}
