/* Gallery */
.gallery-hero {
  background: linear-gradient(135deg, #0c1222 0%, #1a4a6e 50%, #0077c8 100%);
  color: #fff;
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  text-align: center;
}
.gallery-hero h1 { margin: 0 0 0.5rem; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
.gallery-hero .breadcrumb { color: rgba(255, 255, 255, 0.75); margin-bottom: 1rem; }
.gallery-hero .breadcrumb a { color: var(--color-accent); }
.gallery-hero__sub { max-width: 720px; margin: 0.75rem auto 0; opacity: 0.92; font-size: 1rem; line-height: 1.6; }

.gallery-layout { padding: 3rem 0 4rem; }

.gallery-albums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.gallery-album-card {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(12, 18, 34, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}
.gallery-album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 119, 200, 0.25);
}
.gallery-album-card--active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 119, 200, 0.2);
}
.gallery-album-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.gallery-album-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease-out);
}
.gallery-album-card:hover .gallery-album-card__img img { transform: scale(1.05); }
.gallery-album-card__title {
  margin: 0.85rem 1rem 0.25rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-text);
}
.gallery-album-card__count {
  display: block;
  margin: 0 1rem 1rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.gallery-section { margin-bottom: 2.5rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.gallery-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.gallery-section__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
}
.gallery-section__link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.gallery-section__link:hover { text-decoration: underline; }

.gallery-back { margin: 0 0 1.5rem; }
.gallery-back a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.gallery-back a:hover { text-decoration: underline; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.gallery-grid--single { margin-top: 0.5rem; }

.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #dde4ee;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.65rem 0.55rem;
  background: linear-gradient(transparent, rgba(12, 18, 34, 0.82));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}

.gallery-cta {
  margin-top: 2rem;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 119, 200, 0.08), rgba(0, 212, 255, 0.04));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 119, 200, 0.12);
}
.gallery-cta h2 { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 800; }
.gallery-cta p { margin: 0 0 1.25rem; color: var(--color-muted); font-size: 0.95rem; }

@media (max-width: 768px) {
  .gallery-albums { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
