/* ==========================================================================
   L&T HYDRAULIC INDUSTRY - MODERN UI PHOTO GALLERY
   Ultra-modern, attractive, responsive industrial media gallery
   ========================================================================== */

:root {
  --gal-bg: #06141a;
  --gal-surface: #0a1f26;
  --gal-surface-card: #0d2730;
  --gal-surface-hover: #123440;
  --gal-border: rgba(72, 225, 213, 0.16);
  --gal-border-hover: rgba(99, 216, 211, 0.55);
  --gal-cyan: #39b7b2;
  --gal-cyan-bright: #63d8d3;
  --gal-cyan-glow: rgba(99, 216, 211, 0.25);
  --gal-gold: #e5b869;
  --gal-gold-glow: rgba(229, 184, 105, 0.25);
  --gal-text: #e8f4f4;
  --gal-text-muted: #8ea5ad;
  --gal-radius-sm: 10px;
  --gal-radius-md: 16px;
  --gal-radius-lg: 24px;
}

/* --------------------------------------------------------------------------
   HERO ENHANCEMENT
   -------------------------------------------------------------------------- */
.gallery-hero-wrapper {
  position: relative;
  background: radial-gradient(circle at 75% 20%, rgba(57, 183, 178, 0.12), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(229, 184, 105, 0.08), transparent 40%),
              linear-gradient(180deg, #07171d 0%, #06141a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 36px 0 32px;
  overflow: hidden;
}

.gallery-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 40px;
  align-items: center;
}

.gallery-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.gal-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99, 216, 211, 0.1);
  border: 1px solid rgba(99, 216, 211, 0.3);
  color: var(--gal-cyan-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gal-live-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gal-cyan-bright);
  box-shadow: 0 0 10px var(--gal-cyan-bright);
  animation: galPulse 2s infinite ease-in-out;
}

@keyframes galPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.gal-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gal-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.gallery-hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 0 0 16px;
}

.gallery-hero-title span {
  background: linear-gradient(135deg, #ffffff 30%, var(--gal-cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #a6bcc5;
  max-width: 620px;
  margin: 0 0 28px;
}

.gallery-stats-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gal-stat-card {
  padding: 16px;
  border-radius: var(--gal-radius-md);
  background: rgba(13, 39, 48, 0.55);
  border: 1px solid var(--gal-border);
  backdrop-filter: blur(12px);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gal-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--gal-cyan-bright);
}

.gal-stat-num {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gal-cyan-bright);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.gal-stat-num small {
  font-size: 1.1rem;
  color: var(--gal-gold);
}

.gal-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #9eb2bc;
  line-height: 1.35;
}

