


.project-hero {
  padding-top: calc(80px + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  background: transparent;
}

@media (min-width: 768px) {
  .project-hero {
    padding-top: calc(100px + var(--space-4xl));
    padding-bottom: var(--space-3xl);
  }
}

.project-hero__content {
  max-width: 800px;
  margin-bottom: var(--space-2xl);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--gray-400);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--rosa);
}

.breadcrumb span[aria-hidden] {
  color: var(--gray-600);
}

.project-hero__title {
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.project-hero__intro {
  font-size: var(--text-lg);
  color: var(--gray-200);
  line-height: 1.7;
  max-width: 600px;
}


.project-hero--immersive {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  background: none;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  z-index: 1;
}

@media (min-width: 768px) {
  .project-hero--immersive {
    padding: 0;
  }
}

.project-hero--immersive #site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

/* Full image - right/background */
.project-hero__image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sidebar - left info panel */
.project-hero__sidebar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  padding: calc(80px + var(--space-xl)) var(--space-lg) var(--space-xl);
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

@media (min-width: 768px) {
  .project-hero__sidebar {
    width: 40%;
    min-width: 360px;
    max-width: 480px;
    padding: calc(100px + var(--space-2xl)) var(--space-xl) var(--space-2xl);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
  }
}

.project-hero--immersive .project-hero__title {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.project-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-300);
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: var(--space-xl);
}

/* Meta inside sidebar - stacked */
.project-hero--immersive .project-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.project-hero--immersive .project-meta__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
}

.project-hero--immersive .project-meta__item dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 0;
}

.project-hero--immersive .project-meta__item dd {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  text-align: right;
}


.project-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-800);
}

@media (min-width: 768px) {
  .project-meta {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-meta__item dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: var(--space-xs);
}

.project-meta__item dd {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--white);
}


.project-image {
  position: relative;
}

.project-image--full {
  width: 100%;
  padding: 0;
}

.project-image--full img {
  width: 100%;
  height: auto;
  display: block;
}

.project-image--rounded {
  margin-top: var(--space-2xl);
}

.project-image--rounded img {
  width: 100%;
  border-radius: 0;
}


.project-image-break {
  padding: 0;
}

.project-image figcaption {
  font-size: var(--text-sm);
  color: var(--gray-500);
  text-align: center;
  margin-top: var(--space-lg);
  padding: 0 var(--space-lg);
  font-style: italic;
}


/* ── Motto-inspired typographic scale ── */
.project-text {
  max-width: 720px;
  margin: 0 auto;
}

.project-text__lead {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.5;
  color: var(--black);
  margin-bottom: var(--space-xl);
}

.project-text__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
}

.project-text p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
}

.project-text p:last-child {
  margin-bottom: 0;
}

.project-text strong {
  color: var(--black);
  font-weight: 700;
}


.project-section {
  max-width: 800px;
  margin-bottom: var(--space-3xl);
}

.project-section__content p {
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.project-section__content p:last-child {
  margin-bottom: 0;
}

.project-section__content strong {
  font-weight: 700;
}

.section--dark .project-section__content,
.section--dark .project-text p,
.section--dark p {
  color: var(--gray-300);
}

.section--dark .project-section__content strong,
.section--dark .project-text strong,
.section--dark strong {
  color: var(--white);
}

.section--dark .project-text em,
.section--dark em {
  color: var(--gray-200);
}

.section--dark .project-text__lead {
  color: var(--white);
}

.section--dark .project-text__title {
  color: var(--white);
}

/* ── Motto-scale overrides for project body ── */
.project-body .section-eyebrow {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-md);
}

.project-body .section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
}

.project-body .section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .project-body .section {
    padding-top: var(--space-4xl, 6rem);
    padding-bottom: var(--space-4xl, 6rem);
  }
}

/* Services List */
.services-list {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0;
}

.services-list li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: var(--text-lg);
  line-height: 1.6;
}

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

.section--dark .services-list li {
  color: var(--gray-300);
  border-bottom-color: var(--gray-700);
}


.product-showcase {
  display: grid;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--gray-800);
}

.product-showcase:last-of-type {
  border-bottom: none;
}

