/* ========================================
   United Textile - About (narrative / Gore-like)
   ======================================== */

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-inview .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-inview .reveal-child:nth-child(1) { transition-delay: 0.06s; }
.reveal.is-inview .reveal-child:nth-child(2) { transition-delay: 0.14s; }
.reveal.is-inview .reveal-child:nth-child(3) { transition-delay: 0.22s; }
.reveal.is-inview .reveal-child:nth-child(4) { transition-delay: 0.3s; }
.reveal.is-inview .reveal-child:nth-child(5) { transition-delay: 0.38s; }
.reveal.is-inview .reveal-child:nth-child(6) { transition-delay: 0.46s; }

/* Banner — title-forward, quieter lead */
.page-about .inner-banner--about {
  min-height: min(82vh, 760px);
  align-items: center;
}

.page-about .inner-banner--about .inner-banner-content {
  max-width: min(920px, 100%);
  padding: calc(var(--header-h) + 56px) 0 72px;
}

.page-about .inner-banner--about .inner-banner-title {
  font-size: clamp(52px, 9vw, 104px);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.page-about .inner-banner-shade {
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.22) 48%,
    rgba(0, 0, 0, 0.38) 100%
  );
}

/* Floating subnav — no dark bar */
.inner-subnav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 0;
}

.inner-subnav-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.inner-subnav-list::-webkit-scrollbar {
  display: none;
}

.inner-subnav a {
  flex: 0 0 auto;
  padding: 16px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.inner-subnav a:hover,
.inner-subnav a.active {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.inner-subnav.is-fixed {
  position: fixed;
  top: var(--header-h);
  bottom: auto;
  background: rgba(255, 255, 255, 0.97);
  border-top: 0;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.inner-subnav.is-fixed a {
  color: var(--text-muted);
}

.inner-subnav.is-fixed a:hover,
.inner-subnav.is-fixed a.active {
  color: var(--text-dark);
  border-bottom-color: var(--text-dark);
}

.inner-subnav-spacer {
  height: 0;
}

.inner-subnav-spacer.is-on {
  height: 54px;
}

/* ---- Narrative primitives ---- */
.ns-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.ns-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.ns-text {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.72;
  color: var(--text);
}

.ns-cms {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.72;
  color: var(--text);
}

.ns-cms p {
  margin: 0;
}

.ns-cms p + p {
  margin-top: 20px;
}

.ns-text + .ns-text {
  margin-top: 20px;
}

.ns-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: opacity 0.3s ease;
}

.ns-link:hover {
  opacity: 0.65;
}

/* Opening / story narrow column */
.ns-intro {
  background: var(--white);
  color: var(--text);
  padding: clamp(88px, 12vw, 140px) 0;
}

.ns-intro .wrap {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.ns-intro .ns-heading {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.ns-intro .ns-text,
.ns-intro .ns-cms {
  margin-left: auto;
  margin-right: auto;
}

.ns-story {
  background: var(--white);
  padding: clamp(88px, 12vw, 140px) 0;
}

.ns-story .wrap {
  max-width: 760px;
}

.ns-story--soft {
  background: #f5f6f7;
}

.ns-band {
  background: #f5f6f7;
  color: var(--text);
  padding: clamp(88px, 12vw, 140px) 0;
}

.ns-band .wrap {
  max-width: 1200px;
}

.ns-band .ns-head-center,
.ns-band > .wrap > .ns-text,
.ns-band > .wrap > .ns-heading,
.ns-band > .wrap > .ns-kicker {
  max-width: 760px;
}

.ns-band--white {
  background: var(--white);
}

/* Cinema full-bleed title bands (photo, not solid black) */
.ns-cinema {
  position: relative;
  min-height: min(68vh, 680px);
  overflow: hidden;
  background: #eef1f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ns-cinema img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) brightness(0.92);
  transform: scale(1.06);
  transition: transform 8s ease-out, filter 1.2s ease;
}

.ns-cinema.is-ready img {
  transform: scale(1);
}

.ns-cinema-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 31, 74, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 55%,
    rgba(18, 31, 74, 0.18) 100%
  );
  z-index: 1;
}

.ns-cinema strong {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  padding: 0 24px;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.ns-cinema--left {
  justify-content: flex-start;
}

.ns-cinema--left strong {
  text-align: left;
  padding-left: var(--page-pad);
  max-width: 16ch;
}

.ns-cinema-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
}

.ns-cinema-center strong {
  position: static;
  padding: 0;
  max-width: none;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.ns-cinema-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.88);
}

.ns-cinema-icons svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ns-head-center {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.ns-head-center .ns-text {
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: clamp(16px, 1.4vw, 19px);
}

/* Service flow — icon cards */
.ns-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.ns-flow li {
  text-align: center;
  padding: 12px 16px 8px;
}

.ns-flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border: 1.5px solid rgba(26, 45, 110, 0.22);
  border-radius: 50%;
  color: var(--blue);
}

.ns-flow-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  /* Unify mixed PNG colors to brand blue #1a2d6e */
  filter: brightness(0) saturate(100%) invert(14%) sepia(55%) saturate(1800%) hue-rotate(205deg) brightness(0.92);
}

