/* ============================================
   GALLERY PAGE — gallery.css
   ============================================ */

/* Reuse page-hero styles */
.page-hero { position: relative; height: 65vh; min-height: 500px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { object-position: center 40%; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,18,35,0.92) 0%, rgba(10,18,35,0.55) 50%, rgba(10,18,35,0.25) 100%); }
.page-hero-content { position: relative; z-index: 2; padding-bottom: 72px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span:last-child { color: rgba(255,255,255,0.85); }
.page-hero-title { font-family: var(--font-display); font-size: clamp(44px, 6vw, 80px); font-weight: 700; color: var(--white); line-height: 1.05; letter-spacing: -1px; margin-bottom: 20px; }
.page-hero-title em { font-style: italic; color: var(--red); }
.page-hero-desc { font-size: 17px; color: rgba(255,255,255,0.72); line-height: 1.65; max-width: 560px; font-weight: 300; }
.page-hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; }

/* --- FILTER TABS --- */
.gal-filters {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.gal-filters-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gal-filters-inner::-webkit-scrollbar { display: none; }
.gal-filter {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  background: transparent;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  white-space: nowrap;
  cursor: none;
  transition: all var(--transition);
  letter-spacing: 0.2px;
}
.gal-filter:hover { border-color: var(--navy); color: var(--navy); }
.gal-filter.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* --- GALLERY SECTION --- */
.gal-section { background: var(--off-white); }

.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

.gal-item { border-radius: var(--radius-md); overflow: hidden; position: relative; }
.gal-item--wide { grid-column: span 2; }
.gal-item--tall { grid-row: span 2; }

.gal-img-wrap {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
}
.gal-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gal-item:hover .gal-img-wrap img { transform: scale(1.06); }

.gal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,18,35,0.88) 0%, rgba(10,18,35,0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
}
.gal-item:hover .gal-overlay { opacity: 1; }

.gal-overlay-content {
  padding: 28px 24px;
  transform: translateY(12px);
  transition: transform var(--transition);
  width: 100%;
}
.gal-item:hover .gal-overlay-content { transform: translateY(0); }

.gal-cat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(204,0,0,0.4);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.gal-overlay-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.gal-view-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--red);
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  cursor: none;
  letter-spacing: 0.5px;
  transition: background var(--transition);
}
.gal-view-btn:hover { background: var(--red-dark); }

/* hidden item during filter */
.gal-item.hidden {
  display: none;
}

/* --- EMPTY STATE --- */
.gal-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-400);
  font-size: 16px;
  font-style: italic;
  grid-column: 1 / -1;
}

/* --- LIGHTBOX --- */
.lightbox-backdrop {
  position: fixed; inset: 0;
  background: rgba(5,10,20,0.92);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  backdrop-filter: blur(6px);
}
.lightbox-backdrop.active { opacity: 1; visibility: visible; }

.lightbox {
  position: fixed; inset: 0;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  pointer-events: none;
}
.lightbox.active { opacity: 1; visibility: visible; pointer-events: all; }

.lightbox-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  max-width: 1100px;
  width: 100%;
  max-height: 80vh;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s ease;
}
.lightbox.active .lightbox-inner { transform: scale(1) translateY(0); }

.lightbox-img-wrap {
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}
.lightbox-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.lightbox-info {
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  border-left: 1px solid var(--gray-200);
}
.lightbox-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.lightbox-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}
.lightbox-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 32px;
  flex: 1;
}

.lightbox-close {
  position: fixed;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  cursor: none;
  z-index: 2002;
  transition: all var(--transition);
}
.lightbox-close:hover { background: var(--red); border-color: var(--red); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  cursor: none;
  z-index: 2002;
  transition: all var(--transition);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--red); border-color: var(--red); }

/* ============================================
   RESPONSIVE — GALLERY
   ============================================ */
@media (max-width: 1024px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-item--wide { grid-column: span 2; }
  .lightbox-inner { grid-template-columns: 1fr; max-height: 90vh; }
  .lightbox-img-wrap { min-height: 280px; max-height: 40vh; }
}
@media (max-width: 768px) {
  .gal-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gal-item--wide,
  .gal-item--tall { grid-column: span 1; grid-row: span 1; }
  .gal-filters-inner { padding: 10px 16px; }
  .lightbox { padding: 16px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-info { padding: 28px 20px; }
  .page-hero { height: 55vh; min-height: 420px; }
}