.gallery-hero-preview {
  position: relative;
  border-radius: var(--gal-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(99, 216, 211, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(57, 183, 178, 0.15);
  aspect-ratio: 16 / 9;
  background: #0b1a20;
}

.gallery-hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-hero-preview:hover img {
  transform: scale(1.04);
}

.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 20, 26, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.gal-hero-caption-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.gal-hero-caption-sub {
  font-size: 12px;
  color: var(--gal-cyan-bright);
}

/* --------------------------------------------------------------------------
   STICKY FILTER & CONTROLS TOOLBAR
   -------------------------------------------------------------------------- */
.gallery-toolbar-section {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(6, 20, 26, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(72, 225, 213, 0.14);
  padding: 14px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: top 0.2s ease;
}

.gallery-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* Filter Pills */
.gallery-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery-pills::-webkit-scrollbar {
  display: none;
}

.gal-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #9eb4be;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gal-pill-btn:hover {
  background: rgba(99, 216, 211, 0.09);
  border-color: rgba(99, 216, 211, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.gal-pill-btn.active {
  background: linear-gradient(135deg, #39b7b2 0%, #63d8d3 100%);
  border-color: transparent;
  color: #051419;
  box-shadow: 0 4px 18px rgba(99, 216, 211, 0.38);
}

.gal-pill-btn .pill-count {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  transition: background 0.2s ease;
}

.gal-pill-btn.active .pill-count {
  background: rgba(5, 20, 25, 0.2);
  color: #051419;
}

/* Secondary controls (Search + Layout Switcher) */
.gallery-tools-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gal-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.gal-search-box svg {
  position: absolute;
  left: 14px;
  width: 15px;
  height: 15px;
  color: var(--gal-text-muted);
  pointer-events: none;
}

.gal-search-input {
  width: 220px;
  height: 38px;
  padding: 0 34px 0 38px;
  border-radius: 999px;
  background: rgba(13, 39, 48, 0.8);
  border: 1px solid var(--gal-border);
  color: #ffffff;
  font-size: 12.5px;
  outline: none;
  transition: all 0.2s ease;
}

.gal-search-input:focus {
  width: 260px;
  border-color: var(--gal-cyan-bright);
  box-shadow: 0 0 0 3px rgba(99, 216, 211, 0.15);
  background: #0d2730;
}

.gal-search-input::placeholder {
  color: #728c98;
}

.gal-search-clear {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--gal-text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  display: none;
}

.gal-search-clear.visible {
  display: block;
}

.gal-search-clear:hover {
  color: #fff;
}

/* Layout switch buttons */
.gal-layout-switch {
  display: flex;
  align-items: center;
  background: rgba(13, 39, 48, 0.8);
  border: 1px solid var(--gal-border);
  border-radius: 999px;
  padding: 3px;
}

.gal-layout-btn {
  background: transparent;
  border: none;
  color: #8da4ad;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.gal-layout-btn svg {
  width: 16px;
  height: 16px;
}

.gal-layout-btn:hover {
  color: #fff;
}

.gal-layout-btn.active {
  background: rgba(99, 216, 211, 0.2);
  color: var(--gal-cyan-bright);
}

.gal-status-counter {
  font-size: 12px;
  color: #8da4ad;
  white-space: nowrap;
  font-weight: 600;
}

.gal-status-counter strong {
  color: var(--gal-cyan-bright);
}

/* --------------------------------------------------------------------------
   GALLERY GRID & CARDS
   -------------------------------------------------------------------------- */
.gallery-main-section {
  padding: 36px 0 40px;
  background: var(--gal-bg);
  min-height: 60vh;
}

/* Modern Masonry / Bento Style */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  transition: all 0.3s ease;
}

/* Bento Featured Mode */
.gallery-container.mode-bento {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: stretch;
}

@media (min-width: 1200px) {
  .gallery-container.mode-bento .gal-card.featured-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gallery-container.mode-bento .gal-card.featured-wide {
    grid-column: span 2;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .gallery-container.mode-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-container.mode-bento .gal-card.featured-large,
  .gallery-container.mode-bento .gal-card.featured-wide {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .gallery-container.mode-bento {
    grid-template-columns: 1fr;
  }
  .gallery-container.mode-bento .gal-card.featured-large,
  .gallery-container.mode-bento .gal-card.featured-wide {
    grid-column: span 1;
  }
}

/* Clean Column Mode */
.gallery-container.mode-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  .gallery-container.mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .gallery-container.mode-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Styling */
.gal-card {
  position: relative;
  border-radius: var(--gal-radius-md);
  overflow: hidden;
  background: var(--gal-surface-card);
  border: 1px solid var(--gal-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gal-card:hover {
  transform: translateY(-3px);
  border-color: var(--gal-border-hover);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(57, 183, 178, 0.12);
}

.gal-card:focus-visible {
  outline: 3px solid var(--gal-cyan-bright);
  outline-offset: 3px;
}

/* Card Media Wrapper */
.gal-media-box {
  position: relative;
  width: 100%;
  height: clamp(200px, 18vw, 240px);
  min-height: 0;
  flex: 0 0 auto;
  overflow: hidden;
  background: #081a20;
}

.gallery-container.mode-bento .gal-media-box {
  height: clamp(200px, 18vw, 240px);
}

@media (max-width: 767px) {
  .gallery-container.mode-bento {
    grid-auto-rows: auto;
  }
  .gallery-container.mode-bento .gal-media-box,
  .gallery-container.mode-grid .gal-media-box {
    height: clamp(200px, 45vw, 250px);
  }
}

.gal-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}

.gal-card:hover img {
  transform: scale(1.035);
  filter: brightness(1.04);
}

/* Top Badges Overlay */
.gal-card-topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
}

.gal-chip-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 20, 26, 0.82);
  border: 1px solid rgba(99, 216, 211, 0.35);
  color: var(--gal-cyan-bright);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.gal-chip-category.cat-facility {
  border-color: rgba(99, 216, 211, 0.4);
  color: #63d8d3;
}

.gal-chip-category.cat-operations {
  border-color: rgba(229, 184, 105, 0.45);
  color: #f0c377;
}

.gal-chip-category.cat-machinery {
  border-color: rgba(142, 197, 255, 0.45);
  color: #9fcbfd;
}

.gal-expand-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(6, 20, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  pointer-events: auto;
}

.gal-card:hover .gal-expand-badge {
  transform: scale(1.06);
  background: var(--gal-cyan-bright);
  border-color: transparent;
  color: #06141a;
}

.gal-expand-badge svg {
  width: 14px;
  height: 14px;
}

/* Bottom Scrim & Info */
.gal-card-footer {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #102b33, #0a2028);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gal-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.gal-card:hover .gal-card-title {
  color: var(--gal-cyan-bright);
}

.gal-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #92aab5;
}

.gal-card-loc {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gal-card-loc svg {
  width: 12px;
  height: 12px;
  color: var(--gal-cyan);
}

.gal-card-action {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gal-cyan-bright);
  opacity: 1;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gal-card:hover .gal-card-action,
.gal-card:focus-visible .gal-card-action {
  opacity: 1;
  transform: translateX(0);
}

/* Empty search result */
.gal-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--gal-surface);
  border-radius: var(--gal-radius-lg);
  border: 1px dashed rgba(72, 225, 213, 0.2);
  margin: 20px 0;
}

.gal-empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--gal-cyan);
  margin-bottom: 16px;
  opacity: 0.7;
}

.gal-empty-state h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin: 0 0 8px;
}

