.gallery-page{background:#fff}
.gallery-intro{padding:74px 0 28px}
.gallery-breadcrumb{display:flex;gap:8px;align-items:center;color:#77869a;font-size:12px;margin-bottom:32px}
.gallery-breadcrumb a{color:#08296c;text-decoration:none}
.gallery-breadcrumb a:hover{color:#ce1432}
.gallery-head{display:grid;grid-template-columns:minmax(0,.92fr) minmax(320px,.78fr);gap:80px;align-items:end}
.gallery-head .eyebrow{color:#ce1432;font-size:11px;letter-spacing:.14em;font-weight:700}
.gallery-head h1{font-size:clamp(44px,5.3vw,74px);line-height:1.02;color:#08296c;margin:15px 0 0;letter-spacing:-.055em}
.gallery-head h1 span{font-weight:300}
.gallery-head-copy p{color:#61738a;font-size:16px;line-height:1.8;max-width:570px}
.gallery-meta{display:flex;gap:26px;margin-top:20px;color:#08296c;font-size:12px}
.gallery-meta span{display:flex;align-items:center;gap:8px}
.gallery-meta i{width:7px;height:7px;border-radius:50%;background:#ce1432;display:block}
.gallery-showcase{padding:28px 0 86px}

/* Toolbar & View Switch */
.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px;padding-top:20px;border-top:1px solid #e3e8ef;flex-wrap:wrap}
.gallery-filters{display:flex;gap:8px;flex-wrap:wrap}
.gallery-filter{border:1px solid #dbe3ed;background:#fff;color:#50627a;border-radius:999px;padding:9px 17px;font-size:12px;font-weight:650;cursor:pointer;transition:.18s}
.gallery-filter:hover,.gallery-filter.is-active{background:#08296c;color:#fff;border-color:#08296c}
.gallery-toolbar-right{display:flex;align-items:center;gap:16px}
.gallery-view-switch{display:inline-flex;padding:3px;background:#f0f4f9;border-radius:999px;border:1px solid #dce4ef;gap:2px}
.gallery-switch-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:0;border-radius:999px;background:transparent;color:#61748d;font-size:11px;font-weight:650;cursor:pointer;transition:all .18s ease}
.gallery-switch-btn.is-active{background:#fff;color:#08296c;box-shadow:0 2px 8px rgba(8,41,108,.12)}
.gallery-count{font-size:11px;color:#7a899b;white-space:nowrap}

/* Stream Shell & Carousel */
.gallery-stream-shell{position:relative;margin:10px 0 30px}
.gallery-stream-viewport{overflow:hidden;padding:34px 0 44px;cursor:grab;touch-action:pan-y;-webkit-user-select:none;user-select:none;position:relative}
.gallery-stream-viewport.is-dragging{cursor:grabbing}
.gallery-stream-track{display:flex;gap:22px;align-items:center;will-change:transform}

/* Stream Card Styling */
.gallery-card{position:relative;margin:0;overflow:hidden;border-radius:20px;background:#e9eef5;box-shadow:0 8px 24px rgba(8,41,108,.08);cursor:pointer}
.gallery-stream-track .gallery-card{flex:0 0 clamp(290px,28vw,380px);height:clamp(230px,23vw,290px);transition:transform .38s cubic-bezier(.16,1,.3,1),box-shadow .38s ease,opacity .3s ease,filter .3s ease}
.gallery-stream-track:hover .gallery-card:not(:hover){opacity:.8;filter:brightness(.92)}
.gallery-stream-track .gallery-card:hover{transform:scale(1.18) translateY(-6px)!important;z-index:50!important;opacity:1!important;filter:brightness(1.02)!important;box-shadow:0 28px 70px rgba(4,18,42,.42)!important}
.gallery-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 450ms cubic-bezier(.22,1,.36,1)}
.gallery-card:hover img{transform:scale(1.05)}
.gallery-card:after{content:"";position:absolute;inset:38% 0 0;background:linear-gradient(transparent,rgba(4,18,42,.78));pointer-events:none}
.gallery-card figcaption{position:absolute;z-index:2;left:18px;right:56px;bottom:16px;color:#fff;pointer-events:none}
.gallery-card figcaption strong{display:block;font-size:15px;letter-spacing:-.02em;text-shadow:0 2px 8px rgba(0,0,0,.5)}
.gallery-card figcaption span{display:block;font-size:10px;letter-spacing:.1em;text-transform:uppercase;opacity:.85;margin-top:4px}
.gallery-service-link{display:inline-block;margin-top:6px;color:#ffccd3;font-size:11px;font-weight:600;text-decoration:none;pointer-events:auto;transition:color .2s}
.gallery-service-link:hover{color:#fff;text-decoration:underline}
.gallery-zoom{position:absolute;z-index:3;right:14px;top:14px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:#08296c;font-size:19px;display:grid;place-items:center;box-shadow:0 5px 18px rgba(6,26,61,.22);cursor:pointer;transition:transform .2s,background .2s}
.gallery-zoom:hover{transform:scale(1.1);background:#fff}
.gallery-card[hidden]{display:none!important}

/* Stream Manual Nav Buttons */
.gallery-stream-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:25;width:44px;height:44px;border-radius:50%;border:1px solid rgba(8,41,108,.12);background:#fff;color:#08296c;font-size:28px;line-height:1;display:grid;place-items:center;box-shadow:0 6px 20px rgba(8,41,108,.16);cursor:pointer;transition:all .2s ease}
.gallery-stream-btn:hover{background:#08296c;color:#fff;transform:translateY(-50%) scale(1.08);box-shadow:0 10px 28px rgba(8,41,108,.28)}
.gallery-stream-prev{left:10px}
.gallery-stream-next{right:10px}

/* Grid Mode Alternative View */
.gallery-stream-track.is-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;grid-auto-rows:250px;gap:14px;transform:none!important;width:100%!important}
.gallery-stream-track.is-grid .gallery-card{flex:none;height:100%;transform:none!important;box-shadow:0 4px 16px rgba(8,41,108,.06)}
.gallery-stream-track.is-grid .gallery-card:first-child{grid-row:span 2}
.gallery-stream-track.is-grid .gallery-card:hover{transform:translateY(-4px)!important;box-shadow:0 18px 40px rgba(8,41,108,.2)!important;z-index:10}
.gallery-stream-shell.is-grid .gallery-stream-btn{display:none!important}
.gallery-stream-shell.is-grid .gallery-stream-viewport{cursor:default}

/* CTA */
.gallery-cta{margin-top:22px;padding:22px 24px;border:1px solid #e1e7ef;border-radius:18px;background:#f8fafc;display:flex;align-items:center;justify-content:space-between;gap:24px}
.gallery-cta-copy{display:flex;align-items:center;gap:15px;color:#08296c}
.gallery-cta-icon{width:42px;height:42px;border-radius:12px;background:#fff1f3;color:#ce1432;display:grid;place-items:center;font-size:20px;font-weight:700}
.gallery-cta strong{display:block;font-size:14px}
.gallery-cta small{display:block;color:#738298;font-size:11px;margin-top:3px}
.gallery-cta-actions{display:flex;gap:10px}
.gallery-cta-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 18px;border-radius:9px;font-size:12px;font-weight:700;text-decoration:none;transition:transform .18s,background .18s}
.gallery-cta-actions a:first-child{background:#ce1432;color:#fff}
.gallery-cta-actions a:first-child:hover{background:#a90e27}
.gallery-cta-actions a:last-child{background:#14a869;color:#fff}
.gallery-cta-actions a:last-child:hover{background:#0e8853}

/* ==========================================================================
   POPUP LIGHTBOX (FULLSCREEN, PERFECTLY CENTERED, MODERN & PREMIUM)
   ========================================================================== */
.gallery-lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  z-index: 99999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(3, 8, 20, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.gallery-lightbox.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Container centers figure in viewport */
.gallery-lightbox-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 30px 80px !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  margin: auto !important;
}

.gallery-lightbox-figure {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: min(1140px, 86vw) !important;
  max-height: 86vh !important;
  margin: 0 auto !important;
  pointer-events: auto !important;
  transform: scale(.96);
  transition: transform .24s cubic-bezier(.16, 1, .3, 1);
}

.gallery-lightbox.is-open .gallery-lightbox-figure {
  transform: scale(1);
}

/* Image styling */
.gallery-lightbox-img {
  display: block !important;
  max-width: min(1100px, 84vw) !important;
  max-height: 74vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .12) !important;
  transition: opacity .18s ease, transform .18s ease;
  user-select: none !important;
  -webkit-user-drag: none;
  margin: 0 auto !important;
}

.gallery-lightbox-img.is-fading {
  opacity: .2;
  transform: scale(.985);
}

/* Centered modern caption pill */
.gallery-lightbox-caption {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: fit-content !important;
  max-width: min(840px, 86vw) !important;
  margin: 16px auto 0 auto !important;
  padding: 10px 24px !important;
  border-radius: 999px !important;
  background: rgba(14, 25, 48, .82) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  color: #fff !important;
  box-sizing: border-box !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .5) !important;
}

.gallery-lightbox-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.gallery-lightbox-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: -.01em !important;
  color: #fff !important;
}

.gallery-lightbox-tag {
  display: inline-block !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: #ce1432 !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  color: #fff !important;
}

.gallery-lightbox-counter {
  font-size: 12px !important;
  color: rgba(255, 255, 255, .85) !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  font-weight: 700 !important;
  padding-left: 12px !important;
  border-left: 1px solid rgba(255, 255, 255, .22) !important;
}

/* Nav arrows (Left & Right) */
.gallery-lightbox-nav {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 100000000 !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255, 255, 255, .25) !important;
  background: rgba(10, 24, 52, .82) !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .55) !important;
  transition: all .2s ease !important;
  pointer-events: auto !important;
  padding: 0 !important;
}

.gallery-lightbox-nav svg {
  width: 28px !important;
  height: 28px !important;
  stroke: #fff !important;
  transition: transform .2s ease !important;
  pointer-events: none !important;
}

.gallery-lightbox-nav:hover {
  background: #ce1432 !important;
  border-color: #ce1432 !important;
  color: #fff !important;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 14px 40px rgba(206, 20, 50, .5) !important;
}

.gallery-lightbox-prev {
  left: 28px !important;
}
.gallery-lightbox-prev:hover svg {
  transform: translateX(-2px) !important;
}

.gallery-lightbox-next {
  right: 28px !important;
}
.gallery-lightbox-next:hover svg {
  transform: translateX(2px) !important;
}

/* Close Button (Top-Right) */
.gallery-lightbox-close {
  position: fixed !important;
  top: 24px !important;
  right: 28px !important;
  z-index: 100000001 !important;
  width: 48px !important;
  height: 48px !important;
  border: 1.5px solid rgba(255, 255, 255, .25) !important;
  border-radius: 50% !important;
  background: rgba(10, 24, 52, .82) !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45) !important;
  transition: all .2s ease !important;
  pointer-events: auto !important;
  padding: 0 !important;
}

.gallery-lightbox-close svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #fff !important;
  transition: transform .2s ease !important;
  pointer-events: none !important;
}

.gallery-lightbox-close:hover {
  background: #ce1432 !important;
  border-color: #ce1432 !important;
  color: #fff !important;
  transform: scale(1.1) rotate(90deg) !important;
  box-shadow: 0 10px 30px rgba(206, 20, 50, .5) !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS (FLAWLESS & MODERN)
   ========================================================================== */
@media (max-width: 900px) {
  .gallery-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }
  .gallery-head h1 {
    font-size: clamp(34px, 7vw, 48px) !important;
    line-height: 1.15 !important;
    margin: 10px 0 0 !important;
    letter-spacing: -0.04em !important;
  }
  .gallery-head-copy {
    width: 100% !important;
  }
  .gallery-head-copy p {
    font-size: 15px !important;
    line-height: 1.65 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .gallery-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px 20px !important;
    margin-top: 14px !important;
    font-size: 12px !important;
  }
  .gallery-stream-track .gallery-card {
    flex: 0 0 min(330px, 78vw) !important;
    height: 250px !important;
  }
  .gallery-stream-track.is-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 240px !important;
  }
  .gallery-stream-track.is-grid .gallery-card:first-child {
    grid-column: 1 / -1 !important;
    height: 320px !important;
  }
}

@media (max-width: 768px) {
  .gallery-lightbox-container {
    padding: 16px 12px 80px 12px !important;
  }
  .gallery-lightbox-figure {
    max-width: 96vw !important;
    max-height: 80vh !important;
  }
  .gallery-lightbox-img {
    max-width: 96vw !important;
    max-height: 64vh !important;
    border-radius: 12px !important;
  }
  .gallery-lightbox-caption {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-top: 10px !important;
    padding: 8px 14px !important;
    font-size: 11px !important;
  }
  .gallery-lightbox-title {
    font-size: 12px !important;
  }
  .gallery-lightbox-tag {
    font-size: 9px !important;
    padding: 2px 7px !important;
  }
  .gallery-lightbox-counter {
    font-size: 11px !important;
    padding-left: 8px !important;
  }
  .gallery-lightbox-nav {
    width: 46px !important;
    height: 46px !important;
    top: auto !important;
    bottom: 20px !important;
    transform: none !important;
  }
  .gallery-lightbox-prev {
    left: 18px !important;
  }
  .gallery-lightbox-next {
    right: 18px !important;
  }
  .gallery-lightbox-close {
    top: 14px !important;
    right: 14px !important;
    width: 42px !important;
    height: 42px !important;
  }
}

@media (max-width: 600px) {
  .gallery-intro {
    padding: 30px 0 16px !important;
  }
  .gallery-breadcrumb {
    margin-bottom: 16px !important;
    font-size: 11px !important;
    gap: 6px !important;
  }
  .gallery-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
  .gallery-head .eyebrow {
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
  }
  .gallery-head h1 {
    font-size: clamp(28px, 8.2vw, 36px) !important;
    line-height: 1.18 !important;
    margin: 6px 0 0 !important;
    letter-spacing: -0.035em !important;
  }
  .gallery-head-copy p {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    color: #556882 !important;
  }
  .gallery-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
    margin-top: 12px !important;
    font-size: 11px !important;
  }
  .gallery-showcase {
    padding: 14px 0 95px !important; /* Extra bottom padding so floating mobile bar never overlaps */
  }
  .gallery-toolbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    padding-top: 14px !important;
  }
  .gallery-filters {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  .gallery-filter {
    padding: 7px 13px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
  }
  .gallery-toolbar-right {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .gallery-view-switch {
    padding: 2px !important;
  }
  .gallery-switch-btn {
    padding: 5px 10px !important;
    font-size: 10.5px !important;
  }
  .gallery-stream-shell {
    margin: 6px 0 20px !important;
  }
  .gallery-stream-viewport {
    padding: 20px 0 26px !important;
  }
  .gallery-stream-track .gallery-card {
    flex: 0 0 clamp(260px, 80vw, 310px) !important;
    height: 220px !important;
    border-radius: 16px !important;
  }
  .gallery-card figcaption {
    left: 14px !important;
    right: 48px !important;
    bottom: 14px !important;
  }
  .gallery-card figcaption strong {
    font-size: 13.5px !important;
  }
  .gallery-card figcaption span {
    font-size: 9px !important;
  }
  .gallery-zoom {
    right: 10px !important;
    top: 10px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
  }
  .gallery-stream-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 24px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
  }
  .gallery-stream-prev {
    left: 4px !important;
  }
  .gallery-stream-next {
    right: 4px !important;
  }
  .gallery-stream-track.is-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 230px !important;
    gap: 12px !important;
  }
  .gallery-stream-track.is-grid .gallery-card:first-child {
    grid-column: auto !important;
    height: 250px !important;
  }
  .gallery-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 16px 14px !important;
    margin-top: 20px !important;
    border-radius: 14px !important;
  }
  .gallery-cta-copy {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .gallery-cta-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .gallery-cta-actions a {
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 11.5px !important;
  }
}
