body {
  background:
    radial-gradient(circle at top left, rgba(15, 99, 173, 0.06), transparent 28%),
    linear-gradient(180deg, #f4f8fc 0%, #f9f4ec 100%);
}

.gallery-hero {
  position: relative;
  padding: 110px 0 88px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 46, 94, 0.84) 0%, rgba(15, 99, 173, 0.68) 52%, rgba(0, 167, 214, 0.3) 100%),
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.14), transparent 34%);
}

.gallery-hero .container {
  position: relative;
  z-index: 1;
}

.gallery-hero .hero-content {
  max-width: 780px;
  color: #fff;
}

.gallery-hero .hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
}

.gallery-hero .lead {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  line-height: 1.8;
}

.gallery-shell.section {
  padding-top: 0 !important;
}

.gallery-intro {
  margin-top: -38px;
}

.gallery-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.overview-card,
.gallery-lead-panel,
.gallery-filters-panel,
.gallery-card,
.gallery-empty {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 82, 147, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(18, 44, 79, 0.08);
}

.overview-card {
  padding: 24px;
}

.overview-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 99, 173, 0.08);
  color: #0f63ad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overview-card strong {
  display: block;
  margin-bottom: 10px;
  color: #12304f;
  font-size: 1.45rem;
}

.overview-card p,
.gallery-lead-panel p,
.gallery-meta,
.gallery-empty p,
.gallery-filters-header p {
  margin: 0;
  color: #5a6c80;
  line-height: 1.75;
}

.gallery-lead-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
  gap: 28px;
  padding: 30px;
  margin-bottom: 24px;
}

.gallery-lead-panel h2,
.gallery-filters-header h2,
.gallery-empty h3 {
  margin: 0 0 12px;
  color: #12304f;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.08;
}

.gallery-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-points li {
  position: relative;
  padding-left: 18px;
  color: #5a6c80;
  line-height: 1.75;
}

.gallery-points li + li {
  margin-top: 10px;
}

.gallery-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f63ad, #00a7d6);
}

.gallery-filters-panel {
  padding: 28px;
}

.gallery-filters-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 99, 173, 0.06);
  border: 1px solid rgba(15, 99, 173, 0.12);
  color: #12304f;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.filter-btn .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(18, 48, 79, 0.08);
  color: #0f63ad;
  font-size: 12px;
}

.filter-btn:hover,
.filter-btn:focus,
.filter-btn.active {
  background: linear-gradient(135deg, #0f63ad, #00a7d6);
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(15, 99, 173, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.filter-btn:hover .count,
.filter-btn:focus .count,
.filter-btn.active .count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.gallery-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.06);
}

.gallery-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 46, 94, 0.02), rgba(7, 46, 94, 0.24));
}

.gallery-body {
  padding: 20px;
}

.gallery-body h3 {
  margin: 0 0 8px;
  color: #12304f;
  font-size: 1.05rem;
  line-height: 1.4;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.gallery-empty {
  padding: 34px;
  text-align: center;
}

@media (max-width: 1199px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .gallery-hero {
    padding: 96px 0 74px;
  }

  .gallery-overview,
  .gallery-lead-panel {
    grid-template-columns: 1fr;
  }

  .gallery-filters-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gallery-hero {
    padding: 84px 0 62px;
  }

  .gallery-overview {
    grid-template-columns: 1fr;
  }

  .gallery-intro {
    margin-top: -24px;
  }

  .gallery-lead-panel,
  .gallery-filters-panel,
  .gallery-empty,
  .overview-card {
    padding: 22px;
  }
}

@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-hero .lead {
    font-size: 16px;
  }

  .filter-btn {
    width: 100%;
    justify-content: space-between;
  }

  .gallery-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