.gal-empty-state p {
  color: #9eb2bc;
  font-size: 0.95rem;
  margin: 0 0 20px;
}

.gal-empty-state button {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--gal-cyan);
  color: #06141a;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   MODERN INTERACTIVE LIGHTBOX
   -------------------------------------------------------------------------- */
.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(4, 12, 16, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.28s ease;
}

.gal-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Lightbox Header Bar */
.gal-lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 20, 26, 0.7);
  z-index: 10;
}

.gal-lb-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gal-lb-counter {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99, 216, 211, 0.15);
  border: 1px solid rgba(99, 216, 211, 0.35);
  color: var(--gal-cyan-bright);
}

.gal-lb-title-group h4 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.gal-lb-title-group span {
  font-size: 11.5px;
  color: #8fa6b0;
}

.gal-lb-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gal-lb-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gal-lb-btn:hover {
  background: rgba(99, 216, 211, 0.2);
  border-color: var(--gal-cyan-bright);
  color: #fff;
  transform: translateY(-1px);
}

.gal-lb-btn.btn-close {
  background: rgba(255, 75, 75, 0.12);
  border-color: rgba(255, 75, 75, 0.3);
  color: #ff7676;
  margin-left: 6px;
}

.gal-lb-btn.btn-close:hover {
  background: #ff4b4b;
  color: #fff;
  border-color: transparent;
}

.gal-lb-btn svg {
  width: 17px;
  height: 17px;
}

/* Lightbox Main Stage */
.gal-lb-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  user-select: none;
}

