/* =====================================================
   GALLERY PAGE CUSTOM STYLES
===================================================== */

/* Hero Banner Styling */
.gallery-hero-banner {
  background: linear-gradient(135deg, #091a36 0%, #061022 100%);
  color: #ffffff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #ea580c;
}

.gallery-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(234, 88, 12, 0.15) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.7;
}

.gallery-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-transform: uppercase;
}

.gallery-hero-subtitle {
  font-family: 'Poppins', sans-serif;
  color: #ff9933;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.gallery-hero-desc {
  font-family: 'Inter', sans-serif;
  color: #cbd5e1;
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Sticky Category Nav Bar */
.category-sticky-bar {
  position: sticky;
  top: 75px; /* Sits right under primary sticky navbar */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.category-pills-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-pills-container {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  white-space: nowrap;
  padding: 12px 4px;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
}

.category-pills-container:active {
  cursor: grabbing;
}

/* Custom Sleek Scrollbar for Desktop Visibility */
.category-pills-container::-webkit-scrollbar {
  height: 4px;
  display: block !important;
}

.category-pills-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
}

.category-pills-container::-webkit-scrollbar-thumb {
  background: rgba(234, 88, 12, 0.4);
  border-radius: 10px;
}

.category-pills-container::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}

/* Left & Right Scroll Buttons */
.pills-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

.pills-nav-btn:hover {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
  transform: scale(1.08);
}

.category-pill-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 30px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.category-pill-btn i {
  font-size: 0.85rem;
}

.category-pill-btn:hover {
  background-color: #091a36;
  color: #ffffff;
  border-color: #091a36;
  transform: translateY(-1px);
}

.category-pill-btn.active {
  background-color: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

/* Gallery Category Sections Layout */
.gallery-category-section {
  padding: 65px 0;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.gallery-category-section:nth-child(even) {
  background-color: #f8fafc;
}

.category-section-header {
  margin-bottom: 35px;
}

.category-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.category-section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #091a36;
  margin: 0;
  letter-spacing: -0.01em;
}

.category-section-desc {
  font-family: 'Inter', sans-serif;
  color: #64748b;
  font-size: 0.9rem;
  max-width: 650px;
  line-height: 1.5;
}

/* Card Layout overrides/refinements for Responsive Grid */
.gallery-grid-card {
  height: 100%;
}

/* =====================================================
   GLIGHTBOX CARD POPUP MODAL STYLES (SUTAPA DESIGN)
===================================================== */
/* Dark navy backdrop with subtle blur */
.goverlay {
  background: rgba(3, 27, 78, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Constrain popup container so it opens as an elegant card popup instead of full 100vw screen */
.gslide {
  padding: 20px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}

.gslide-inner-content {
  max-width: 620px !important;
  width: 90% !important;
  height: auto !important; /* CRITICAL: Prevents vertical stretching empty area */
  max-height: 90vh !important;
  margin: 0 auto !important;
  background: #031b4e !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
  /* Dual-corner accent border (Top-left saffron bar, Bottom-right green bar) */
  border: 3.5px solid transparent !important;
  background-clip: padding-box !important;
  background-image: linear-gradient(#031b4e, #031b4e) padding-box, 
                    linear-gradient(135deg, #ff9933 0%, #ff9933 22%, rgba(255, 255, 255, 0.12) 22%, rgba(255, 255, 255, 0.12) 78%, #128807 78%, #128807 100%) border-box !important;
}

/* Image Media Container inside Modal Card */
.gslide-media {
  position: relative !important;
  height: auto !important;
  max-height: 65vh !important;
  background-color: #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-shadow: none !important;
  flex-shrink: 1 !important;
  flex-grow: 0 !important;
}

.gslide-media img {
  height: auto !important;
  max-height: 65vh !important;
  width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
}

/* Description Footer inside Modal Card */
.gslide-description {
  background: #031b4e !important;
  padding: 14px 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-align: left !important;
  position: relative !important;
  height: auto !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

.gslide-title {
  color: #ea580c !important; /* Premium Saffron / Vibrant Orange */
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  margin-bottom: 3px !important;
  letter-spacing: -0.2px !important;
}

.gslide-desc {
  color: #e2e8f0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  margin-bottom: 0 !important;
}

/* Floating Navigation Buttons matching reference images */
.gbtn.gprev,
.gbtn.gnext {
  width: 40px !important;
  height: 40px !important;
  background: rgba(11, 31, 77, 0.9) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.25s ease !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.gbtn.gprev {
  left: 16px !important;
}

.gbtn.gnext {
  right: 16px !important;
}

.gbtn.gprev:hover,
.gbtn.gnext:hover {
  background: #ea580c !important;
  border-color: #ea580c !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.gbtn.gprev svg,
.gbtn.gnext svg {
  width: 16px !important;
  height: 16px !important;
}

.gbtn.gprev svg path,
.gbtn.gnext svg path {
  fill: #ffffff !important;
}

/* Close (X) Button matching reference screenshot */
.gbtn.gclose {
  top: 16px !important;
  right: 20px !important;
  width: 36px !important;
  height: 36px !important;
  background: rgba(30, 41, 59, 0.95) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s ease !important;
  z-index: 999999 !important;
}

.gbtn.gclose:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  transform: scale(1.08) !important;
}

.gbtn.gclose svg path {
  fill: #ffffff !important;
}

/* Mobile Responsiveness for Modal Card */
@media (max-width: 767.98px) {
  .gslide-inner-content {
    width: 92% !important;
    border-radius: 14px !important;
  }
  .gslide-media img {
    max-height: 50vh !important;
  }
  .gslide-description {
    padding: 12px 14px !important;
  }
  .gslide-title {
    font-size: 0.95rem !important;
  }
  .gslide-desc {
    font-size: 0.76rem !important;
  }
  .gbtn.gprev,
  .gbtn.gnext {
    width: 34px !important;
    height: 34px !important;
  }
  .gbtn.gprev { left: 8px !important; }
  .gbtn.gnext { right: 8px !important; }
  .gbtn.gclose {
    top: 10px !important;
    right: 10px !important;
    width: 34px !important;
    height: 34px !important;
  }
}
