/* ============================================================
   FOSTERING HOPE RVA — gallery.css (page-specific, shared chrome lives in home.css)
   Design & Develop By American Softec
   ============================================================ */

@keyframes mgFadeIn { from { opacity:0; transform:scale(0.96) translateY(20px); } to { opacity:1; transform:scale(1) translateY(0); } }
@keyframes playPulse { 0%,100% { transform:scale(1); opacity:0.90; } 50% { transform:scale(1.10); opacity:1; } }

   GALLERY HERO
============================================================ */
.gallery-hero{position:relative;min-height:calc(72vh - var(--hh) - var(--tbh));display:flex;align-items:center;justify-content:center;overflow:hidden;}
.gh-bg{position:absolute;inset:0;}
.gh-bg-img{width:100%;height:100%;object-fit:cover;object-position:center 40%;transform:scale(1.05);animation:bgKen 18s ease-in-out infinite alternate;}
.gh-overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(8,20,42,0.92) 0%,rgba(15,37,64,0.82) 50%,rgba(8,20,42,0.90) 100%);}
.gh-lines{position:absolute;inset:0;pointer-events:none;overflow:hidden;}
.ghl{position:absolute;background:linear-gradient(90deg,transparent,rgba(212,146,14,0.18),transparent);height:1px;}
.ghl1{top:35%;width:100%;animation:scanLine 9s ease-in-out infinite;}
.ghl2{top:65%;width:60%;left:40%;animation:scanLine 12s ease-in-out 2s infinite reverse;}
.gh-content{position:relative;z-index:2;width:100%;max-width:760px;margin:0 auto;padding:80px 28px 90px;display:flex;flex-direction:column;align-items:center;text-align:center;}
.gh-breadcrumb{display:inline-flex;align-items:center;gap:8px;font-size:0.72rem;font-weight:500;letter-spacing:0.08em;text-transform:uppercase;color:rgba(255,255,255,0.42);margin-bottom:22px;opacity:0;animation:fadeUp 0.7s var(--ease) 0.1s forwards;}
.gh-breadcrumb a{color:rgba(255,255,255,0.52);transition:color var(--fast);}
.gh-breadcrumb a:hover{color:var(--gold-bright);}
.gh-breadcrumb i{font-size:0.55rem;color:rgba(255,255,255,0.22);}
.gh-breadcrumb span{color:var(--gold-bright);}
.gh-eyebrow{display:inline-flex;align-items:center;gap:10px;background:rgba(212,146,14,0.14);border:1px solid rgba(212,146,14,0.32);color:var(--gold-bright);font-size:0.72rem;font-weight:600;letter-spacing:0.13em;text-transform:uppercase;padding:8px 20px;border-radius:var(--r-pill);margin-bottom:22px;opacity:0;animation:fadeUp 0.7s var(--ease) 0.25s forwards;}
.gh-headline{font-family:var(--font-serif);font-size:clamp(4rem,10vw,7.5rem);font-weight:700;line-height:1.0;letter-spacing:-0.02em;margin-bottom:20px;}
.gh-w{display:block;color:var(--white);opacity:0;transform:translateY(40px);animation:wordIn 0.75s var(--ease) forwards;}
.gh-w1{animation-delay:0.38s;}
.gh-w2{animation-delay:0.54s;color:var(--gold-bright);font-style:italic;}
.gh-sub{max-width:520px;font-size:1rem;line-height:1.80;color:rgba(255,255,255,0.65);font-weight:300;margin-bottom:28px;opacity:0;animation:fadeUp 0.7s var(--ease) 0.88s forwards;}
.gh-count-pill{display:inline-flex;align-items:center;gap:10px;background:rgba(255,255,255,0.10);border:1px solid rgba(255,255,255,0.20);color:rgba(255,255,255,0.80);font-size:0.82rem;font-weight:600;padding:10px 22px;border-radius:var(--r-pill);opacity:0;animation:fadeUp 0.7s var(--ease) 1.05s forwards;}
.gh-count-pill i{color:var(--gold-bright);}
.gh-scroll{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;opacity:0;animation:fadeUp 0.7s var(--ease) 1.4s forwards;z-index:2;}
.gh-scroll span{font-size:0.63rem;letter-spacing:0.16em;text-transform:uppercase;color:rgba(255,255,255,0.35);}
.gh-mouse{width:22px;height:35px;border-radius:11px;border:1.5px solid rgba(255,255,255,0.22);display:flex;justify-content:center;padding-top:6px;}
.gh-wheel{width:3px;height:7px;border-radius:2px;background:var(--gold-bright);animation:scrollWheel 2s ease infinite;}