.gal-lb-image-holder {
  position: relative;
  max-width: 90vw;
  max-height: calc(85vh - 170px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gal-lb-img {
  max-width: 100%;
  max-height: calc(85vh - 170px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

/* Lightbox Prev / Next Arrows */
.gal-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(6, 20, 26, 0.85);
  border: 1px solid rgba(99, 216, 211, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.22s ease;
  backdrop-filter: blur(12px);
}

.gal-lb-nav:hover {
  background: var(--gal-cyan-bright);
  color: #06141a;
  border-color: transparent;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 24px rgba(99, 216, 211, 0.4);
}

.gal-lb-prev {
  left: 24px;
}

.gal-lb-next {
  right: 24px;
}

.gal-lb-nav svg {
  width: 22px;
  height: 22px;
}

/* Lightbox Bottom Thumbnail Filmstrip */
.gal-lb-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 20, 26, 0.85);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 216, 211, 0.4) transparent;
  z-index: 10;
}

.gal-lb-strip::-webkit-scrollbar {
  height: 6px;
}

.gal-lb-strip::-webkit-scrollbar-thumb {
  background: rgba(99, 216, 211, 0.4);
  border-radius: 99px;
}

.gal-lb-thumb {
  position: relative;
  flex: 0 0 74px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.45;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gal-lb-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.gal-lb-thumb.active {
  opacity: 1;
  border-color: var(--gal-cyan-bright);
  box-shadow: 0 0 14px rgba(99, 216, 211, 0.5);
  transform: scale(1.05);
}

.gal-lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile responsive adjustments */
@media (max-width: 900px) {
  .gallery-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .gallery-hero-preview {
    max-height: 280px;
  }
  .gallery-toolbar-section {
    top: 60px;
    padding: 10px 0;
  }
  .gal-search-input {
    width: 180px;
  }
  .gal-search-input:focus {
    width: 200px;
  }
}

@media (max-width: 680px) {
  .gallery-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .gallery-tools-group {
    justify-content: space-between;
  }
  .gal-search-input,
  .gal-search-input:focus {
    width: 100%;
  }
  .gal-search-box {
    flex: 1;
  }
  .gal-lb-header {
    padding: 12px 16px;
  }
  .gal-lb-title-group span {
    display: none;
  }
  .gal-lb-nav {
    width: 42px;
    height: 42px;
  }
  .gal-lb-prev { left: 10px; }
  .gal-lb-next { right: 10px; }
  .gal-stat-num { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gal-card,
  .gal-card img,
  .gal-pill-btn,
  .gallery-hero-preview img,
  .gal-live-badge::before {
    transition: none !important;
    animation: none !important;
  }
}


@media (hover: none) {
  .gal-card-action {
    opacity: 1;
    transform: none;
  }
}

/* Gallery presentation: quiet surfaces, clear hierarchy and compact photos. */
.gallery-hero-wrapper { padding: 36px 0 32px; }
.gallery-hero-title { font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.12; }
.gallery-hero-desc { max-width: 560px; font-size: 15px; }
.gallery-hero-preview { transform: rotate(1deg); border-radius: 20px; }
.gallery-stats-deck { max-width: 520px; gap: 0; }
.gal-stat-card { border: 0; border-radius: 0; background: transparent; padding: 4px 20px; backdrop-filter: none; }
.gal-stat-card:first-child { padding-left: 0; }
.gal-stat-card + .gal-stat-card { border-left: 1px solid var(--gal-border); }
.gal-stat-num { font-size: 1.6rem; }
.gal-live-badge { background: transparent; border: 0; padding-left: 0; }
.gal-live-badge::before { animation: none; box-shadow: none; }
.gallery-toolbar-section { box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.gallery-toolbar-inner { gap: 14px; }
.gallery-pills { flex: 1 1 600px; min-width: 0; }
.gal-pill-btn { padding: 9px 13px; font-weight: 600; border-radius: 10px; }
.gal-pill-btn.active { box-shadow: none; background: #63d8d3; }
.gallery-tools-group { flex: 1 1 340px; }
.gal-search-box { flex: 1; min-width: 0; }
.gal-search-input, .gal-search-input:focus { width: 100%; border-radius: 10px; height: 40px; }
.gal-layout-switch { border-radius: 10px; }
.gal-layout-btn { border-radius: 7px; min-height: 32px; }
.gallery-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.gallery-eyebrow { color: var(--gal-gold); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.gallery-section-heading h2 { color: var(--gal-text); font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin: 8px 0 0; line-height: 1.25; }
.gallery-section-heading p { color: var(--gal-text-muted); font-size: 12px; margin: 0; }
.gal-card-topbar { top: 12px; left: 12px; right: 12px; }
.gal-chip-category { font-size: 9px; letter-spacing: .04em; }
.gal-expand-badge { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; }
.gal-card-title { font-size: 14px; margin: 0; min-height: 2.8em; }
.gal-card-meta { font-size: 11px; gap: 8px; }
.gal-card-action { font-size: 11px; white-space: nowrap; }
.gal-pill-btn:focus-visible, .gal-layout-btn:focus-visible { outline: 2px solid var(--gal-gold); outline-offset: 3px; }
@media (max-width: 680px) {
  .gallery-hero-wrapper { padding: 32px 0; }
  .gallery-hero-preview { transform: none; }
  .gallery-pills, .gallery-tools-group { flex: auto; }
  .gallery-section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .gallery-main-section { padding: 28px 0 32px; }
  .gal-status-counter { display: none; }
}

/* Industrial media dashboard. */
.gallery-main-section {
  background: radial-gradient(ellipse at 45% 15%, #12bcb81a, transparent 60%),
    linear-gradient(#50d9de09 1px, transparent 1px),
    linear-gradient(90deg, #50d9de09 1px, transparent 1px), #041319;
  background-size: auto, 64px 64px, 64px 64px, auto;
  padding: 44px 0;
}
.gallery-section-heading { align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.gallery-section-heading h2 { text-transform: uppercase; }
.gallery-section-heading h2 span { color: #1ee4d2; text-shadow: 0 0 24px #11d8d966; }
.gallery-eyebrow { display: none; }
.gallery-showroom-link { color: #8de6df; font-size: 12px; padding: 10px 16px; border: 1px solid #467779; border-radius: 24px; }
.gallery-main-section .gallery-toolbar-section { position: static; background: transparent; border: 0; box-shadow: none; padding: 0 0 26px; backdrop-filter: none; }
.gallery-main-section .gallery-toolbar-section .container { width: 100%; max-width: none; padding: 0; }
.gallery-main-section .gal-pill-btn { border-radius: 24px; background: #153038; border: 1px solid #426269; color: #cbdcde; }
.gallery-main-section .gal-pill-btn.active { background: #135058; border-color: #75e5e2; color: #efffff; box-shadow: 0 0 0 3px #34c9c426, 0 0 20px #21dad644; }
.gallery-container.mode-bento { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 14px; }
.gallery-container.mode-bento .gal-card:is(.featured-large, .featured-wide) { grid-column: auto; grid-row: auto; }
.gallery-container.mode-bento .gal-card:first-child { grid-row: span 2; border-color: #75dfdf; box-shadow: 0 0 20px #36d7d642, inset 0 0 0 3px #4bded322; }
.gallery-container .gal-card { border-radius: 12px; border-color: #42636b; padding: 5px; background: linear-gradient(135deg, #153139, #0a1b22); }
.gallery-container.mode-bento .gal-media-box { flex: 1; height: auto; min-height: 0; border-radius: 8px; }
.gallery-container .gal-card-footer { padding: 10px 7px 8px; background: transparent; }
.gallery-main-section .gal-card .gal-card-title { font-size: 14px !important; line-height: 1.4 !important; min-height: 0; color: #e2eeee; }
.gallery-container .gal-card-meta { display: none; }
.gallery-container .gal-chip-category { background: #062c32df; color: #83e5dd; border: 1px solid #427c80; border-radius: 4px; font-size: 9px; }
.gallery-container .gal-card:hover { border-color: #65e3da; box-shadow: 0 0 22px #29d5cc35; }
.gallery-container .gal-card:first-child::after { content: ''; position: absolute; bottom: 3px; left: 10px; width: 30%; height: 3px; background: #60e5e2; box-shadow: 0 0 12px #54e4df; border-radius: 4px; }
.gallery-load-more { display: block; margin: 30px auto 0; padding: 13px 26px; border-radius: 28px; border: 1px solid #4b9697; background: #102c33; color: #9ce9e3; font: inherit; font-size: 13px; cursor: pointer; box-shadow: 0 0 20px #32d7ce18; }
.gallery-load-more[hidden] { display: none; }
.gallery-load-more:hover { background: #17464c; }
.gallery-load-more:focus-visible, .gallery-showroom-link:focus-visible { outline: 2px solid #7befe4; outline-offset: 4px; }
@media (max-width: 1100px) {
  .gallery-container.mode-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .gallery-container.mode-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 230px; }
  .gallery-container.mode-bento .gal-card:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 480px) {
  .gallery-container.mode-bento { grid-template-columns: 1fr; grid-auto-rows: 270px; }
  .gallery-container.mode-bento .gal-card:first-child { grid-column: auto; }
}
