/* ════════════════════════════════════════
   GALLERY PAGE
════════════════════════════════════════ */

/* Filter pills */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn {
  font-family: var(--fp); font-size: .75rem; font-weight: 600;
  padding: 7px 18px; border-radius: var(--rp);
  border: 1.5px solid var(--border);
  background: #fff; color: var(--navy);
  cursor: pointer; transition: all .25s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--orange); border-color: var(--orange); color: #fff;
  box-shadow: 0 6px 18px rgba(249,115,22,.28);
}

/* ══════════════════════════════
   GLOSSY GALLERY CARDS
   Image is inset inside a white card with rounded corners,
   gradient border highlight, and layered shadow for depth
══════════════════════════════ */
.gallery-item {
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  height: auto;
  overflow: visible;            /* allow shadow + scale to extend */
  cursor: pointer;
  position: relative;
  box-shadow:
    0 4px 12px rgba(11,37,69,.06),
    0 1px 3px rgba(11,37,69,.04);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease;
  display: block;
}

/* Subtle gradient border via pseudo-element (glossy edge) */
.gallery-item::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(249,115,22,.0) 0%, rgba(249,115,22,.35) 50%, rgba(30,95,168,.35) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 50px rgba(11,37,69,.18),
    0 8px 22px rgba(249,115,22,.18);
}
.gallery-item:hover::before { opacity: 1; }

/* Inner image wrapper — clips the image with proper rounded corners */
.gallery-item .gi-img {
  position: relative;
  width: 100%;
  height: 210px;
  border-radius: 11px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate), #e3edf7);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img { transform: scale(1.08); }

/* Glossy reflection at the top of the image */
.gallery-item .gi-img::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none; z-index: 2;
  border-radius: 11px 11px 0 0;
}

/* Hover overlay with zoom icon */
.gallery-item .gov {
  position: absolute; inset: 0;
  background: rgba(11,37,69,.55);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity .35s ease;
  gap: 8px; z-index: 3;
  border-radius: 11px;
}
.gallery-item:hover .gov { opacity: 1; }
.gallery-item .gov i {
  font-size: 1.6rem; color: #fff;
  background: var(--orange);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(249,115,22,.45);
  transform: scale(.8);
  transition: transform .3s ease;
}
.gallery-item:hover .gov i { transform: scale(1); }
.gallery-item .gov span {
  font-size: .72rem; color: rgba(255,255,255,.95);
  font-weight: 600; letter-spacing: .02em;
}

/* Caption bar BELOW the image (within the card) */
.gallery-item .gcap {
  position: static;
  background: transparent;
  padding: 12px 6px 6px;
  font-size: .76rem; font-weight: 700;
  color: var(--navy);
  text-align: center;
  letter-spacing: -.01em;
  line-height: 1.4;
  pointer-events: none;
}

/* Responsive image heights */
@media (max-width: 991px) { .gallery-item .gi-img { height: 195px; } }
@media (max-width: 767px) {
  .gallery-item { padding: 8px; border-radius: 14px; }
  .gallery-item .gi-img { height: 175px; border-radius: 9px; }
  .gallery-item .gcap { padding: 10px 4px 4px; font-size: .73rem; }
  .filter-bar { gap: 6px; margin-bottom: 24px; }
  .filter-btn { padding: 5px 12px; font-size: .70rem; }
}
@media (max-width: 575px) {
  .gallery-item .gi-img { height: 160px; }
}