@media (min-width: 768px) {
  .product-showcase {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: center;
  }

  .product-showcase--reverse {
    grid-template-columns: 1.2fr 1fr;
  }

  .product-showcase--reverse .product-showcase__content {
    order: 2;
  }

  .product-showcase--reverse .product-showcase__images {
    order: 1;
  }
}

.product-showcase__number {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--rosa);
  margin-bottom: var(--space-sm);
}

.product-showcase__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.product-showcase__subtitle {
  font-size: var(--text-sm);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.product-showcase__description {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-300);
}

.product-showcase__description strong {
  color: var(--white);
  font-weight: 700;
}

.product-showcase__images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.product-showcase__images img {
  width: 100%;
  border-radius: 0;
  transition: transform 0.4s var(--ease-out);
}



.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .results-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
  }
}

.result-card {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
}

.result-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.result-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--black);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.result-card__source {
  font-size: var(--text-sm);
  color: var(--gray-500);
}


/* Result lead — sits directly below the section title */
.project-section__lead {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.5;
  color: var(--gray-600);
  margin-top: var(--space-md);
  max-width: 700px;
}

.project-section__lead strong {
  font-weight: 600;
  color: var(--black);
}

.section--dark .project-section__lead {
  color: var(--gray-300);
}

.section--dark .project-section__lead strong {
  color: var(--white);
}