/* ============================================================
   FILTER BAR
============================================================ */
.filter-bar{background:var(--white);border-bottom:2px solid var(--border-d);position:sticky;top:var(--hh);z-index:90;}
.filter-bar .container{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;padding-bottom:16px;}
.fb-inner{display:flex;gap:8px;flex-wrap:wrap;}
.fb-btn{display:inline-flex;align-items:center;gap:8px;font-size:0.82rem;font-weight:600;padding:9px 18px;border-radius:var(--r-pill);border:1.5px solid var(--border-d);background:transparent;color:var(--text-mid);cursor:pointer;transition:background var(--fast),border-color var(--fast),color var(--fast),transform var(--fast);}
.fb-btn:hover{background:var(--off-white);color:var(--navy);border-color:rgba(15,37,64,0.20);}
.fb-btn.active{background:var(--navy);color:var(--white);border-color:var(--navy);}
.fb-btn[data-filter="video"].active{background:linear-gradient(135deg,var(--navy-mid),var(--navy));border-color:var(--gold);}
.fb-btn i{font-size:0.75rem;}
.fb-count{font-size:0.80rem;color:var(--text-muted);white-space:nowrap;flex-shrink:0;}
.fb-count strong{color:var(--navy);font-weight:700;}

/* ============================================================
   MASONRY GALLERY
============================================================ */
.gallery-section{padding:56px 0 80px;}

.masonry-grid{
  columns: 3;
  column-gap: 16px;
}

.mg-item{
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--grey-soft);
  display: block;
  animation: mgFadeIn 0.55s var(--ease) both;
}

.mg-item img{
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s var(--ease);
  object-fit: cover;
}

.mg-item.mg-tall img{ min-height: 400px; object-fit: cover; }
.mg-item.mg-wide img{ min-height: 260px; object-fit: cover; }

.mg-item:hover img{ transform: scale(1.05); }

.mg-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,40,0.70) 0%, rgba(10,20,40,0.10) 60%, transparent 100%);
  opacity: 0;
  transition: opacity var(--med) var(--ease);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
}

.mg-item:hover .mg-overlay{ opacity: 1; }

.mg-zoom{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.40);
  color: var(--white);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background var(--fast), transform var(--fast);
}
.mg-zoom:hover{ background: var(--gold); border-color: var(--gold); transform: scale(1.10); }

.mg-item.hidden{ display: none; }

.no-results{
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.no-results i{ font-size: 3rem; color: var(--gold-light); margin-bottom: 16px; display: block; }
.no-results p{ font-size: 1rem; }

/* ============================================================
   VIDEO CARD IN MASONRY GRID
============================================================ */
.mg-video-card{
  cursor: pointer;
  background: var(--navy);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}

.mvc-thumb{
  position: relative;
  width: 100%;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--navy);
}

.mvc-preview{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  filter: brightness(0.55) saturate(0.8);
  transition: filter 0.45s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}

.mg-video-card:hover .mvc-preview{
  filter: brightness(0.70) saturate(1);
  transform: scale(1.04);
}

.mvc-play-btn{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--white);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform var(--med) var(--ease);
}

.mvc-play-btn i{
  animation: playPulse 2.2s ease infinite;
  filter: drop-shadow(0 4px 20px rgba(212,146,14,0.55));
  color: var(--gold-bright);
}

.mg-video-card:hover .mvc-play-btn{
  transform: scale(1.08);
}

.mvc-badge{
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,146,14,0.90);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
}

