/*
Theme Name: Nexcopy 2026
Theme URI: https://www.nexcopy.com
Author: Nexcopy
Author URI: https://www.nexcopy.com
Description: Standalone Classic Editor–first theme based on Nexcopy HTML design
Version: 1.0
*/

/* =====================================================
   ROOT VARIABLES
   ===================================================== */

:root{
  --blue-dark:#084f82;
  --blue:#084f82;
  --blue-light:#eef4f9;
  --gray:#f8f8f8;
  --text:#222;
  --orange:#f57c00;
}

*{box-sizing:border-box}

/* Prevent horizontal scroll from any full-bleed tricks */
html, body{
  overflow-x:hidden;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  line-height:1.65;
  font-size:17px;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.container{
  width:90%;
  max-width:1200px;
  margin:0 auto;
}

/* =====================================================
   HEADER (UTILITY + MAIN)
   ===================================================== */

/* Top utility row (logo + small links) */
.header-utility{
  background:#fff;
}

.header-utility .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0 10px;
}

.site-logo img{
  max-height:60px;
  width:auto;
}

/* Utility nav */
.utility-nav .menu{
  display:flex;
  gap:28px;
  list-style:none;
  margin:0;
  padding:0;
  align-items:center;
}

.utility-nav a{
  font-size:13px;
  font-weight:700;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:#222;
  padding:10px 0;
  display:inline-block;
}

.utility-nav a:hover{
  color:var(--orange);
}

/* Main nav row */
.header-main .container{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:10px 0 16px;
}

main.page-content {
  overflow-x: visible;
}


/* =====================================================
   PRIMARY NAVIGATION (CLEAN RESTORE)
   ===================================================== */

.primary-nav{margin-left:auto}

.primary-nav .menu{
  display:flex;
  gap:42px;
  list-style:none;
  margin:0;
  padding:0;
}

.primary-nav li{
  position:relative;
}

.primary-nav a{
  font-size:16px;
  font-weight:800;
  letter-spacing:0.4px;
  text-transform:none;
  color:#222;
  padding:12px 0;
  display:inline-block;
  transition:color .2s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-parent > a,
.primary-nav .current-menu-ancestor > a{
  color:var(--orange);
}


/* =====================================================
   DROPDOWNS (LEVEL 1)
   ===================================================== */

.primary-nav .sub-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:280px;
  background:#ffffff;
  padding:12px 0;
  list-style:none;
  margin:0;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
  border: 1px solid rgba(245,124,0,0.75);
  border-radius: 6px;
  z-index:9999;
}

.primary-nav li:hover > .sub-menu{
  display:block;
}

.primary-nav .sub-menu li{
  position:relative;
}

.primary-nav .sub-menu a{
  display:block;
  padding:12px 22px;
  font-size:16px;
  font-weight:500;
  letter-spacing:0;
  line-height:1.5;
  text-transform:none;
  color:#222;
  white-space:nowrap;
}

.primary-nav .sub-menu a:hover{
  background:#e8e8e8;
  color:var(--orange);
}

/* Italic for Accessory menu items */
.menu-accessory > a {
  font-style: italic;
  opacity: 0.85;
}


/* =====================================================
   DROPDOWNS (LEVEL 2) — WIDE FLYOUT RESTORED
   ===================================================== */

.primary-nav .sub-menu .sub-menu{
  top:0;
  left:100%;
  min-width:420px;
  background:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.10);
}

.primary-nav .sub-menu li:hover > .sub-menu{
  display:block;
}

/* =====================================================
   FORCE CERTAIN SUBMENUS TO OPEN LEFT
   (use class "open-left" in WP menu item)
   ===================================================== */

.primary-nav .sub-menu li.open-left > .sub-menu{
  left: auto;
  right: 100%;
}


/* =====================================================
   HOVER BRIDGE (prevents collapsing when moving mouse)
   ===================================================== */