/* Legacy project-quote (kept for any remaining usage) */
.project-quote {
  border-left: 3px solid var(--rosa);
  padding-left: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.project-quote p {
  font-size: var(--text-2xl);
  font-style: italic;
  line-height: 1.3;
  color: var(--black);
}

.project-quote strong {
  font-weight: 700;
  font-style: normal;
}

/* Quote on dark backgrounds */
.section--dark .project-quote p {
  color: var(--gray-200);
}

.section--dark .project-quote strong {
  color: var(--white);
}


.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .project-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.project-gallery__item {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.project-gallery__item--large {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .project-gallery__item--large {
    grid-row: span 2;
    aspect-ratio: auto;
  }
}

.project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Full-bleed image sections */
.project-image-break .container {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.project-body .project-image--rounded {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.project-body .project-image--rounded img {
  border-radius: 0;
}

.project-body .project-gallery--duo,
.project-body .project-gallery--trio,
.project-body .project-gallery--grid-4,
.project-body .project-gallery--masonry {
  gap: 1rem;
}

.project-body .project-gallery--duo .project-image--rounded,
.project-body .project-gallery--grid-4 .project-image--rounded,
.project-body .project-gallery--masonry .project-image--rounded {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
}

/* Gallery Variants */
.project-gallery--duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  width: 100%;
}

@media (min-width: 768px) {
  .project-gallery--duo {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-gallery--trio {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-gallery--duo .project-image {
  width: 100%;
  margin-bottom: 0;
}

.project-gallery--duo .project-image img,
.project-gallery--duo .project-image button {
  width: 100%;
}

.project-gallery--duo .project-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-gallery--grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  width: 100%;
}

@media (min-width: 768px) {
  .project-gallery--grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-gallery--grid-4 .project-image {
  width: 100%;
  margin-bottom: 0;
}

.project-gallery--grid-4 .project-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.project-gallery--masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  width: 100%;
}

@media (min-width: 768px) {
  .project-gallery--masonry {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .project-gallery--masonry {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-gallery--masonry .project-image {
  width: 100%;
  margin-bottom: 0;
}

.project-gallery--masonry .project-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Masonry 3-col with CSS columns (true masonry) */
.project-gallery--masonry-3 {
  display: block;
  column-count: 1;
  column-gap: 1rem;
  width: 100%;
}

@media (min-width: 768px) {
  .project-gallery--masonry-3 {
    column-count: 3;
  }
}

.project-gallery--masonry-3 .project-image {
  width: 100%;
  margin-bottom: 1rem;
  break-inside: avoid;
}

.project-gallery--masonry-3 .project-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


.project-body {
  background: var(--white);
  color: var(--black);
}

.project-body .section {
  background: var(--white);
  color: var(--black);
}

.project-body .section p,
.project-body .section li,
.project-body .section .project-section__content {
  color: var(--gray-600);
}

.project-body .section strong {
  color: var(--black);
}

.project-body .section em {
  color: var(--gray-700);
}

.project-body .section a {
  color: var(--rosa);
  text-decoration: none;
  transition: color 0.3s;
}

.project-body .section a:hover {
  color: var(--rosa-dark);
}

.project-body .section-eyebrow {
  color: var(--rosa);
}

.project-body .section-title {
  color: var(--black);
}

.project-body .project-text__lead {
  color: var(--black);
}

.project-body .project-text__title {
  color: var(--black);
}

/* ── Split: image + text side by side ── */
.project-split {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Mobile: image full bleed to screen edges */
.project-split__media {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.project-split__media .project-image--rounded {
  width: 100%;
  margin: 0;
}

.project-split__media .project-image--rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.project-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-split__content .section-title {
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .project-split {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    /* Break out of container to reach screen edges */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .project-split__media {
    flex: 0 0 45%;
    max-width: 45%;
    width: auto;
    margin-left: 0;
  }

  .project-split__content {
    flex: 1;
    padding: var(--space-2xl) var(--space-3xl);
  }

  /* Reverse: text left, image right */
  .project-split--reverse {
    flex-direction: row-reverse;
  }
}

@media (min-width: 1200px) {
  .project-split__media {
    flex: 0 0 40%;
    max-width: 40%;
  }
}

.project-body .section--alt {
  background: transparent;
}

/* Border for section separation */
.project-body .section + .section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.project-body .section--alt + .section,
.project-body .section + .section--alt {
  border-top: none;
}

/* Product showcase on white */
.project-body .product-showcase {
  border-bottom-color: var(--gray-200);
}

.project-body .product-showcase__subtitle {
  color: var(--gray-500);
}

.project-body .product-showcase__description {
  color: var(--gray-600);
}

.project-body .product-showcase__description strong {
  color: var(--black);
}

.project-body .product-showcase__number {
  color: var(--rosa);
}

/* Project meta on white */
.project-body .project-meta {
  border-top-color: var(--gray-200);
}

.project-body .project-meta__item dd {
  color: var(--black);
}

.project-body .project-meta__item dt {
  color: var(--gray-500);
}

/* Services list on white */
.project-body .services-list li {
  color: var(--gray-600);
  border-bottom-color: var(--gray-200);
}

/* Lead on white */
.project-body .project-section__lead {
  color: var(--gray-600);
}

.project-body .project-section__lead strong {
  color: var(--black);
}

/* Quote on white */
.project-body .project-quote p {
  color: var(--black);
}

.project-body .project-quote strong {
  color: var(--black);
}

/* Result cards on white bg */
.project-body .result-card {
  background: var(--gray-100);
}

/* Image sections – full bleed, no background */
.project-body .project-image--full {
  background: transparent;
}

.project-body .project-image-break {
  background: transparent;
}


.project-body .section--cta {
  background: transparent;
  color: var(--white);
  border-top: none;
}

.project-body .section--cta p,
.project-body .section--cta .section-title {
  color: var(--white);
}

.project-body .section--cta .section-eyebrow {
  color: var(--rosa);
}

/* More projects section stays dark */
.project-body .section--more-projects,
.section--more-projects {
  background: transparent;
  color: var(--white);
  border-top: none;
}

.project-body .section--more-projects .section-title,
.project-body .section--more-projects .section-eyebrow,
.section--more-projects .section-title,
.section--more-projects .section-eyebrow {
  color: var(--white);
}

.project-body .section--more-projects p,
.section--more-projects p {
  color: var(--gray-300);
}


/* More-projects cards — portfolio-grid style (image + info below) */
.section--more-projects .work-grid {
  column-gap: 1rem;
  row-gap: 3rem;
}

.section--more-projects .work-card {
  aspect-ratio: auto;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.section--more-projects .work-card__link {
  display: block;
  height: auto;
}

.section--more-projects .work-card__image {
  position: relative;
  inset: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.section--more-projects .work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section--more-projects .work-card:hover .work-card__image {
  transform: none;
}

.section--more-projects .work-card__overlay {
  display: none;
}

.section--more-projects .work-card__content {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  padding: var(--space-sm) 0 0;
  transform: none;
  opacity: 1;
}

.section--more-projects .work-card:hover .work-card__content {
  transform: none;
}

.section--more-projects .work-card__info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.section--more-projects .work-card__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section--more-projects .work-card__client {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  transition: color 0.3s;
}

.section--more-projects .work-card:hover .work-card__client {
  color: var(--rosa);
}

.section--more-projects .work-card__title {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--gray-400);
  margin-bottom: 0;
  line-height: 1.3;
}

.section--more-projects .work-card__scope {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-weight: 300;
  text-align: right;
  white-space: nowrap;
}


.about-client {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .about-client {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
  }
}

.about-client__header {
  position: relative;
}

.about-client__title {
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: var(--black);
}

.about-client__content {
  max-width: none;
}

.about-client__content p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: var(--space-md);
}

.about-client__content p:last-child {
  margin-bottom: 0;
}

.about-client__content strong {
  color: var(--black);
  font-weight: 700;
}

.about-client__facts {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 480px) {
  .about-client__facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-client__facts li {
  font-size: var(--text-sm);
  color: var(--gray-600);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--gray-200);
  line-height: 1.5;
}

@media (min-width: 480px) {
  .about-client__facts li {
    padding: var(--space-md) var(--space-md) var(--space-md) 0;
  }

  .about-client__facts li:nth-child(odd) {
    padding-right: var(--space-lg);
    border-right: 1px solid var(--gray-200);
  }

  .about-client__facts li:nth-child(even) {
    padding-left: var(--space-lg);
  }

  .about-client__facts li:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

.about-client__facts li:last-child {
  border-bottom: none;
}

.about-client__facts strong {
  display: block;
  color: var(--black);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: 2px;
}

/* Grid variant for redesigned layout */
.about-client--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .about-client--grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-3xl);
    align-items: start;
  }
}

.about-client__left .section-eyebrow {
  color: var(--rosa);
}

.about-client__description {
  max-width: none;
}

.about-client__description p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: var(--space-md);
}

.about-client__description p:last-child {
  margin-bottom: 0;
}

.about-client__description strong {
  color: var(--black);
  font-weight: 700;
}

.about-client__right {
  position: relative;
}

@media (min-width: 768px) {
  .about-client__right {
    padding-top: var(--space-3xl);
  }
}

.about-client__right .about-client__facts {
  margin: 0 0 var(--space-xl);
}

/* Visit website button — inherits misaligned rectangles from main.css .btn */
.btn--outline-dark svg {
  flex-shrink: 0;
}


.work-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 639px) {
  .work-grid--2 {
    grid-template-columns: 1fr;
  }
}

.work-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .work-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .work-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}


.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: background 0.3s;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: background 0.3s;
}

.lightbox__prev {
  left: var(--space-lg);
}

.lightbox__next {
  right: var(--space-lg);
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
}


.lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}

.lightbox-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-trigger:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}


/* ── Gentle Renewing: split + duo layout ── */
article[aria-labelledby="product-1-title"],
article[aria-labelledby="product-2-title"] {
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--gray-200);
}

.product-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: var(--space-xl);
}

.product-duo .lightbox-trigger {
  overflow: hidden;
}

.product-duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dynamic layouts — applied by JS based on image orientation */
@media (min-width: 768px) {
  /* 3 same orientation: equal columns */
  .product-duo--3eq {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 2 images: equal columns */
  .product-duo--2eq {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 1 vertical left + 2 horizontals stacked right */
  .product-duo--v-left {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .product-duo--v-left > *:first-child {
    grid-row: 1 / 3;
  }

  /* 2 horizontals stacked left + 1 vertical right */
  .product-duo--v-right {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .product-duo--v-right > *:last-child {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  /* 2 verticals + 1 horizontal below spanning full */
  .product-duo--2v1h {
    grid-template-columns: 1fr 1fr;
  }
  .product-duo--2v1h > *:last-child {
    grid-column: 1 / 3;
  }

  /* 1 image full width */
  .product-duo--1 {
    grid-template-columns: 1fr;
  }
}

/* Header — floating glass pill has its own background; no page-level overrides needed */
