.gallery-hero { padding: 60px 0; }

/* ---------------- Tabs ---------------- */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 12px 30px -18px rgba(23,58,47,0.35);
}
.gallery-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 28px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.gallery-tab .tab-icon { font-size: 16px; line-height: 1; }
.gallery-tab:hover:not(.active) { background: var(--paper-dim); color: var(--green-800); }
.gallery-tab.active {
  background: var(--marigold);
  color: var(--white);
  box-shadow: 0 8px 18px -6px rgba(226,144,15,0.55);
}

/* ---------------- Video grid ---------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: start;
}
.video-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(23,58,47,0.35);
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--green-900);
}
.video-frame.portrait {
  aspect-ratio: 478 / 850;
  max-height: 640px;
}
.video-frame video,
.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18,42,34,0.25);
  cursor: pointer;
  border: none;
  padding: 0;
}
.video-play .play-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--green-700);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.video-caption { padding: 20px 22px; }
.video-caption .title { font-weight: 700; font-size: 18px; color: var(--green-800); }
.video-caption .sub { font-size: 14.5px; color: var(--ink-soft); margin-top: 5px; }

@media (max-width: 760px) {
  .video-grid { grid-template-columns: 1fr; }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid[hidden],
.video-grid[hidden] {
  display: none;
}
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  min-height: 220px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(23,58,47,0.35);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.gallery-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(0deg, rgba(18,42,34,0.85), rgba(18,42,34,0));
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
}
.gallery-item.tall { grid-row: span 2; }

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Gallery page refresh */
.gallery-hero{position:relative;overflow:hidden;background:url('../assets/gallery-hero.jpg') center/cover no-repeat}
.gallery-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,59,132,.55) 0%,rgba(7,59,132,.25) 45%,transparent 70%)}
.gallery-hero-features{display:flex;gap:28px;flex-wrap:wrap;margin-top:26px;position:relative;z-index:1}
.ghf-item{display:flex;align-items:center;gap:10px}
.ghf-icon{width:42px;height:42px;flex-shrink:0;border-radius:50%;background:rgba(255,255,255,.14);border:1.5px solid rgba(255,255,255,.4);display:flex;align-items:center;justify-content:center;font-size:17px}
.ghf-item span:last-child{font-size:13px;font-weight:700;color:#fff}
.gallery-hero::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.28) 1px,transparent 1px);background-size:26px 26px;opacity:.32}
.gallery-hero .container{position:relative;z-index:1}
.gallery-tabs{background:#fff;border:1px solid #d7e8f6;border-radius:16px;padding:6px;box-shadow:0 12px 32px rgba(24,88,148,.08)}
.gallery-tab{border-radius:12px}.gallery-tab.active{background:linear-gradient(135deg,#0b67d8,#1157c4);color:#fff}
.gallery-item,.video-card{border-radius:18px;border:1px solid #d7e8f6;box-shadow:0 15px 35px rgba(19,80,141,.1)}
.gallery-item img{transition:transform .45s ease}.gallery-item:hover img{transform:scale(1.05)}