html,
body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.contact-links strong {
  overflow-wrap: anywhere;
}

.contact {
  background: #b3261e;
}

/* Keep the complete tall advertisement visible in the left grid position. */
.ad-open img {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
}

/* One centered feature banner with three supporting graphics below. */
.ad-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-items: stretch;
}

.ad-grid .ad-team {
  grid-column: 1 / -1;
  grid-row: 1;
}

.ad-grid .ad-team img {
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
}

.ad-grid .ad-open {
  grid-column: 1;
  grid-row: 2;
}

.ad-grid .ad-open img,
.ad-grid figure:not(.ad-team) img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.ad-grid.real-photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto;
}

.ad-grid.real-photo-grid figure img {
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

.facebook-work {
  background: #0d0e11;
}

.facebook-email-banner {
  display: block;
  margin: 0 0 28px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.facebook-email-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.facebook-ad-grid {
  margin-top: 0;
}

.shop-photo img,
.story figure img,
.card-logo {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 850px) {
  .hero-art {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .card-logo {
    width: 88%;
    max-width: 720px;
  }
}

@media (max-width: 620px) {
  .ad-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .ad-grid.real-photo-grid {
    grid-template-columns: 1fr;
  }

  .ad-grid .ad-team,
  .ad-grid .ad-open,
  .ad-grid figure {
    grid-column: 1;
    grid-row: auto;
  }

  .ad-grid .ad-team {
    order: -1;
  }

  .ad-grid .ad-team img,
  .ad-grid .ad-open img,
  .ad-grid figure:not(.ad-team) img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}