.ns-flow em {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--blue-light);
  margin-bottom: 10px;
}

.ns-flow strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.ns-flow p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 22rem;
  margin: 0 auto;
}

/* Asymmetric media row */
.ns-asym {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 28px);
  min-height: 560px;
  background: var(--white);
  color: var(--text);
  margin: clamp(28px, 4vw, 48px) var(--page-pad);
  box-sizing: border-box;
}

.page-about .ns-asym + .ns-cinema {
  margin-top: clamp(12px, 2vw, 24px);
}

.ns-asym-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 96px) var(--page-pad);
  background: #f5f6f7;
}

.ns-asym-copy .ns-text {
  max-width: 34rem;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--text-muted);
}

.ns-asym-media {
  min-height: 420px;
  overflow: hidden;
}

.ns-asym-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  display: block;
  transition: transform 1s ease;
}

.ns-asym-media:hover img {
  transform: scale(1.03);
}

.ns-asym--flip .ns-asym-copy {
  order: 2;
}

.ns-asym--flip .ns-asym-media {
  order: 1;
}

/* Service steps — legacy kept unused */
.ns-steps { display: none; }

/* Product carousel */
.ns-prod-slider {
  position: relative;
  margin-top: 56px;
  padding: 0;
}

.ns-prod-track {
  position: relative;
  overflow: hidden;
}

.ns-prod-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(28px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0.5s ease;
}

.ns-prod-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 1;
}

.ns-prod-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  align-items: stretch;
  color: var(--text-dark);
  min-height: 360px;
}

.ns-prod-row:hover .ns-prod-media img {
  transform: scale(1.04);
}

.ns-prod-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(8px, 1.5vw, 20px) clamp(28px, 4vw, 56px) clamp(24px, 3vw, 36px) 0;
}

.ns-prod-copy em {
  display: block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.ns-prod-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.ns-prod-copy p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 18px;
}

.ns-prod-copy span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
}

.ns-prod-media {
  overflow: hidden;
  min-height: 360px;
  background: #eef1f3;
}

.ns-prod-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.9s ease;
}

/* Arrows under left text column */
.ns-prod-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding-right: clamp(28px, 4vw, 56px);
  width: 52.5%;
  max-width: 52.5%;
  box-sizing: border-box;
}

.ns-prod-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 1.5px solid var(--text-dark);
  border-radius: 0;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  line-height: 0;
  transition: background 0.25s ease, color 0.25s ease;
}

.ns-prod-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.ns-prod-btn:hover {
  background: var(--text-dark);
  color: var(--white);
}

/* Dots separate — under image side */
.ns-prod-dots {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  width: 47.5%;
  margin-left: auto;
}

.ns-prod-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #c5ccd2;
  cursor: pointer;
}

.ns-prod-dots button.is-active {
  background: var(--text-dark);
}

.ns-flag {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
  margin-top: 72px;
  padding-top: 0;
  border-top: 0;
  width: 100%;
}

.ns-flag article {
  min-width: 0;
}

.ns-flag article + article {
  margin-top: 0;
}

.ns-flag h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.ns-flag p {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: none;
}

/* Values — icon commitment cards */
.ns-values {
  background: var(--white);
  padding: clamp(96px, 12vw, 150px) 0;
}

.ns-commit {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 40px;
  max-width: 980px;
  margin: 0 auto;
}

.ns-commit li {
  text-align: center;
  padding: 8px 20px;
}

.ns-commit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: var(--blue);
}

.ns-commit-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(14%) sepia(55%) saturate(1800%) hue-rotate(205deg) brightness(0.92);
}

.ns-commit strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1;
}

.ns-commit p {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto;
}

/* Cert strip — quiet, not a wall */
.ns-cert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 36px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.ns-cert-row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(0.2);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.ns-cert-row img:hover {
  opacity: 1;
  filter: none;
}

