/* ==========================================================================
   Creative Exhibition — Rad Web Studios
   World-class art-directed portfolio experience
   ========================================================================== */

.creative-page {
  --cx-orange: var(--at-theme-primary, #F0460E);
  --cx-ink: var(--at-neutral-900, #1d1d1d);
  --cx-paper: var(--at-neutral-0, #fefefe);
  --cx-mute: #6b6b6b;
  --cx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cx-side: clamp(24px, 7vw, 96px);
  --cx-gap: clamp(64px, 10vh, 160px);
  position: relative;
  isolation: isolate;
  /* Opaque so the fixed footer does not show through the page */
  background-color: var(--cx-paper) !important;
  overflow: visible;
  min-height: 100vh;
}

.creative-shell {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: var(--cx-side);
  padding-right: var(--cx-side);
}

/* --------------------------------------------------------------------------
   LAYER 1 — Living atmosphere (covers full main height, hides footer behind)
   -------------------------------------------------------------------------- */
.creative-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.creative-atmosphere__base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 18% 8%, rgba(240, 70, 14, 0.05), transparent 55%),
    radial-gradient(ellipse 60% 45% at 88% 78%, rgba(29, 29, 29, 0.03), transparent 50%),
    linear-gradient(180deg, #f7f7f5 0%, #f2f1ef 100%);
}

.creative-atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  /* Soft radial only — no live blur filter (major lag source) */
  opacity: 0.7;
  pointer-events: none;
}

.creative-atmosphere__glow--a {
  width: min(55vw, 640px);
  height: min(55vw, 640px);
  top: 8%;
  left: -8%;
  background: radial-gradient(circle, rgba(240, 70, 14, 0.16) 0%, transparent 70%);
}

.creative-atmosphere__glow--b {
  width: min(45vw, 520px);
  height: min(45vw, 520px);
  top: 45%;
  right: -6%;
  background: radial-gradient(circle, rgba(120, 110, 100, 0.12) 0%, transparent 70%);
}

.creative-atmosphere__glow--c {
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  bottom: 5%;
  left: 35%;
  background: radial-gradient(circle, rgba(240, 70, 14, 0.08) 0%, transparent 70%);
  display: none; /* one less layer */
}

.creative-atmosphere__lines {
  display: none;
}

.creative-atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(29, 29, 29, 0.04) 2px,
    rgba(29, 29, 29, 0.04) 3px
  );
  pointer-events: none;
}

.creative-atmosphere__particles {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */
.creative-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: #111;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.creative-intro.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.creative-intro.is-done {
  opacity: 0;
  visibility: hidden;
}

.creative-intro__mark {
  font-size: 11px;
  letter-spacing: 0.42em;
  font-weight: 600;
  text-indent: 0.42em;
}

.creative-intro__bar {
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.creative-intro__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--cx-orange);
  transition: width 0.7s var(--cx-ease);
}

.creative-intro.is-active .creative-intro__bar span {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.creative-hero {
  position: relative;
  z-index: 2;
  padding: clamp(140px, 18vh, 200px) 0 clamp(48px, 8vh, 96px);
}

.creative-hero__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cx-orange);
  margin-bottom: 22px;
}

.creative-hero__title {
  margin: 0 0 28px;
  font-size: clamp(4.5rem, 14vw, 10.5rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--cx-ink);
}

.creative-hero__text {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  line-height: 1.65;
  color: var(--cx-mute);
}

.creative-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 48px;
}

.creative-hero__meta-item span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 6px;
}

.creative-hero__meta-item strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cx-ink);
}

.creative-hero__statement {
  position: absolute;
  right: var(--cx-side);
  bottom: 8%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cx-ink);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Filters
   -------------------------------------------------------------------------- */
.creative-filters {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 18px 0;
  background: var(--cx-paper);
  border-bottom: 1px solid rgba(29, 29, 29, 0.06);
}

.creative-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
}

.creative-filters__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cx-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  opacity: 0.4;
  position: relative;
  transition: opacity 0.3s ease;
}

.creative-filters__btn::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1.5px;
  background: var(--cx-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--cx-ease);
}

.creative-filters__btn:hover,
.creative-filters__btn.is-active {
  opacity: 1;
}

.creative-filters__btn.is-active::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Exhibition stage
   -------------------------------------------------------------------------- */
.creative-exhibition {
  position: relative;
  z-index: 2;
  padding: 40px 0 180px;
}

.creative-empty {
  display: none;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px var(--cx-side);
  opacity: 0.5;
}

.creative-empty.is-shown {
  display: block;
}

