.gallery-page {
  max-width: 1100px;
  padding-top: 20px;
  padding-bottom: 44px;
}

.gallery-hero {
  margin-bottom: 24px;
}

.gallery-hero__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(16, 69, 119, 0.14), transparent 38%),
    radial-gradient(circle at bottom right, rgba(15, 15, 15, 0.08), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f4f6f8 100%);
  border: 1px solid rgba(16, 69, 119, 0.08);
  box-shadow: 0 20px 50px rgba(17, 17, 17, 0.06);
}

.gallery-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #104577;
}

.gallery-hero__inner h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4.8vw, 3.3rem);
  line-height: 1;
}

.gallery-hero__intro {
  max-width: 700px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.72;
  color: #3d4651;
}

.gallery-mosaic {
  column-count: 4;
  column-gap: 10px;
}

.gallery-mosaic__item {
  margin: 0 0 10px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 18px;
  background: #eceff2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.gallery-mosaic__item img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.001);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-mosaic__item:hover img,
.gallery-mosaic__item:focus-within img {
  transform: scale(1.03);
  filter: saturate(1.04);
}

.gallery-empty {
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 1100px) {
  .gallery-mosaic {
    column-count: 3;
  }
}

@media (max-width: 800px) {
  .gallery-page {
    padding-top: 14px;
    padding-bottom: 34px;
  }

  .gallery-hero {
    margin-bottom: 20px;
  }

  .gallery-hero__inner {
    padding: 22px 20px;
    text-align: center;
  }

  .gallery-hero__eyebrow {
    margin-bottom: 8px;
    font-size: 0.72rem;
  }

  .gallery-hero__inner h1 {
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .gallery-hero__intro {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .gallery-mosaic {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .gallery-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .gallery-hero__inner {
    border-radius: 22px;
    padding: 20px 18px;
  }

  .gallery-hero__intro {
    font-size: 0.88rem;
  }

  .gallery-mosaic {
    column-count: 1;
  }
}
