/* =========================================================
   Pixalot Labs — Gallery v2 (category tab buttons)
   Clean, neat, single-tone badges (not the old thin outlined
   icon-in-circle look) — one consistent accent on hover/active,
   not a different color per category.

   Selectors are scoped as #tab-button.gv2-tabs / #tab-button .gv2-tab
   because a legacy ID rule (#tab-button{display:table}, #tab-button
   li{display:table-cell}) is loaded globally and outranks plain class
   selectors — matching the ID here is what actually wins the cascade.
   ========================================================= */

:root {
  --gv2-accent: #ff8a4c;
}

#tab-button.gv2-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 56px);
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: auto;
  table-layout: auto;
}

#tab-button .gv2-tab {
  display: block;
  width: auto;
  clip-path: none;
}

#tab-button .gv2-tab > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  border-left: none;
}

.gv2-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 8vw, 88px);
  height: clamp(64px, 8vw, 88px);
  border-radius: 50%;
  background: rgba(245, 245, 247, 0.04);
  border: 1.5px solid rgba(245, 245, 247, 0.16);
  color: #b7b7c3;
  font-size: clamp(20px, 2.4vw, 28px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}

.gv2-tab-label {
  display: block;
  font-size: clamp(12px, .85vw, 14px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: #b7b7c3;
  transition: color .25s ease;
}

#tab-button .gv2-tab > a:hover .gv2-tab-icon,
#tab-button .gv2-tab.is-active .gv2-tab-icon {
  transform: translateY(-4px);
  background: rgba(255, 138, 76, 0.12);
  border-color: var(--gv2-accent);
  color: var(--gv2-accent);
  box-shadow: 0 10px 26px -12px rgba(255, 138, 76, 0.55);
}

#tab-button .gv2-tab > a:hover .gv2-tab-label,
#tab-button .gv2-tab.is-active .gv2-tab-label {
  color: #f5f5f7;
}

@media (prefers-reduced-motion: reduce) {
  .gv2-tab-icon {
    transition: none;
  }
}

@media (max-width: 480px) {
  #tab-button.gv2-tabs { gap: 18px; }
  .gv2-tab-icon { width: 60px; height: 60px; font-size: 19px; }
}

/* Footer used a global flat #221f1f that clashes with this page's own
   background gradient (inherited from body, same as the homepage) */
.footer_section{background:transparent!important}

/* "Gallery" page title: same fix as the homepage/about-us headings — solid
   bold text instead of the legacy hollow text-stroke look, fluid sizing
   instead of the old fixed 99px/40px/... breakpoint jumps. */
.gallery_section_2D .section-title-home {
  -webkit-text-stroke: 0 !important;
  font-weight: 800 !important;
  font-size: clamp(34px, 6vw, 72px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
  margin-left: 0 !important;
  text-align: left !important;
  text-shadow: none !important;
  filter: drop-shadow(0 3px 14px rgba(0,0,0,.6)) drop-shadow(0 1px 4px rgba(0,0,0,.5));
  position: relative;
  z-index: 2;
  /* Same 3 colors as the homepage hero's .hero-v2-title-accent gradient,
     but the stops are shifted earlier — "Gallery" is a single short word
     (vs. "3D, 2D & MOTION"), so the 55% midpoint left almost no room for
     the orange to actually show before running out of letters. */
  background: linear-gradient(90deg, #a3a3a8 0%, #e8e8ea 40%, #ee7f0b 90%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Hero banner: was cropping the background image hard (content-driven
   height vs. a 2.7:1 wide source image) and giving the heading nothing to
   sit on but whatever happened to be behind it. Taller, viewport-scaled
   height shows far more of the image, and a soft top-down gradient gives
   the heading reliable contrast without hiding the art. */
.gallery_section_2D {
  position: relative;
  min-height: clamp(320px, 40vw, 620px);
  display: flex;
  align-items: center;
}

.gallery_section_2D::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,15,.55) 0%, rgba(11,11,15,.25) 35%, rgba(11,11,15,.55) 75%, rgba(11,11,15,.92) 100%),
    linear-gradient(90deg, rgba(11,11,15,.7) 0%, rgba(11,11,15,.25) 45%, transparent 65%);
  pointer-events: none;
}

.gallery_section_2D .container {
  position: relative;
  z-index: 1;
}

/* Legacy corner-bracket decorations (topic-line / left-topic-line /
   bottom-topic-line-gallery) — meant to be hidden via a shared .dn utility
   class, but hidden directly here too so this doesn't depend on that rule
   loading correctly. */
.gallery_section_2D .topic-line,
.gallery_section_2D .left-topic-line,
.gallery_section_2D .bottom-topic-line-gallery {
  display: none !important;
}

.gallery_section_2D .topic-container {
  padding-left: 0;
  margin-left: clamp(16px, 3vw, 48px);
}

.gv2-hero-sub {
  position: relative;
  z-index: 2;
  max-width: 42ch;
  margin: 10px 0 0;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.5;
  color: #b7b7c3;
  text-shadow: 0 3px 14px rgba(0,0,0,.8);
}

/* ---------- TAB LOADING STATE ----------
   A tab's grid is built (and its images start fetching) the first time it's
   opened, so there's a real gap between "clicked" and "images visible" —
   this covers that gap instead of leaving a wall of empty placeholder tiles. */
.tab-contents.gallerys {
  position: relative;
  min-height: 240px;
}

.gv2-tab-loading {
  /* Was inset:0 (stretched to match the eventual grid height, which can
     run well past a screenful — e.g. the Pano tab's tallest bento grids —
     so the spinner ended up centered far below the fold, off-screen right
     when a tab first opens). Anchoring a fixed-height band to the top
     keeps it inside the first screenful regardless of how tall the
     content underneath turns out to be. */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(60vh, 480px);
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--plv2-bg, #0b0b0f);
}

.gv2-tab-loading.is-visible {
  display: flex;
}

.gv2-tab-loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(245, 245, 247, 0.18);
  border-top-color: var(--gv2-accent, #ff8a4c);
  animation: gv2-spin 0.8s linear infinite;
}

.gv2-tab-loading-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b7b7c3;
}

@keyframes gv2-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .gv2-tab-loading-spinner { animation: none; }
}
