.gallery-page {
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 42%, #f7fbff 100%);
  color: #001f5f;
  overflow: hidden;
}

.gallery-hero {
  padding: 180px 0 92px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 82% 30%, rgba(19, 197, 208, 0.22), transparent 28%),
    linear-gradient(135deg, #edf7ff, #ffffff 58%, #d9efff);
  border-bottom: 1px solid #d7e8fb;
}

.gallery-hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
  color: #001f5f;
  font-size: 46px;
  line-height: 1.18;
}

.gallery-hero p:not(.gallery-eyebrow) {
  max-width: 700px;
  color: #1f2e46;
  font-size: 18px;
  line-height: 1.7;
}

.gallery-eyebrow {
  display: inline-block;
  width: fit-content;
  margin-bottom: 16px;
  color: #0756ca;
  border-bottom: 3px solid #ff0000;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.6;
  text-transform: uppercase;
}

.gallery-shell {
  padding: 0 0 80px;
}

.gallery-categories {
  margin: -42px 0 52px;
  padding: 18px;
  background: #fff;
  border: 1px solid #d7e8fb;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 31, 95, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.gallery-categories a {
  margin: 0;
  padding: 13px 18px;
  color: #001f5f;
  background: #f8fcff;
  border: 1px solid #dbe9f6;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s ease-out;
}

.gallery-categories a:hover {
  color: #fff;
  background: #0756ca;
  border-color: #0756ca;
  transform: translateY(-2px);
}

.gallery-section {
  margin-bottom: 58px;
}

.gallery-section-head {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.gallery-section-head h2 {
  margin-bottom: 0;
  color: #001f5f;
  font-size: 34px;
}

.gallery-section-head span {
  padding: 9px 14px;
  color: #0756ca;
  background: #edf7ff;
  border: 1px solid #d7e8fb;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-card {
  height: 260px;
  margin: 0;
  padding: 0;
  background: #edf7ff;
  border: 1px solid #dbe9f6;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 31, 95, 0.08);
  cursor: zoom-in;
  overflow: hidden;
  display: block;
  transition: 0.22s ease-out;
}

.gallery-card:hover {
  border-color: #bdd8f5;
  box-shadow: 0 18px 42px rgba(0, 31, 95, 0.14);
  transform: translateY(-4px);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.32s ease-out;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  padding: 82px 34px 34px;
  background: rgba(0, 20, 55, 0.86);
  opacity: 0;
  pointer-events: none;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease-out;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-stage {
  width: min(1120px, 92vw);
  height: min(78vh, 760px);
  cursor: grab;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.gallery-lightbox-stage.is-dragging {
  cursor: grabbing;
}

.gallery-lightbox img {
  max-width: min(1120px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  transform: translate3d(var(--gallery-pan-x, 0), var(--gallery-pan-y, 0), 0) scale(var(--gallery-zoom, 1));
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox-stage.is-dragging img {
  transition: none;
}

.gallery-lightbox-caption {
  max-width: min(920px, 92vw);
  margin-top: 18px;
  color: #fff;
  font-size: 17px;
  text-align: center;
}

.gallery-lightbox-close {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  margin: 0;
  color: #001f5f;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-lightbox-controls {
  margin-top: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 99px;
  display: inline-flex;
  gap: 8px;
}

.gallery-lightbox-controls button {
  width: 42px;
  height: 42px;
  margin: 0;
  color: #001f5f;
  background: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-empty {
  margin: 70px auto 0;
  padding: 64px 34px;
  max-width: 720px;
  background: #fff;
  border: 1px solid #d7e8fb;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 31, 95, 0.1);
  text-align: center;
}

.gallery-empty i {
  width: 78px;
  height: 78px;
  margin-bottom: 22px;
  color: #0756ca;
  background: #edf7ff;
  border-radius: 50%;
  font-size: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-empty h2 {
  color: #001f5f;
}

.gallery-empty p {
  color: #1f2e46;
}

@media screen and (max-width: 1240px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 992px) {
  .gallery-hero {
    padding: 160px 0 82px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .gallery-page .container {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .gallery-hero h1 {
    font-size: 34px;
  }

  .gallery-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    height: 280px;
  }

  .gallery-lightbox {
    padding: 76px 16px 28px;
  }

  .gallery-lightbox-stage {
    width: 94vw;
    height: 68vh;
  }

  .gallery-lightbox-close {
    top: 18px;
    right: 18px;
  }
}
