/* ===== GALLERY.HTML STYLESHEET ===== */
.page-hero {
  background: var(--honda-black);
  padding: 96px 0 52px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1400&q=80")
    center/cover;
  opacity: 0.22;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.ph-bread {
  font-family: var(--font-condensed);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--honda-red);
  margin-bottom: 10px;
}
.ph-bread a {
  color: var(--honda-red);
  text-decoration: none;
}
.ph-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700;
  color: white;
  line-height: 1.05;
}
/* FILTER BAR */
.filter-bar {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 18px 0;
  position: sticky;
  top: 60px;
  z-index: 50;
}
.filter-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.ftab {
  padding: 8px 20px;
  background: white;
  border: 1.5px solid #e0e0e0;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}
.ftab:hover,
.ftab.active {
  background: var(--honda-red);
  border-color: var(--honda-red);
  color: white;
}
/* GALLERY GRID */
.gallery-wrap {
  padding: 56px 0;
  background: var(--honda-light-gray);
}
.g-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.g-grid .wide {
  grid-column: span 2;
}
.g-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #e0e0e0;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    opacity 0.3s;
}
.g-item:hover img {
  transform: scale(1.06);
}
.g-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.g-item:hover .g-overlay {
  opacity: 1;
}
.g-caption {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.g-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--honda-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.g-item:hover .g-zoom {
  opacity: 1;
}
/* LIGHTBOX */
.lb {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lb.show {
  display: flex;
}
.lb-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  padding: 20px 80px;
}
.lb-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  transition: opacity 0.25s;
}
.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1;
  line-height: 1;
  transition: color 0.2s;
}
.lb-close:hover {
  color: white;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.lb-nav:hover {
  background: var(--honda-red);
}
.lb-prev {
  left: 16px;
}
.lb-next {
  right: 16px;
}
.lb-footer {
  padding: 14px 24px;
  text-align: center;
  flex-shrink: 0;
}
.lb-caption {
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.lb-counter {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.5px;
}
.lb-thumbs {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 24px 16px;
  max-width: 800px;
  margin: 0 auto;
}
.lb-thumb {
  width: 52px;
  height: 36px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.45;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.lb-thumb.active,
.lb-thumb:hover {
  opacity: 1;
  border-color: var(--honda-red);
}
/* VIDEO SECTION */
.vid-section {
  padding: 56px 0;
  background: var(--honda-black);
}
.vid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.vid-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.vid-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  opacity: 0.7;
  transition: all 0.3s;
}
.vid-card:hover img {
  opacity: 0.9;
  transform: scale(1.04);
}
.vid-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: var(--honda-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.vid-card:hover .vid-play {
  transform: translate(-50%, -50%) scale(1.12);
}
.vid-lbl {
  padding: 10px 0;
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 1px;
  text-transform: uppercase;
}
/* responsive */
@media (max-width: 900px) {
  .g-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .g-grid .wide {
    grid-column: span 1;
  }
}
@media (max-width: 600px) {
  .g-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lb-img-wrap {
    padding: 10px 52px;
  }
  .lb-nav {
    width: 38px;
    height: 38px;
  }
  .vid-grid {
    grid-template-columns: 1fr;
  }
  .lb-thumbs {
    display: none;
  }
}
