.hero {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  background: #171714 url("/images/addison-hero-gavel.webp") 72% center / cover no-repeat !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 20, 18, .95) 0%, rgba(20, 20, 18, .82) 43%, rgba(20, 20, 18, .18) 100%);
}

.hero > .nav,
.hero > .heroContent,
.hero > .proof {
  position: relative;
  z-index: 2;
}

.homepageMomentGrid {
  width: min(1180px, calc(100% - 48px));
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1.08fr .78fr 1.08fr;
  gap: 12px;
  align-items: stretch;
}

.homepageMoment {
  height: 360px;
  margin: 0;
  overflow: hidden;
  background: #171714;
}

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

.homepageMoment:first-child img { object-position: center 35%; }
.homepageMoment:nth-child(2) img { object-position: center 26%; }
.homepageMoment:last-child img { object-position: center; }

.homepageMoment:hover img { transform: scale(1.025); }

@media (width <= 800px) {
  .hero {
    background-color: #171714 !important;
    background-image: url("/images/addison-hero-gavel-mobile.jpg") !important;
    background-position: center 86px !important;
    background-repeat: no-repeat !important;
    background-size: 100% auto !important;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(20, 20, 18, .12) 86px, rgba(20, 20, 18, .08) calc(86px + 58vw), rgba(20, 20, 18, .86) calc(86px + 78vw), #171714 calc(86px + 86vw), #171714 100%);
  }

  .hero .nav {
    z-index: 10002;
    width: 100%;
    max-width: none;
    min-height: 86px;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
    background: #171714;
  }

  .heroContent {
    padding-top: clamp(335px, calc(85.5vw + 60px), 440px) !important;
  }

  .hero .mobileMenu summary {
    position: relative;
    z-index: 10001;
    padding: 12px 14px;
    color: #f5f0e5;
    background: #171714;
    border: 1px solid rgba(223, 201, 142, .8);
  }

  .hero .mobileMenu[open] summary {
    position: relative;
    top: auto;
    right: auto;
  }

  .hero .mobileMenu[open] > div {
    position: fixed !important;
    inset: 86px 0 0 !important;
    z-index: 10000 !important;
    width: 100%;
    height: calc(100vh - 86px);
    height: calc(100dvh - 86px);
    min-height: 0;
    align-content: start;
    grid-auto-rows: min-content;
    gap: 8px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 15px max(28px, env(safe-area-inset-bottom)) !important;
    background: #f5f0e5 !important;
    box-shadow: none;
  }

  .hero .mobileMenu[open] > div a {
    display: block;
    padding: 17px 16px;
    color: #171714 !important;
    background: #fff !important;
    border: 1px solid #d2c8b4;
    font-size: 21px;
    text-shadow: none;
  }

  .hero .mobileMenu[open] > div a:nth-last-child(-n + 3) {
    background: #dfc98e !important;
    border-color: #b6964f;
  }

  .hero .mobileMenu[open] > div a:last-child {
    color: #171714 !important;
  }

  .homepageMomentGrid {
    width: calc(100% - 30px);
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .homepageMoment { height: 280px; }
  .homepageMoment:nth-child(2) { height: 430px; }
  .homepageMoment:nth-child(2) img { object-position: center 22%; }
}

@media (prefers-reduced-motion: reduce) {
  .homepageMoment img { transition: none; }
}
