.gallery-section { padding-top: 10px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gallery-card {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 22px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 44px rgba(17,19,24,.10);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
  color: #fff;
  text-align: left;
  display: grid;
  gap: 4px;
}
.gallery-card-overlay b { font-size: 14px; }
.gallery-card-overlay small { opacity: .82; font-size: 12px; }
.gallery-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #111318;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.gallery-filters a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(17,19,24,.10);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  color: #111318;
  text-decoration: none;
}
.gallery-filters a.active,
.gallery-filters a:hover {
  background: #fff0f2;
  border-color: rgba(226,30,47,.25);
  color: #e21e2f;
}
.page-hero {
  padding: 56px 0 34px;
  background:
    radial-gradient(circle at 87% 12%, rgba(226,30,47,.10), transparent 29%),
    linear-gradient(180deg, #fff, #f5f6f8);
}
.page-hero h1 {
  font-size: clamp(21px, 3.5vw, 42px);
  letter-spacing: -0.035em;
}
.page-hero .lead {
  max-width: 760px;
  font-size: clamp(15px, 1.6vw, 17px);
}

.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,10,14,.88);
  backdrop-filter: blur(8px);
}
.lightbox-shell {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 24px));
  margin: 24px auto;
  height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.lightbox-figure {
  margin: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  min-width: 0;
}
.lightbox-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: #111318;
}
.lightbox-figure figcaption {
  color: #fff;
  display: grid;
  gap: 4px;
  padding: 0 8px 8px;
}
.lightbox-figure figcaption small { opacity: .72; }
.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 14px;
  cursor: pointer;
  font-size: 28px;
  width: 48px;
  height: 48px;
}
.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
}
.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  color: rgba(255,255,255,.82);
  font-weight: 700;
}
.nav-links a.active {
  background: rgba(255,255,255,.14);
}
@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .lightbox-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    height: calc(100vh - 20px);
    margin: 10px auto;
  }
  .lightbox-nav.prev,
  .lightbox-nav.next {
    position: absolute;
    bottom: 56px;
    z-index: 2;
  }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}
