.gallery-banner {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(10,20,35,0.88) 0%, rgba(10,20,35,0.55) 45%, rgba(10,20,35,0.15) 75%), url("../images/lab1.jpeg") center/cover no-repeat;
  color: #ffffff;
}

.gallery-banner-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  padding: 72px 24px;
}

.gallery-banner .eyebrow {
  color: #f8b81f;
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.gallery-banner h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
}

.gallery-banner p {
  margin: 0 auto;
  max-width: 680px;
  color: #f1f1f1;
  line-height: 1.75;
  font-size: 1rem;
}

.gallery-grid-section {
  padding: 60px 0 100px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(15, 63, 131, 0.06);
  background: #ffffff;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.gallery-lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  width: min(1100px, 95vw);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.65);
}

.lightbox-close {
  top: 16px;
  right: 16px;
  z-index: 1;
}

.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 34px;
    height: 34px;
  }

  .lightbox-prev,
  .lightbox-next {
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-lightbox-content {
    padding: 12px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 768px) {
  .gallery-banner {
    min-height: 260px;
    background-position: center center;
  }

  .gallery-banner-content {
    padding: 52px 18px;
  }

  .gallery-grid {
    gap: 16px;
  }
}
