/* ============================================================
   GENSYS — PORTFOLIO / GALLERY PAGE STYLES (React-Style UI/UX)
   Theme: High-Performance Industrial & Commercial Power Showcase
   ============================================================ */

/* ---------- PAGE OUTER CONTAINER ---------- */
.gal-outer {
  padding-top: calc(var(--header-h) + 50px);
  padding-bottom: 90px;
  background: radial-gradient(circle at 50% 0%, rgba(32, 84, 131, 0.08) 0%, transparent 60%);
}

/* ---------- HERO / SHOWCASE HEADER ---------- */
.gal-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(17, 42, 70, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%),
    url('https://gensys.id/wp-content/uploads/2026/08/GENSYS_hero_img_ori_fix.webp?w=1600&q=80') center/cover no-repeat;
  background-blend-mode: overlay;
  border-radius: 20px;
  padding: 56px 48px 44px;
  margin-bottom: 40px;
  color: var(--white);
  box-shadow: 0 20px 50px rgba(17, 42, 70, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.gal-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.gal-hero-content {
  max-width: 780px;
  margin-bottom: 40px;
}

.gal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 191, 255, 0.12);
  border: 1px solid rgba(0, 191, 255, 0.35);
  color: var(--accent-cyan);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.gal-badge i {
  color: var(--gold);
}

.gal-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--white);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.gal-hero h1 span {
  color: var(--accent-cyan);
  background: linear-gradient(90deg, var(--accent-cyan), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gal-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

/* KPI Metrics Showcase Bar */
.gal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease, background 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 191, 255, 0.15);
  color: var(--accent-cyan);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.metric-lbl {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ---------- INTERACTIVE TOOLBAR (REACT STYLE) ---------- */
.gal-toolbar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 992px) {
  .gal-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Search Box (Clean Inline Textfield) */
.gal-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 260px;
  flex: 1 1 280px;
  width: 100%;
  box-sizing: border-box;
}

.gal-search-wrap .search-ic {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 5;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease;
}

.gal-search-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 44px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #f8fafc;
  color: var(--dark);
  font-size: 0.88rem;
  line-height: 44px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.gal-search-wrap input:focus {
  background: var(--white);
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3.5px rgba(32, 84, 131, 0.15);
}

.gal-search-wrap:focus-within .search-ic {
  color: var(--brand-blue);
}

.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 4px;
  display: none;
  cursor: pointer;
  z-index: 5;
  line-height: 1;
}

.gal-search-wrap input:not(:placeholder-shown)~.search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear:hover {
  color: var(--dark);
}

/* Filter Tabs */
.gal-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.gal-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.25s ease;
  cursor: pointer;
}

.tab-btn:hover {
  background: #e2e8f0;
  color: var(--brand-navy);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(17, 42, 70, 0.22);
}

.count-badge {
  display: inline-grid;
  place-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.tab-btn.active .count-badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Controls Right (Sorting & View Mode) */
.gal-controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.gal-sort-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  color: var(--dark);
  font-size: 0.8rem;
}

.gal-sort-box i {
  color: var(--brand-blue);
}

.gal-sort-box select {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--dark);
  cursor: pointer;
}

.gal-view-toggle {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}

.view-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.view-btn:hover {
  color: var(--dark);
}

.view-btn.active {
  background: var(--white);
  color: var(--brand-navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ---------- STATUS BAR ---------- */
.gal-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 16px;
  font-size: 0.88rem;
  color: #64748b;
}

.status-text strong {
  color: var(--dark);
}

.btn-reset-all {
  background: none;
  border: none;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.btn-reset-all:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}

/* ---------- GALLERY GRID MODE ---------- */
.gal-grid.grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  transition: all 0.4s ease;
}

.gal-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.gal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.gal-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 48px rgba(17, 42, 70, 0.14), 0 0 20px rgba(0, 191, 255, 0.12);
  border-color: rgba(32, 84, 131, 0.35);
}

.gal-card:hover::before {
  opacity: 1;
}

/* Card Media */
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gal-card:hover .card-media img {
  transform: scale(1.08);
}

.card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}

.badge-cat {
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.badge-cat.commercial {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.badge-cat.hospital {
  background: linear-gradient(135deg, #047857, #059669);
}

.badge-cat.construction {
  background: linear-gradient(135deg, #b45309, #d97706);
}

.badge-cat.datacentre {
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
}

.badge-cat.industry {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
}

.badge-status {
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 191, 255, 0.35);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-status.critical {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.45);
}

.badge-status.heavy {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.45);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 42, 70, 0.3) 0%, rgba(17, 42, 70, 0.8) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 4;
}

.gal-card:hover .card-overlay {
  opacity: 1;
}

.btn-quickview {
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--white), #f8fafc);
  color: var(--brand-navy);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(14px) scale(0.92);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
  cursor: pointer;
}

.gal-card:hover .btn-quickview {
  transform: translateY(0) scale(1);
}

.btn-quickview:hover {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0, 191, 255, 0.4);
}