/* Shared block */
.cx-block {
  position: relative;
  width: 100%;
  padding: var(--cx-gap) var(--cx-side);
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.7s var(--cx-ease),
    transform 0.7s var(--cx-ease);
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.cx-block.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Section marker */
.cx-section {
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: clamp(40px, 6vh, 80px);
}

.cx-section__label {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cx-ink);
}

.cx-section__num {
  color: var(--cx-orange);
  letter-spacing: 0.12em;
}

.cx-section__line {
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: rgba(29, 29, 29, 0.15);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--cx-ease) 0.2s;
}

.cx-block.is-in .cx-section__line {
  transform: scaleX(1);
}

/* Typography moment */
.cx-type {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding-top: clamp(60px, 10vh, 120px);
  padding-bottom: clamp(60px, 10vh, 120px);
}

.cx-type__text {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--cx-ink);
  opacity: 0.9;
}

.cx-type__text span {
  display: block;
}

.cx-type--side {
  justify-content: flex-start;
}

.cx-type--side .cx-type__text {
  text-align: left;
  opacity: 0.14;
  font-size: clamp(2rem, 5.5vw, 4rem);
}

/* Piece (creative card) */
.cx-piece {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.cx-piece__parallax {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.cx-piece__link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  background: rgba(29, 29, 29, 0.03);
  box-shadow: 0 12px 32px rgba(29, 29, 29, 0.06);
  transition: box-shadow 0.35s ease;
  outline: none;
}

.cx-piece__link:focus-visible {
  outline: 2px solid var(--cx-orange);
  outline-offset: 4px;
}

.cx-piece__link img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.45s ease;
}

.cx-piece__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px 22px;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.72), transparent 85%);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.35s ease;
  pointer-events: none;
}

.cx-piece__cat {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}

.cx-piece__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.cx-piece__index {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.cx-piece__link:hover,
.cx-piece__link:focus-visible {
  box-shadow: 0 16px 40px rgba(29, 29, 29, 0.12);
}

.cx-piece__link:hover img,
.cx-piece__link:focus-visible img {
  transform: scale(1.03);
}

.cx-piece__link:hover .cx-piece__meta,
.cx-piece__link:focus-visible .cx-piece__meta,
.cx-piece__link:hover .cx-piece__index,
.cx-piece__link:focus-visible .cx-piece__index {
  opacity: 1;
  transform: translateY(0);
}

/* Soft glow behind selected pieces — gradient only, no blur filter */
.cx-piece.has-glow::before {
  content: "";
  position: absolute;
  inset: 12% -6%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(240, 70, 14, 0.12), transparent 70%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   LAYOUT A — Hero creative
   -------------------------------------------------------------------------- */
.cx-hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 70vh;
  align-content: center;
  gap: 28px;
}

.cx-hero .cx-piece {
  width: min(52%, 680px);
  margin-left: 8%;
}

.cx-hero__aside {
  width: min(52%, 680px);
  margin-left: 8%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cx-mute);
}

.cx-hero__aside strong {
  color: var(--cx-ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   LAYOUT B — Floating pair
   -------------------------------------------------------------------------- */
.cx-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
  min-height: 75vh;
  padding-top: clamp(40px, 8vh, 100px);
  padding-bottom: clamp(80px, 12vh, 160px);
}

.cx-pair .cx-piece:first-child {
  width: min(100%, 480px);
  justify-self: start;
  margin-top: 0;
}

.cx-pair .cx-piece:last-child {
  width: min(100%, 420px);
  justify-self: end;
  margin-top: clamp(80px, 18vh, 200px);
}

/* --------------------------------------------------------------------------
   LAYOUT C — Asymmetric trio
   -------------------------------------------------------------------------- */
.cx-trio {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(32px, 5vw, 72px);
  min-height: 80vh;
  align-items: start;
  padding-bottom: clamp(80px, 12vh, 160px);
}

.cx-trio .cx-piece:nth-child(1) {
  grid-column: 1 / span 6;
  width: 100%;
}

.cx-trio .cx-piece:nth-child(2) {
  grid-column: 8 / span 4;
  width: 100%;
  margin-top: clamp(40px, 10vh, 120px);
}

.cx-trio .cx-piece:nth-child(3) {
  grid-column: 3 / span 4;
  width: 100%;
  margin-top: clamp(20px, 4vh, 60px);
}

/* --------------------------------------------------------------------------
   LAYOUT D — Full-width landscape moment
   -------------------------------------------------------------------------- */
.cx-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-top: clamp(80px, 14vh, 180px);
  padding-bottom: clamp(80px, 14vh, 180px);
}

.cx-full .cx-piece {
  width: min(88%, 1200px);
}

