/* ============================================================
   SS Construction — site-wide Gallery page (gallery.php)
   Scoped styles only (gal-*). Reuses .pd-grid / .pd-video / .lightbox
   from site.css so the look matches the project detail galleries.
   ============================================================ */

.gal-section { padding-top: clamp(44px, 6vw, 70px); padding-bottom: clamp(44px, 6vw, 70px); }
.gal-head { max-width: 640px; margin-bottom: 28px; }
.gal-head .eyebrow { margin-bottom: 8px; }

.gal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gal-item { position: relative; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 10px;
  background: linear-gradient(to top, rgba(14, 18, 29, .86), transparent);
  color: #fff;
  font: 600 13px/1.3 var(--font);
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gal-item:hover .gal-cap,
.gal-item:focus-visible .gal-cap { opacity: 1; transform: translateY(0); }

@media (max-width: 991px) {
  .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gal-cap { opacity: 1; transform: none; padding: 18px 8px 8px; font-size: 11.5px; }
}