/* Card Content */
.card-content {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 10px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.meta-item i {
  color: var(--brand-blue);
}

.card-title {
  font-size: 1.18rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color 0.25s ease;
  font-weight: 800;
}

.gal-card:hover .card-title {
  color: var(--brand-blue);
}

.card-snippet {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border: 1px solid #7dd3fc;
  color: #0369a1;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(32, 84, 131, 0.08);
}

.spec-pill i {
  color: var(--brand-blue);
}

.btn-card-link {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-card-link i {
  transition: transform 0.25s ease;
}

.gal-card:hover .btn-card-link {
  color: var(--brand-navy);
}

.gal-card:hover .btn-card-link i {
  transform: translateX(5px);
}

.card-link-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s;
}

.gal-card:hover .card-link-text {
  transform: translateX(3px);
}

/* ---------- GALLERY LIST MODE ---------- */
.gal-grid.list-mode {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gal-grid.list-mode .gal-card {
  flex-direction: row;
}

.gal-grid.list-mode .card-media {
  width: 280px;
  aspect-ratio: auto;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .gal-grid.list-mode .gal-card {
    flex-direction: column;
  }

  .gal-grid.list-mode .card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* Card Hide State for Filtering */
.gal-card.hide {
  display: none !important;
}

/* ---------- EMPTY STATE ---------- */
.gal-empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  margin: 20px 0;
}

.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

.gal-empty-state h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.gal-empty-state p {
  color: #64748b;
  max-width: 420px;
  margin: 0 auto 20px;
}

/* ---------- PRODUCT SHOWCASE CARDS ---------- */
.gal-showcase {
  margin-top: 60px;
}

.gal-showcase-head {
  text-align: center;
  margin-bottom: 36px;
}

.showcase-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(32, 84, 131, 0.08);
  border: 1px solid rgba(32, 84, 131, 0.25);
  color: var(--brand-blue);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.showcase-eyebrow i {
  color: var(--gold);
}

.gal-showcase-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.2;
}

.gal-showcase-head h2 span {
  background: linear-gradient(90deg, var(--brand-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gal-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}

.showcase-card {
  position: relative;
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(17, 42, 70, 0.1);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.showcase-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(17, 42, 70, 0.18), 0 0 24px rgba(0, 191, 255, 0.12);
  border-color: rgba(32, 84, 131, 0.4);
}

.showcase-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f172a;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-card:hover .showcase-media img {
  transform: scale(1.07);
}

.showcase-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 191, 255, 0.4);
  color: var(--accent-cyan);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.showcase-tag i {
  color: var(--gold);
}

.showcase-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.9s ease;
  pointer-events: none;
}

.showcase-card:hover .showcase-shine {
  transform: translateX(120%);
}

.showcase-body {
  text-align: center;
  padding: 26px 28px 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.showcase-body h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dark);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.showcase-card:hover .showcase-body h3 {
  color: var(--brand-blue);
}

.showcase-body p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}

/* ---------- CONSULTATION BANNER ---------- */
.gal-consult-banner {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #0f172a 100%);
  border-radius: 20px;
  padding: 40px 44px;
  margin-top: 60px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 16px 40px rgba(17, 42, 70, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 992px) {
  .gal-consult-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.consult-eyebrow {
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.gal-consult-banner h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 8px;
}

.gal-consult-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  max-width: 600px;
}

.consult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------- ADVANCED LIGHTBOX MODAL ---------- */
.gal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gal-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.gal-modal-box {
  width: min(1060px, 100%);
  max-height: 90vh;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gal-modal-backdrop.open .gal-modal-box {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.modal-cat-tag {
  color: var(--brand-blue);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-title-text {
  font-size: 1.35rem;
  color: var(--dark);
  text-transform: uppercase;
  line-height: 1.2;
}

.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-nav-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.modal-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--dark);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.modal-nav-btn:hover {
  background: var(--brand-navy);
  color: var(--white);
}

.counter-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--dark);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--dark);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.modal-close-btn:hover {
  background: #dc2626;
  color: var(--white);
}

/* Modal Body */
.modal-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow-y: auto;
}

@media (max-width: 850px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

.modal-media-col {
  background: #0f172a;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #1e293b;
}

.modal-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-img-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 191, 255, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
}

.modal-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.m-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.m-lbl {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.m-val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--white);
  margin-top: 2px;
}

/* Modal Info Column */
.modal-info-col {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.modal-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.m-tab {
  padding: 10px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.m-tab:hover {
  color: var(--brand-navy);
}

.m-tab.active {
  color: var(--brand-navy);
  border-bottom-color: var(--brand-blue);
}

.m-tab-pane {
  display: none;
}

.m-tab-pane.active {
  display: block;
}

.modal-description {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 20px;
}

.modal-sector-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.modal-sector-card i {
  font-size: 1.3rem;
  color: var(--brand-blue);
}

.sector-lbl {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  text-transform: uppercase;
}

.modal-sector-card strong {
  color: var(--dark);
  font-size: 0.95rem;
}

.modal-specs-list {
  display: grid;
  gap: 12px;
}

.modal-specs-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.88rem;
}

.modal-specs-list li span {
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-specs-list li span i {
  color: var(--brand-blue);
}

.modal-specs-list li strong {
  font-family: var(--font-head);
  color: var(--dark);
}

.modal-highlights-list {
  display: grid;
  gap: 10px;
}

.modal-highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
}

.modal-highlights-list i {
  color: #10b981;
  margin-top: 3px;
}

.modal-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.modal-cta-btn {
  width: 100%;
  justify-content: center;
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 991px) {
  .gal-outer {
    padding-top: 130px;
  }

  .gal-hero {
    padding: 36px 28px;
  }

  .gal-consult-banner {
    padding: 32px 28px;
  }

  .gal-search-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .gal-search-wrap input {
    height: 46px;
    line-height: 46px;
    font-size: 0.88rem;
  }
}

@media (max-width: 600px) {
  .gal-toolbar {
    padding: 14px;
  }

  .modal-head {
    padding: 16px;
  }

  .modal-info-col {
    padding: 18px;
  }

  .gal-consult-banner {
    text-align: center;
  }

  .consult-actions {
    justify-content: center;
    width: 100%;
  }

  .consult-actions .btn {
    width: 100%;
  }
}