.cx-full__caption {
  width: min(88%, 1200px);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cx-mute);
}

/* --------------------------------------------------------------------------
   LAYOUT E — Vertical composition
   -------------------------------------------------------------------------- */
.cx-vertical {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  min-height: 75vh;
  padding-bottom: clamp(80px, 12vh, 160px);
}

.cx-vertical .cx-piece:first-child {
  width: min(100%, 420px);
  justify-self: end;
}

.cx-vertical .cx-piece:last-child {
  width: min(100%, 520px);
  margin-top: clamp(100px, 22vh, 240px);
  justify-self: start;
}

/* --------------------------------------------------------------------------
   LAYOUT F — Floating single
   -------------------------------------------------------------------------- */
.cx-float {
  display: flex;
  min-height: 65vh;
  align-items: center;
  padding-top: clamp(60px, 10vh, 140px);
  padding-bottom: clamp(80px, 12vh, 180px);
}

.cx-float--left {
  justify-content: flex-start;
  padding-left: clamp(0px, 4vw, 64px);
}

.cx-float--right {
  justify-content: flex-end;
  padding-right: clamp(0px, 4vw, 64px);
}

.cx-float--center {
  justify-content: center;
}

.cx-float .cx-piece {
  width: min(38%, 460px);
}

.cx-float--wide .cx-piece {
  width: min(58%, 720px);
}

/* --------------------------------------------------------------------------
   LAYOUT G — Editorial spread
   -------------------------------------------------------------------------- */
.cx-editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 64px) clamp(24px, 3vw, 48px);
  padding-top: clamp(60px, 10vh, 120px);
  padding-bottom: clamp(100px, 14vh, 180px);
}

.cx-editorial__mark {
  grid-column: 1 / span 4;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cx-mute);
  align-self: start;
  padding-top: 8px;
}

.cx-editorial .cx-piece:nth-of-type(1) {
  grid-column: 7 / span 5;
  width: 100%;
}

.cx-editorial .cx-piece:nth-of-type(2) {
  grid-column: 2 / span 4;
  width: 100%;
  margin-top: clamp(40px, 8vh, 100px);
}

.cx-editorial .cx-piece:nth-of-type(3) {
  grid-column: 8 / span 4;
  width: 100%;
  margin-top: clamp(20px, 4vh, 60px);
}

.cx-editorial__foot {
  grid-column: 1 / span 3;
  margin: 40px 0 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cx-ink);
  opacity: 0.35;
}

/* --------------------------------------------------------------------------
   Lightbox (kept premium)
   -------------------------------------------------------------------------- */