.primary-nav .sub-menu li::after{
  content:"";
  position:absolute;
  top:0;
  right:-10px;
  width:10px;
  height:100%;
}


/* =====================================================
   HERO (HOMEPAGE)
   ===================================================== */

.hero{
  background:url("https://www.nexcopy.com/wp-content/uploads/2024/12/home-hero-bg.webp") center bottom/cover no-repeat;
  padding:140px 0 70px;
  color:#fff;
  border-bottom:none;
}

/* Make BOTH header rows transparent over hero */
.home .site-header,
.home .header-utility,
.home .header-main {
  background: transparent;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:60px;
  align-items:center;
}

.hero h1{
  font-size:3.2rem;
  font-weight:800;
  margin:0 0 12px;
}

.hero {
  overflow: hidden;
}

.hero p{
  margin:0 0 14px;
  font-size:1.15rem;
}

/* Homepage hero text = dark */
.home .hero,
.home .hero *{
  color:#2a2a2a;
}

.home .hero .btn,
.home .hero .btn *{
  color:#fff !important;
}

.home .hero .btn:hover,
.home .hero .btn:hover *{
  color:var(--orange) !important;
}

/* Default header: normal flow */
.site-header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

/* Homepage: header overlays hero */
.home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  border-bottom: none;
  z-index: 10;
}

/* Hero needs top breathing room so text doesn't hide under header */
.home .hero {
  padding-top: 200px;
}

/* Lower only the hero image (right column) */
.hero-grid > :last-child img {
  margin-top: 40px;
}


/* =====================================================
   INTERIOR HERO
   ===================================================== */

.interior-hero{
  background:url("https://www.nexcopy.com/wp-content/uploads/2024/12/home-hero-bg.webp") center top/cover no-repeat;
  padding:70px 0 60px;
}

.interior-hero h1{
  font-size:3.05rem;
  font-weight:800;
  margin:0;
  color:#2a2a2a !important;
}

.interior-hero,
.interior-hero *{
  color:#2a2a2a !important;
}

/* =====================================================
   CTA HERO SLICE (Reach Out Today background band)
   ===================================================== */

.section.cta-hero-slice {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 0 0 100vmax rgba(8,79,130,0.40);
  clip-path: inset(0 -100vmax);
}

/* Full-bleed background image layer */
.section.cta-hero-slice::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(8,79,130,0.40), rgba(8,79,130,0.40)),
    url("https://www.nexcopy.com/wp-content/uploads/2024/12/home-hero-bg.webp")
    center 55% / cover no-repeat;
  box-shadow: 0 0 0 100vmax rgba(8,79,130,0.40);
  clip-path: inset(0 -100vmax);
  z-index: 0;
}

/* Ensure content sits above background */
.section.cta-hero-slice > * {
  position: relative;
  z-index: 1;
}


/* =====================================================
   SECTIONS / HOME BLOCKS
   ===================================================== */

.hero-subhead{
  font-size: 3.0rem;
  line-height: 1.3;
}

.section{padding:90px 0}

.section.light{background:#fff}
.section.soft{background:var(--blue-light)}

.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}

.split > *{min-width:0}

.shape{
  height:70px;
  background:linear-gradient(to bottom, #fff, var(--blue-light));
}

/* Full-bleed band (works inside containers safely) */
.full-width-soft{
  background: var(--blue-light);
  padding: 80px 0;
  margin-top: 24px;
  box-shadow: 0 0 0 100vmax var(--blue-light);
  clip-path: inset(0 -100vmax);
}

/* Products stripe */
.products{
  padding:70px 0;
  background:var(--blue-dark);
  color:#fff;
  text-align:center;
}

.products h3{
  margin:0 0 10px;
  font-size:1.8rem;
  font-weight:800;
}

.products p{
  max-width:760px;
  margin:0 auto 18px;
  opacity:.95;
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
}

.card{
  background:#f7f7f7;
  border-radius:14px;
  padding:20px;
  box-shadow:0 8px 18px rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.04);
  text-align:center;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
}

