/* Layout support for Advanced WebP's generated <picture> markup. */
.gallery-item > picture,
.carousel-slide > picture,
.hero-half > picture,
.home-feature > picture,
.menu-background-half > picture,
.page-hero.has-background-image > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item > picture > img,
.carousel-slide > picture > img,
.hero-background-image,
.home-feature-image,
.menu-background-image,
.page-hero-background {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.masonry .gallery-item > picture {
  height: auto;
}

.apartments-intro > picture {
  width: 160px;
  margin: 0 auto 2rem;
  opacity: .15;
}

.hero-half > picture,
.home-feature > picture,
.menu-background-half > picture,
.page-hero.has-background-image > picture {
  position: absolute;
  inset: 0;
}

.hero-background-image,
.home-feature-image,
.menu-background-image,
.page-hero-background {
  position: absolute;
  inset: 0;
}

.hero-reveal,
.home-feature h2,
.page-hero.has-background-image h1 {
  z-index: 2;
}

.menu-overlay {
  background: var(--green);
}

.page-hero.has-background-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.page-hero.has-background-image::before {
  background: rgba(0, 0, 0, .12);
}

.menu-close,
.menu-utilities,
.menu-nav {
  z-index: 2;
}

.menu-nav {
  position: relative;
}

.page-hero.grey > picture {
  display: contents;
}

.page-hero.grey .page-hero-image {
  height: 72% !important;
}

.floorplan {
  object-fit: contain !important;
}

.contact-image {
  height: 720px !important;
}

.summer-hero-responsive {
  background: var(--grey);
}

@media (max-width: 900px) {
  .page-hero.grey .page-hero-image {
    height: 65% !important;
  }

  .contact-image {
    height: 480px !important;
  }
}
