.gallery-hero{
  padding:110px 0 80px;
  background:
    linear-gradient(90deg,rgba(4,17,31,.97),rgba(4,17,31,.78)),
    url("assets/welder-pipe.jpg") center/cover;
  color:#fff;
}
.gallery-hero h1{
  margin:0 0 16px;
  font-size:clamp(3.5rem,8vw,7rem);
  line-height:.9;
  letter-spacing:-.06em;
  text-transform:uppercase;
}
.gallery-hero p:not(.eyebrow){max-width:700px;font-size:1.15rem;color:#d9e4ef}
.gallery-section{padding:85px 0;background:#f3f6f8}
.gallery-intro{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:end;
  margin-bottom:35px;
}
.gallery-intro h2,.video-section h2,.gallery-cta h2{
  margin:0;
  font-size:clamp(2rem,4vw,3.8rem);
  line-height:1;
  text-transform:uppercase;
  letter-spacing:-.04em;
}
.gallery-intro>p{color:#66758a}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.gallery-card{
  margin:0;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #d8e1e8;
  box-shadow:0 8px 28px rgba(5,24,43,.08);
}
.gallery-open{
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:#0a213a;
  cursor:zoom-in;
  aspect-ratio:4/3;
}
.gallery-open img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease,opacity .2s ease;
}
.gallery-open:hover img{transform:scale(1.035);opacity:.92}
.gallery-card figcaption{
  padding:13px 15px;
  font-size:.82rem;
  font-weight:800;
  color:#526277;
  overflow-wrap:anywhere;
}
.video-section{
  margin-top:70px;
  display:grid;
  grid-template-columns:.65fr 1.35fr;
  gap:40px;
  align-items:start;
  padding:38px;
  border-radius:18px;
  background:#fff;
  box-shadow:0 16px 50px rgba(5,24,43,.1);
}
.video-section video{
  width:100%;
  max-height:620px;
  background:#061525;
  border-radius:12px;
}
.gallery-cta{
  margin-top:55px;
  padding:36px;
  border-radius:16px;
  background:#07182b;
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
}
.gallery-cta p{margin-bottom:0;color:#c7d5e1}
.lightbox{
  width:min(1100px,94vw);
  max-height:94vh;
  border:0;
  border-radius:15px;
  padding:48px 18px 18px;
  background:#07182b;
  color:#fff;
  box-shadow:0 30px 100px rgba(0,0,0,.55);
}
.lightbox::backdrop{background:rgba(0,0,0,.86)}
.lightbox img{
  display:block;
  max-width:100%;
  max-height:78vh;
  margin:auto;
  object-fit:contain;
}
.lightbox p{text-align:center;margin:12px 0 0;color:#cbd8e3;font-weight:700}
.lightbox-close{
  position:absolute;
  top:8px;
  right:14px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:2rem;
  cursor:pointer;
}
@media(max-width:900px){
  .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .video-section{grid-template-columns:1fr}
}
@media(max-width:600px){
  .gallery-hero{padding:85px 0 55px}
  .gallery-intro,.gallery-grid{grid-template-columns:1fr}
  .gallery-section{padding:60px 0}
  .video-section{padding:22px}
  .gallery-cta{align-items:flex-start;flex-direction:column;padding:26px}
  .gallery-cta .btn{width:100%}
}
