.gallery-page {
  padding: 0 0 76px;
  color: #222;
  font-family: "Roboto", Arial, sans-serif;
  background: #fff;
}

.gallery-page .shell {
  width: min(100%, 1196px);
}

.gallery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 496px);
  align-items: center;
  gap: 70px;
  min-height: 488px;
  padding: 48px 20px 48px 55px;
  background: #f4f4f5;
}

.gallery-hero-copy {
  max-width: 590px;
}

.gallery-page h1 {
  margin: 0 0 24px;
  color: #171d49;
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(58px, 6.3vw, 70px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.gallery-intro,
.gallery-subtext,
.gallery-closing {
  max-width: 570px;
  margin: 0 0 24px;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.gallery-subtext {
  margin-bottom: 0;
}

.gallery-subtext a {
  color: #177940;
  text-decoration: none;
  font-weight: 400;
}

.gallery-subtext a:hover,
.gallery-subtext a:focus {
  text-decoration: underline;
}

.gallery-image {
  margin: 0;
}

.gallery-image a {
  display: block;
  overflow: hidden;
  background: #f6f6f6;
}

.gallery-image img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  object-fit: cover;
}

.gallery-feature-image a {
  background: #fff;
}

.gallery-feature-image img {
  width: 100%;
  aspect-ratio: 496 / 260;
  object-fit: cover;
}

.gallery-closing {
  width: min(980px, calc(100% - 40px));
  margin: 34px auto 26px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.72;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: min(980px, calc(100% - 40px));
  margin: 4px auto 0;
}

.gallery-mosaic .gallery-image a {
  aspect-ratio: 16 / 10;
}

.gallery-mosaic .gallery-image img {
  height: 100%;
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-mosaic .gallery-image a:hover img,
.gallery-mosaic .gallery-image a:focus img {
  filter: brightness(0.96);
  transform: scale(1.025);
}

.gallery-image-title {
  margin: 8px 0 0;
  color: #333;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
}

.gallery-empty {
  margin: 20px 0 0;
  padding: 54px 20px;
  color: #666;
  text-align: center;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  background: #f8f8f8;
}

@media (max-width: 720px) {
  .gallery-page {
    padding-bottom: 56px;
  }

  .gallery-page .shell {
    width: 100%;
  }

  .gallery-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding: 34px 24px 38px;
  }

  .gallery-page h1 {
    font-size: 46px;
    margin-bottom: 18px;
  }

  .gallery-intro,
  .gallery-subtext {
    font-size: 16px;
  }

  .gallery-subtext {
    margin-bottom: 0;
  }

  .gallery-closing,
  .gallery-mosaic {
    width: min(100% - 28px, 980px);
  }

  .gallery-mosaic {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