.card h5{
  margin:0 0 14px;
  font-size:18px;
  font-weight:700;
  letter-spacing:0.5px;
  line-height:1.25;
}

.card img {
  margin-bottom:14px;
  border-radius:10px;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

.card p {
  font-size:0.95rem;
  line-height:1.45;
  color: #444;
}


/* =====================================================
   FULL-WIDTH BLUE SECTION
   ===================================================== */

.section.full-width-blue {
  background: #8fb6d1;  /*old color #9fb9cc*/
  padding: 40px 0;
  box-shadow: 0 0 0 100vmax #8fb6d1;  /*old color #9fb9cc*/
  clip-path: inset(0 -100vmax);
  color: #fff;
}

.section.full-width-blue * {
  color: #fff;
}

/* =====================================================
   TECH SPECS UL — with clean row separators
   ===================================================== */

.tech-specs {
}

.tech-specs dt {
}

.tech-specs dd {
}

.tech-specs ul.tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-specs ul.tech-list li {
  padding: 10px 14px;
  border-bottom: 1px solid #e6e6e6;
  background: #fff;
}

.tech-specs ul.tech-list li a {
  display: block;
  text-decoration: none;
}

/* =====================================================
   TECH SPECS DL — with clean row separators
   ===================================================== */

.tech-specs{
  max-width:880px;
  margin:0 auto;
}

.tech-specs dl{
  display:grid;
  grid-template-columns:260px 1fr;
  column-gap:28px;
  row-gap:0;
  margin:0;
}

.tech-specs dt,
.tech-specs dd{
  margin:0;
  padding:10px 0;
}

.tech-specs dt{
  font-weight:600;
  border-bottom:1px solid #ccc;
}

.tech-specs dd{
  border-bottom:1px solid #ccc;
}

.tech-specs dl > dt:last-of-type,
.tech-specs dl > dd:last-of-type{
  border-bottom:none;
}


/* =====================================================
   PAGE LAYOUT — CONTENT + SIDEBAR
   ===================================================== */

.page-layout{
  display:flex;
  gap:40px;
}

.page-sidebar{
  flex:0 0 225px;
  padding-top:48px;
}

.page-main{
  flex:1 1 auto;
  min-width:0;
}

/* Product sidebar — tuned to match body typography */

.product-sidebar{
  font-size:16px;
  line-height:1.6;
}

.product-sidebar .sidebar-title{
  font-size:18px;
  font-weight:700;
  color:var(--blue);
  margin-bottom:14px;
  padding-bottom:6px;
  border-bottom:1px solid #ddd;
  letter-spacing:0;
}

.product-sidebar-list{
  list-style:none;
  margin:0;
  padding:0;
}

.product-sidebar-list li{
  position:relative;
}

.product-sidebar-list li a{
  display:block;
  padding:8px 0 8px 14px;
  color:var(--text);
  font-weight:400;
  transition:color .15s ease;
}

.product-sidebar-list li a:hover{
  color:var(--orange);
}

.product-sidebar-list li.is-current::before{
  content:"";
  position:absolute;
  left:0;
  top:6px;
  bottom:6px;
  width:4px;
  background:var(--orange);
  border-radius:2px;
}

.product-sidebar-list li.is-current a{
  font-weight:600;
  color:var(--text);
}

/* Technical Sidebar Navigation */
.tech-sidebar-widget {
  padding: 0.75rem 0;
}

.tech-sidebar-title {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.tech-sidebar-nav {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

.tech-sidebar-nav li {
  margin-bottom: 0.5rem;
}

.tech-sidebar-nav a {
  text-decoration: none;
  color: #222;
}

.tech-sidebar-nav a:hover {
  color: #2a6a96;
  text-decoration: none;
}

.tech-sidebar-download a {
  font-weight: 500;
  color: #2a6a96;
  text-decoration: none;
}

.tech-sidebar-download a:hover {
  text-decoration: underline;
}

/* =========================================================
   CONTROLLED MEDIA SIDEBAR — CLEAN (NO ACTIVE BAR)
   ========================================================= */

/* Reset list styling inside the sidebar */
.page-sidebar ul.product-sidebar-list.controlled-media{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* List items */
.page-sidebar ul.product-sidebar-list.controlled-media li{
  margin: 0 0 10px 0;
  padding: 0;
  text-align: left;
}

/* Primary link text */
.page-sidebar ul.product-sidebar-list.controlled-media a{
  display: block;
  margin: 0;
  padding: 0;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

/* Secondary description text */
.page-sidebar ul.product-sidebar-list.controlled-media em{
  display: block;
  margin: 2px 0 0 0;
  font-size: 0.65em;
  line-height: 1.2;
  color: #666;
  text-align: left;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

.page-main {
  font-size: 18px;
  line-height: 1.7;
}

.page-main p {
  margin-bottom: 1.1em;
}

.page-main .page-intro {
  font-size: 19px;
  font-weight: 500;
  max-width: 780px;
}

/* Inline links inside page content */
.page-main a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.page-main a:hover {
  color: var(--orange);
}

/* =====================================================
   TAXONOMY / REFERENCE LINKS
   Subtle dotted underline to indicate definition links
   ===================================================== */

.page-main a[href^="/technical/references/#"]{
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-main a[href^="/technical/references/#"]:hover{
  text-decoration-style: solid;
}


/* =====================================================
   NEXCOPY STYLED LIST (blue dots + separators)
   Apply class: class="nex-list" to any <ul>
   ===================================================== */

.nex-list{
  list-style:none;
  margin:0;
  padding:0;
}

.nex-list li{
  position:relative;
  padding:12px 0 12px 36px;
  border-bottom:1px solid #ddd;
  font-weight:400;
}

.nex-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:10px;
  height:10px;
  background:var(--blue);
  border-radius:50%;
}

.nex-list li:last-child{
  border-bottom:none;
}

/* =====================================================
   BUTTONS
   ===================================================== */

a.btn{
  background:var(--orange) !important;
  color:#fff !important;
  border:2px solid var(--orange) !important;
  font-weight:500;
  border-radius:999px !important;
  padding:14px 32px;
  line-height:1.1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-transform:uppercase;
  letter-spacing:0.08em;
}

a.btn:hover{
  background:#fff !important;
  color:var(--orange) !important;
  box-shadow:0 8px 18px rgba(0,0,0,.15);
}

/* CTA spacing */
.page-main .btn{
  margin:36px 0 48px;
}

/* =====================================================
   TOC BUTTONS
   ===================================================== */

.toc-buttons{
  display:flex;
  gap:14px;
  width:75%;
  margin:24px 0 36px;
}

.toc-buttons .btn{
  flex:1 1 0;
  text-align:center;
  white-space:nowrap;
  padding:14px 0;
  margin:0;
  font-size:14px;
  transition:
    background-color .2s ease,
    color .2s ease,
    box-shadow .2s ease,
    transform .15s ease;
}

.toc-buttons .btn:hover{
  transform:translateY(-1px);
}

@media (max-width:900px){
  .toc-buttons{
    width:100%;
    flex-wrap:wrap;
  }
  .toc-buttons .btn{
    flex:1 1 48%;
  }
}

/* =====================================================
   TOP NAV PILLS (Newsroom / Support / Contact)
   ===================================================== */

.top-nav-pills{
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 0;
}

.top-nav-pills a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  color: #f57c00;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  box-shadow:
    0 8px 18px rgba(0,0,0,0.10),
    0 1px 0 rgba(255,255,255,0.7) inset;
  transition: all .15s ease;
}

/* icon color follows text */
.top-nav-pills a svg{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

/* hover = orange pill, white text */
.top-nav-pills a:hover,
.top-nav-pills a:focus-visible{
  background: #f57c00;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px rgba(0,0,0,0.18),
    0 1px 0 rgba(255,255,255,0.2) inset;
  outline: none;
}

/* responsive */
@media (max-width: 720px){
  .top-nav-pills{
    gap: 10px;
    padding: 12px 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  .top-nav-pills a{
    font-size: 15px;
    padding: 10px 14px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .tech-toc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 500px) {
  .tech-toc-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   FOOTER
   ===================================================== */

footer{
  padding:70px 0 30px;
  background:
    linear-gradient(rgba(0,0,0,.75),rgba(0,0,0,.75)),
    url("https://www.nexcopy.com/wp-content/uploads/2024/12/home-hero-bg.webp")
      center bottom / cover no-repeat;
  color:#fff;
}

footer .footer-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:60px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

footer .footer-grid > *{
  display:flex;
}

footer .footer-grid > * > *{
  flex:1;
  display:flex;
  flex-direction:column;
  background: rgba(255,255,255,0.06);
  border-radius:18px;
  padding:28px 26px;
}

footer h6{
  margin:0 0 12px;
  font-size:15px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

footer ul{
  list-style:none;
  margin:0;
  padding:0;
}

footer li{
  margin:0;
  padding:0;
}

footer a:hover{
  color:var(--orange);
}

footer .footer-logo-link{
  display:inline-block;
  line-height:0;
}

footer img.footer-logo{
  display:block;
  width:160px;
  height:auto;
  filter: brightness(0) invert(1);
}

footer .copy{
  width:100%;
  text-align:center;
  margin:34px 0 0;
  font-size:14px;
  opacity:.85;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr; gap:34px}
  .split{grid-template-columns:1fr; gap:40px}
  .cards{grid-template-columns:1fr}
  .page-layout{flex-direction:column}
  .page-sidebar{padding-top:0}
}

@media(max-width:520px){
  footer .footer-grid{grid-template-columns:1fr}
}

/* Remove WordPress admin-bar offset */
html {
  margin-top: 0 !important;
}

/* If logged in, push fixed header down instead */
body.admin-bar .site-header {
  top: 32px;
}

/* --- Pill icon swap (final, cleaned) --- */

.top-nav-pills .icon-wrap {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}

.top-nav-pills .icon-wrap img {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  transform: scale(1.25);
  transform-origin: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* show dark icon by default */
.top-nav-pills .icon-wrap .icon-default {
  opacity: 1;
}

/* on hover swap */
.top-nav-pills a:hover .icon-default {
  opacity: 0;
}

.top-nav-pills a:hover .icon-hover {
  opacity: 1;
}

/* alignment */
.top-nav-pills a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Default (not hovering) = orange */
.top-nav-pills img {
  filter: brightness(0) saturate(100%) invert(45%) sepia(96%) saturate(746%)
          hue-rotate(360deg) brightness(101%) contrast(103%);
}

/* On hover = white */
.top-nav-pills a:hover img {
  filter: brightness(0) invert(1);
}

/* alignment + equal pill sizing */
.top-nav-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  padding: 10px 18px;
  text-align: center;
}

/* USB DRIVE SIZE TABLE CSS */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tech-table thead th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #ddd;
  background: #f7f7f7;
  font-weight: 600;
}

.tech-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.tech-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.tech-table tbody tr:hover {
  background: #f1f7fb;
}

/* Right align numeric columns */
.tech-table td:nth-child(3),
.tech-table td:nth-child(4),
.tech-table td:nth-child(5),
.tech-table td:nth-child(6),
.tech-table td:nth-child(7),
.tech-table td:nth-child(8) {
  text-align: right;
  white-space: nowrap;
}

/* =========================================================
   Nexcopy Product Image Gallery (single-authority)
   ========================================================= */

.nx-gallery{
  display:grid !important;
  grid-template-columns: 1fr 140px !important;
  align-items: stretch !important;
  gap:8px;
  width:100%;
  max-width:100%;
  margin:1.5rem 0;
  float:none;
  clear:both;
}

/* MAIN IMAGE */
.nx-main{
  border:1px solid #e6e6e6;
  background:#fff;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.nx-main img{
  display:block;
  width:100%;
  height:auto;
  max-height:620px;
  object-fit:contain;
}

/* THUMBNAILS COLUMN */
.nx-thumbs{
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  align-items:stretch !important;
  gap:6px;
}

.nx-thumbs img{
  display:block;
  width:100%;
  height:auto;
  max-height:110px;
  object-fit:contain;
  border:1px solid #e0e0e0;
  background:#fff;
  padding:6px;
  cursor:pointer;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.nx-thumbs img:hover{
  border-color:#2a6a96;
}

.nx-thumbs img.is-active{
  border-color:#2a6a96;
  box-shadow:0 0 0 1px #2a6a96;
}

/* kill any theme-inserted paragraphs in the gallery wrapper */
.nx-gallery > p{
  display:none !important;
}

/* Mobile behavior */
@media (max-width:640px){
  .nx-gallery{
    grid-template-columns:1fr !important;
  }

  .nx-thumbs{
    flex-direction:row !important;
    justify-content:flex-start !important;
    gap:6px;
  }

  .nx-thumbs img{
    flex:1 1 0;
    max-height:110px;
  }
}

/* TECH REF IMAGES */
.tech-ref-image {
  float: right;
  width: 200px;
  margin: 0 0 1rem 1rem;
  text-align: center;
}

.tech-ref-image img {
  width: 100%;
  height: auto;
  display: block;
}

.tech-ref-image figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}


/* ============================
   VIDEO SECTION — FINAL (LOCKED)
   ============================ */

.video-stack{
  display:flex;
  flex-direction:column;
  gap:16px;
  max-width:1200px;
  margin:0 auto;
}

/* One video unit */
.video-row{
  display:block;
  position:relative;
  transform: translateZ(0);
  cursor:pointer;
}

/* Orange pill label (above video) */
.video-pill{
  display:inline-block;
  margin-bottom:8px;
  padding:12px 26px;
  background:var(--orange);
  color:#fff;
  font-weight:700;
  font-size:14px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  border-radius:999px;
  line-height:1.25;
  white-space:normal;
  cursor:pointer;
  border:2px solid transparent;
  box-sizing:border-box;
  pointer-events:auto;
  transition:
    background-color .15s ease,
    color .15s ease,
    border-color .15s ease;
}

/* Hover feedback — PILL ONLY */
.video-pill:hover{
  background:#fff;
  color:var(--orange);
  border-color:var(--orange);
}

/* Video frame — further indented */
.video-frame{
  margin-left:140px;
  max-width:760px;
  aspect-ratio:16 / 9;
  background:#fff;
  border-radius:18px;
  box-shadow:0 12px 28px rgba(0,0,0,0.18);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

/* Thumbnail / inline video (NON-interactive) */
.video-frame video,
.video-frame img{
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
}

/* ============================
   MOBILE BEHAVIOR
   ============================ */

@media (max-width: 720px){
  .video-frame{
    margin-left:0;
    max-width:100%;
  }
}

@media (max-width: 720px){
  .video-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .video-pill{
    flex:0 0 auto;
    max-width:100%;
    margin-bottom:12px;
  }

  .video-frame{
    max-width:100%;
  }
}

/* ============================
   VIDEO MODAL — FORCE OVERLAY
   ============================ */

.video-modal{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 999999 !important;
}

.video-modal.active{
  display: flex !important;
}

.video-modal-inner{
  position: relative;
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
}

#videoPlayer{
  width: 100%;
  height: 100%;
  display: block;
}

.video-close{
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}