.ns-std {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

.ns-std span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Closing CTA — text above, image below */
.ns-cta {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  color: var(--text-dark);
}

.ns-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: clamp(64px, 8vw, 96px);
  background: var(--white);
}

.ns-cta-copy .ns-heading {
  color: var(--text-dark);
  max-width: 12ch;
  margin-bottom: 20px;
}

.ns-cta-copy .ns-text {
  color: var(--text-muted);
  max-width: 34rem;
  font-size: clamp(16px, 1.35vw, 18px);
}

.ns-cta-actions {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(11, 11, 11, 0.12);
}

.ns-cta-actions li {
  border-bottom: 1px solid rgba(11, 11, 11, 0.12);
}

.ns-cta-actions a {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 6px;
  padding: 22px 8px 22px 0;
  color: var(--text-dark);
  transition: padding-left 0.25s ease;
}

.ns-cta-actions a:hover {
  padding-left: 8px;
}

.ns-cta-actions em {
  grid-row: 1 / span 2;
  align-self: center;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--blue-light);
}

.ns-cta-actions strong {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ns-cta-actions span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

.ns-cta-media {
  position: relative;
  width: 100%;
  height: min(90vh, 960px);
  overflow: hidden;
  background: #e8eaed;
}

.ns-cta-media::before,
.ns-cta-media::after {
  display: none !important;
  content: none !important;
}

.ns-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
  opacity: 1;
}

/* Responsive */
@media (max-width: 960px) {
  .ns-asym,
  .ns-asym--flip,
  .ns-prod-row,
  .ns-flow,
  .ns-commit,
  .ns-cta-inner {
    grid-template-columns: 1fr;
  }

  .ns-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .ns-asym--flip .ns-asym-copy,
  .ns-asym--flip .ns-asym-media {
    order: initial;
  }

  .ns-asym-media img {
    min-height: 360px;
  }

  .ns-prod-copy {
    padding: 36px 0 20px;
  }

  .ns-prod-media,
  .ns-prod-media img,
  .ns-prod-row {
    min-height: 280px;
  }

  .ns-prod-nav,
  .ns-prod-dots {
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding-right: 0;
    justify-content: flex-start;
  }

  .ns-prod-dots {
    margin-top: 16px;
  }

  .ns-flag {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .ns-cinema {
    min-height: 48vh;
  }

  .ns-flow,
  .ns-commit {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-child,
  .ns-cinema img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Qualifications & Honors carousel ---- */
.ns-honor {
  background: var(--white);
  padding: clamp(72px, 10vw, 120px) 0;
}

.ns-honor .ns-head-center {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.ns-honor-frame {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  background: #f5f6f7;
  overflow: hidden;
}

.ns-honor-viewport {
  overflow: hidden;
  width: 100%;
}

.ns-honor-track {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ns-honor-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: clamp(28px, 4vw, 48px);
}

.ns-honor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-height: min(52vh, 420px);
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: var(--text-dark);
  padding: 0;
}

.ns-honor-card img {
  display: block;
  max-width: min(100%, 520px);
  max-height: min(42vh, 340px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.ns-honor-card span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--text-muted);
}

.ns-honor-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(18, 31, 74, 0.14);
  transition: background 0.25s ease, color 0.25s ease;
}

.ns-honor-nav svg {
  width: 22px;
  height: 22px;
}

.ns-honor-nav:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.ns-honor-prev {
  left: 16px;
}

.ns-honor-next {
  right: 16px;
}

/* Lightbox */
.ns-honor-lb {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ns-honor-lb[hidden] {
  display: none !important;
}

.ns-honor-lb.is-open {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ns-honor-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 31, 74, 0.72);
}

.ns-honor-lb-dialog {
  position: relative;
  z-index: 1;
  max-width: min(960px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ns-honor-lb-dialog img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.ns-honor-lb-dialog p {
  margin: 0;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.ns-honor-lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ns-honor-lb-close svg {
  width: 24px;
  height: 24px;
}

.ns-honor-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.ns-honor-lb-prev {
  left: max(12px, calc(50% - 520px));
}

.ns-honor-lb-next {
  right: max(12px, calc(50% - 520px));
}

body.ns-honor-lb-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .ns-honor-nav {
    width: 40px;
    height: 40px;
  }

  .ns-honor-prev {
    left: 8px;
  }

  .ns-honor-next {
    right: 8px;
  }

  .ns-honor-lb-prev {
    left: 8px;
  }

  .ns-honor-lb-next {
    right: 8px;
  }
}