.creative-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.creative-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.creative-lightbox__dialog {
  position: relative;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.creative-lightbox__figure {
  margin: 0;
  max-height: calc(92vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.creative-lightbox__figure img {
  display: block;
  max-width: 96vw;
  max-height: calc(92vh - 64px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  transform: scale(0.97);
  transition: transform 0.45s var(--cx-ease);
}

.creative-lightbox.is-open .creative-lightbox__figure img {
  transform: scale(1);
}

.creative-lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
}

.creative-lightbox__close,
.creative-lightbox__nav {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease;
}

.creative-lightbox__close:hover,
.creative-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.creative-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.creative-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.creative-lightbox__nav--prev { left: 16px; }
.creative-lightbox__nav--next { right: 16px; }

.creative-lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  letter-spacing: 0.14em;
}

body.creative-lightbox-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .creative-page {
    --cx-side: clamp(20px, 5vw, 48px);
    --cx-gap: clamp(48px, 8vh, 100px);
  }

  .creative-hero__statement {
    display: none;
  }

  .cx-hero .cx-piece,
  .cx-hero__aside {
    width: min(72%, 560px);
    margin-left: 0;
  }

  .cx-pair {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .cx-pair .cx-piece:last-child {
    margin-top: 80px;
  }

  .cx-trio {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .cx-trio .cx-piece:nth-child(1) {
    grid-column: 1 / 2;
  }

  .cx-trio .cx-piece:nth-child(2) {
    grid-column: 2 / 3;
    margin-top: 60px;
  }

  .cx-trio .cx-piece:nth-child(3) {
    grid-column: 1 / 2;
  }

  .cx-vertical {
    grid-template-columns: 1fr 1fr;
  }

  .cx-vertical .cx-piece:last-child {
    margin-top: 100px;
  }

  .cx-float .cx-piece {
    width: min(52%, 480px);
  }

  .cx-editorial {
    grid-template-columns: 1fr 1fr;
  }

  .cx-editorial__mark,
  .cx-editorial__foot {
    grid-column: 1 / -1;
  }

  .cx-editorial .cx-piece:nth-of-type(1),
  .cx-editorial .cx-piece:nth-of-type(2),
  .cx-editorial .cx-piece:nth-of-type(3) {
    grid-column: auto;
    margin-top: 0;
  }

  .cx-editorial .cx-piece:nth-of-type(2) {
    margin-top: 64px;
  }
}

/* --------------------------------------------------------------------------
   Mobile — dedicated composition
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .creative-page {
    --cx-side: 20px;
    --cx-gap: 44px;
  }

  .creative-atmosphere__glow,
  .creative-atmosphere__particles {
    opacity: 0.35;
  }

  .creative-atmosphere__glow--c {
    display: none;
  }

  .creative-hero {
    padding-top: 130px;
  }

  .creative-hero__title {
    font-size: clamp(3.4rem, 18vw, 4.8rem);
  }

  .creative-filters {
    position: relative;
  }

  .creative-filters__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .creative-filters__list::-webkit-scrollbar {
    display: none;
  }

  .creative-filters__btn {
    flex-shrink: 0;
  }

  .cx-block {
    padding-left: var(--cx-side);
    padding-right: var(--cx-side);
  }

  .cx-hero,
  .cx-pair,
  .cx-trio,
  .cx-vertical,
  .cx-editorial,
  .cx-float,
  .cx-full {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 36px;
    align-items: stretch;
  }

  .cx-hero .cx-piece,
  .cx-hero__aside,
  .cx-pair .cx-piece,
  .cx-pair .cx-piece:first-child,
  .cx-pair .cx-piece:last-child,
  .cx-trio .cx-piece,
  .cx-vertical .cx-piece,
  .cx-vertical .cx-piece:first-child,
  .cx-vertical .cx-piece:last-child,
  .cx-float .cx-piece,
  .cx-float--wide .cx-piece,
  .cx-full .cx-piece,
  .cx-editorial .cx-piece {
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    justify-self: stretch;
    grid-column: auto !important;
  }

  /* Mobile staggered offsets */
  .cx-pair .cx-piece:first-child,
  .cx-trio .cx-piece:nth-child(1),
  .cx-vertical .cx-piece:first-child,
  .cx-float--left .cx-piece,
  .cx-editorial .cx-piece:nth-of-type(2) {
    width: 88% !important;
    align-self: flex-start;
  }

  .cx-pair .cx-piece:last-child,
  .cx-trio .cx-piece:nth-child(2),
  .cx-float--right .cx-piece,
  .cx-editorial .cx-piece:nth-of-type(1) {
    width: 82% !important;
    align-self: flex-end;
    margin-top: 12px !important;
  }

  .cx-trio .cx-piece:nth-child(3),
  .cx-hero .cx-piece,
  .cx-float--center .cx-piece {
    width: 90% !important;
    align-self: center;
  }

  .cx-full .cx-piece,
  .cx-full__caption {
    width: 100%;
  }

  .cx-type {
    min-height: 28vh;
  }

  .cx-piece__link:hover {
    transform: none;
  }

  .creative-lightbox__nav--prev { left: 8px; }
  .creative-lightbox__nav--next { right: 8px; }
}

/* --------------------------------------------------------------------------
   Reduced motion / low power
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .creative-atmosphere__glow,
  .creative-atmosphere__particles {
    animation: none !important;
  }

  .cx-block {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cx-piece__link,
  .cx-piece__link img,
  .cx-piece__meta {
    transition: none !important;
  }
}

.creative-page.is-reduced .creative-atmosphere__glow--b {
  display: none;
}

.creative-page.is-no-parallax .cx-piece__parallax {
  transform: none !important;
}

/* Dark theme */
[data-bs-theme="dark"] .creative-atmosphere__base {
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(240, 70, 14, 0.1), transparent 55%),
    linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
}

[data-bs-theme="dark"] .creative-hero__title,
[data-bs-theme="dark"] .creative-filters__btn,
[data-bs-theme="dark"] .cx-type__text,
[data-bs-theme="dark"] .cx-section__label,
[data-bs-theme="dark"] .creative-hero__meta-item strong {
  color: #f5f5f5;
}

[data-bs-theme="dark"] .creative-hero__text,
[data-bs-theme="dark"] .creative-hero__meta-item span {
  color: #a0a0a0;
}

[data-bs-theme="dark"] .creative-filters {
  background: color-mix(in srgb, #0d0d0d 80%, transparent);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .creative-atmosphere__grain {
  mix-blend-mode: soft-light;
  opacity: 0.2;
}

[data-bs-theme="dark"] .creative-atmosphere__lines {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}
