.westhome-gallery-page {
  --gallery-green: #315f24;
  --gallery-dark: #173d18;
  --gallery-gold: #f2bd17;
  --gallery-ink: #202a1e;
  --gallery-soft: #f3f7ee;
  color: var(--gallery-ink);
}

.westhome-gallery-page .widget-content-content-5:not(.westhome-additional-content-spacer),
.westhome-gallery-page .widget-gallery,
.westhome-gallery-page .widget-video {
  display: none !important;
}

.westhome-gallery-main {
  overflow: hidden;
  background: #fff;
}

.westhome-gallery-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 500px;
  align-items: center;
  color: #fff;
}

.westhome-gallery-hero::before,
.westhome-gallery-hero::after {
  position: absolute;
  inset: 0;
  content: "";
}

.westhome-gallery-hero::before {
  z-index: -2;
  background: url("../../images/Gallery/rs_w_1535_m_0d4fd89162.jpg") center 36% / cover no-repeat;
}

.westhome-gallery-hero::after {
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 43, 17, .94) 0%, rgba(22, 57, 20, .72) 48%, rgba(20, 49, 18, .22) 78%);
}

.westhome-gallery-container,
.westhome-gallery-hero__inner {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.westhome-gallery-hero__inner {
  padding: 76px 0;
}

.westhome-gallery-eyebrow {
  margin: 0 0 13px;
  color: var(--gallery-gold);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.westhome-gallery-hero h1 {
  max-width: 690px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.9rem, 6vw, 5.5rem);
  line-height: 1;
}

.westhome-gallery-hero__copy {
  max-width: 610px;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.westhome-gallery-section {
  padding: 82px 0;
}

.westhome-gallery-section--soft {
  background: var(--gallery-soft);
}

.westhome-gallery-heading {
  margin: 0 0 14px;
  color: var(--gallery-dark);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  text-align: center;
}

.westhome-gallery-lead {
  max-width: 800px;
  margin: 0 auto 42px;
  line-height: 1.7;
  text-align: center;
}

.westhome-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.westhome-photo-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(35, 71, 28, .13);
}

.westhome-photo-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.westhome-photo-card img {
  display: block;
  width: 100%;
  height: 390px;
  object-fit: cover;
  transition: transform .45s ease;
}

.westhome-photo-card:nth-child(3n + 1) img {
  object-position: center 35%;
}

.westhome-photo-card:hover img,
.westhome-photo-card a:focus-visible img {
  transform: scale(1.035);
}

.westhome-photo-card figcaption {
  min-height: 74px;
  box-sizing: border-box;
  padding: 17px 19px;
  border-top: 4px solid var(--gallery-gold);
  color: var(--gallery-dark);
  font-weight: 720;
  line-height: 1.45;
}

.westhome-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.westhome-video-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(49, 95, 36, .16);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(35, 71, 28, .1);
}

.westhome-video-card__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #0d160d;
}

.westhome-video-card--featured {
  max-width: 920px;
  margin: 0 auto 28px;
}

.westhome-video-card--featured .westhome-video-card__frame {
  aspect-ratio: 16 / 9;
}

.westhome-video-card video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0d160d;
  object-fit: contain;
}

.westhome-video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.westhome-video-card figcaption {
  padding: 17px 19px;
  color: var(--gallery-dark);
  font-weight: 720;
  line-height: 1.45;
}

.westhome-gallery-note {
  max-width: 820px;
  margin: 36px auto 0;
  padding: 18px 22px;
  border-left: 4px solid var(--gallery-gold);
  background: rgba(255,255,255,.88);
  line-height: 1.65;
}

.westhome-gallery-reveal {
  animation: westhomeGalleryReveal .75s ease both;
}

@keyframes westhomeGalleryReveal {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .westhome-photo-grid,
  .westhome-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .westhome-gallery-hero {
    min-height: 560px;
    align-items: end;
  }

  .westhome-gallery-hero::before {
    background-position: 62% center;
  }

  .westhome-gallery-hero::after {
    background: linear-gradient(0deg, rgba(15,43,17,.96) 0%, rgba(15,43,17,.74) 62%, rgba(15,43,17,.18) 100%);
  }

  .westhome-gallery-hero__inner {
    padding: 48px 0;
  }

  .westhome-gallery-container,
  .westhome-gallery-hero__inner {
    width: calc(100% - 30px);
  }

  .westhome-gallery-section {
    padding: 58px 0;
  }

  .westhome-photo-grid,
  .westhome-video-grid {
    grid-template-columns: 1fr;
  }

  .westhome-photo-card img {
    height: min(118vw, 490px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .westhome-gallery-reveal,
  .westhome-photo-card img {
    animation: none;
    transition: none;
  }
}