/* ============================================================
   VIDEO LIGHTBOX
============================================================ */
.video-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.video-lightbox.open{
  opacity: 1;
  visibility: visible;
}

.vlb-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(4,10,22,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.vlb-inner{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.vlb-wrap{
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0,0,0,0.70);
  border: 1.5px solid rgba(212,146,14,0.25);
  background: #000;
}

.vlb-video{
  width: 100%;
  max-height: 78vh;
  display: block;
  outline: none;
}

.vlb-caption{
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.48);
  display: flex;
  align-items: center;
  gap: 8px;
}
.vlb-caption i{ color: var(--gold-bright); }

.vlb-close{
  position: fixed;
  top: 22px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: var(--white);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--fast), transform var(--fast);
  z-index: 2;
}
.vlb-close:hover{
  background: #e53e3e;
  border-color: #e53e3e;
  transform: rotate(90deg);
}

/* ============================================================
   IMAGE LIGHTBOX
============================================================ */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.open{
  opacity: 1;
  visibility: visible;
}
.lb-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(4,10,22,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lb-inner{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  height: 100%;
  padding: 60px 80px;
}
.lb-img-wrap{
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img{
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--r-lg);
  box-shadow: 0 32px 100px rgba(0,0,0,0.60);
  object-fit: contain;
  transition: opacity 0.25s var(--ease);
  display: block;
}
.lb-img.loading{ opacity: 0; }
.lb-loader{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold-bright);
  opacity: 0;
  transition: opacity 0.2s;
}
.lb-loader.show{ opacity: 1; }

.lb-prev,.lb-next{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--fast), transform var(--fast);
  cursor: pointer;
}
.lb-prev:hover,.lb-next:hover{ background: var(--gold); border-color: var(--gold); transform: scale(1.08); }

.lb-close{
  position: absolute;
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--fast), transform var(--fast);
  z-index: 2;
}
.lb-close:hover{ background: #e53e3e; border-color: #e53e3e; transform: rotate(90deg); }

.lb-counter{
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.80rem;
  font-weight: 600;
  color: rgba(255,255,255,0.50);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
}

/* ============================================================
   GALLERY CTA
============================================================ */
.gallery-cta{
  background: var(--navy);
  padding: 72px 0;
  border-top: 3px solid var(--gold);
}
.gcta-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.gcta-text h2{
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.gcta-text h2 em{ font-style: italic; color: var(--gold-bright); }
.gcta-text p{ font-size: 0.93rem; line-height: 1.75; color: rgba(255,255,255,0.58); max-width: 460px; }
.gcta-btns{ display: flex; gap: 14px; flex-wrap: wrap; }
.gcta-btn{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.90rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast);
}
.gcta-gold{
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(212,146,14,0.40);
}
.gcta-gold:hover{ background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(212,146,14,0.52); }
.gcta-outline{
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.gcta-outline:hover{ background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.hpulse{ animation: hbeat 1.8s ease infinite; }

/* ============================================================

/* ============================================================
   RESPONSIVE (page-specific only)
============================================================ */
@media(max-width:1060px){
  .masonry-grid{columns:2;}
}

@media(max-width:768px){
  .filter-bar .container{flex-direction:column;align-items:flex-start;gap:12px;}
  .gcta-inner{flex-direction:column;text-align:center;}
  .gcta-text p{max-width:100%;}
  .gcta-btns{justify-content:center;}
  .vlb-inner{padding:0 16px;}
}

@media(max-width:640px){
  .gallery-hero{min-height:70vh;}
  .gh-content{padding:60px 20px 80px;}
  .gh-headline{font-size:clamp(3rem,12vw,4.5rem);}
  .masonry-grid{columns:1;}
  .mg-item.mg-tall img,.mg-item.mg-wide img{min-height:220px;}
  .mvc-preview{height:220px;}
  .mvc-thumb{min-height:220px;}
  .lb-inner{padding:60px 12px;}
  .lb-prev,.lb-next{display:none;}
  .gh-scroll{display:none;}
}

@media(max-width:400px){
  .gh-headline{font-size:3rem;}
  .fb-btn{font-size:0.76rem;padding:8px 14px;}
}
