#hero {
  display: flex;
  position: relative;
  background-color: var(--gest-blue);

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow:
      inset 0 5px 5px rgba(0, 0, 0, 0.2),
      inset 0 -5px 5px rgba(0, 0, 0, 0.2);
  }

  img {
    /* TODO: Use <picture> with a custom mobile banner crop. */
    display: block;
    width: 100%;
  }
}

main>section#gallery {
  padding-inline: 0;
  padding: 0;
}

#gallery-grid {
  display: grid;
  gap: 0;
  width: 100%;
}

#photo-pair,
.gestcon-photo-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  margin: 0;
  width: 100%;
}

#photo-pair,
.gestcon-photo-feature {
  &>* {
    min-width: 0;
  }

  img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

.gestcon-photo-feature figcaption {
  max-width: 800px;
  margin-inline: auto;
  padding: 3rem;
  text-align: center;
  font-size: 1.25rem;

  p {
    margin-bottom: 1rem;
  }
}


#gallery-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
}

@media (max-width: 800px) {

  #photo-pair,
  .gestcon-photo-feature {
    grid-template-columns: 1fr;
  }

  .gestcon-photo-feature figcaption {
    padding: 2rem 0;
  }

  #gallery-cta img {
    order: -1;
  }
}
