/* Gallery page */
.page-gallery .page-hero { height: 392px; }

.gallery-section { padding: 96px 40px 92px; }
.gallery-filters { display: flex; flex-wrap: wrap; margin: 0 0 28px; }
.gallery-filters button { display: block; height: 40px; padding: 0 20px; border: 0; background: none; font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--dark); cursor: pointer; }
.gallery-filters button.is-active { background: var(--navy); color: #fff; font-weight: 700; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0 12px; }
.photo-grid__item { position: relative; margin: 0; overflow: hidden; }
.photo-grid__item[hidden] { display: none; }
.photo-grid__item a { display: block; height: 250px; }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-grid__item:hover img { transform: scale(1.05); }
.photo-grid__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 8px 8px; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0)); opacity: 0; transition: opacity .25s; pointer-events: none; }
.photo-grid__item:hover figcaption { opacity: 1; }
.photo-grid__item h4 { margin: 0; font-size: 20px; line-height: 30px; font-weight: 300; color: #fff; }

/* Video banner uses an H1 on this page */
.page-gallery .video-banner__content h1 { color: #fff; font-size: 60px; line-height: 72px; margin-bottom: 4px; }

/* Lightbox (markup injected by js/site.js) */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.9); padding: 40px; cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.6); cursor: default; }
.lightbox__close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: var(--orange); }

@media (max-width: 1100px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .page-gallery .page-hero { height: auto; min-height: 135px; padding: 40px 16px; }
  .page-gallery .page-hero h1 { margin-bottom: 0; }
  .gallery-section { padding: 55px 20px 50px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0; }
  .page-gallery .video-banner__content h1 { font-size: 36px; line-height: 44px; }
  /* Live site: shorter video panel and pill tiles on mobile */
  .page-gallery .video-banner__media { min-height: 335px; }
  .page-gallery .pill-card { height: 207px; }
}
@media (max-width: 767px) {
  .gallery-filters { margin-bottom: 20px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid__item a { height: 150px; }
  .lightbox { padding: 16px; }
}
