/* Gallery listing page */
.gallery-page {
  background: linear-gradient(180deg, #eef3f8 0%, #f8fafc 40%, #fff 100%);
  min-height: 100vh;
}

.gallery-page-main {
  padding-top: 5.5rem;
  padding-bottom: 2rem;
}

.gallery-page-eyebrow {
  color: #1a3d6e;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.gallery-page-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #0f2a4d;
  margin-bottom: 0.5rem;
}

.gallery-page-sub {
  color: #64748b;
  margin-bottom: 1.25rem;
}

.gallery-page-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.gallery-page-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe3ef;
  color: #1a3d6e;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.gallery-page-tabs a:hover {
  background: #1a3d6e;
  border-color: #1a3d6e;
  color: #fff;
  transform: translateY(-1px);
}

.gallery-cat {
  background: #fff;
  border: 1px solid rgba(15, 42, 77, 0.06);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 42, 77, 0.06);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 5.5rem;
}

.gallery-cat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eef2f7;
  position: relative;
}

.gallery-cat__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4af37, rgba(212, 175, 55, 0.15));
}

.gallery-cat__head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.gallery-cat__head span {
  color: #94a3b8;
  font-size: 0.85rem;
  white-space: nowrap;
}

.gallery-cat__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.gallery-cat__item {
  margin: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
  cursor: zoom-in;
}

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

.gallery-cat__item:hover img {
  transform: scale(1.04);
}

@media (min-width: 768px) {
  .gallery-cat {
    padding: 1.5rem 1.75rem 1.75rem;
  }

  .gallery-cat__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 992px) {
  .gallery-cat__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
