/* Shared editorial rhythm, headers, native media and gallery arrangements. */
.editorial-section {
  padding-block: var(--fotogenic-section-start) var(--fotogenic-section-end);
  color: var(--fotogenic-ink);
  --fg-section-intro-color: #4d5264;
  --fg-section-intro-weight: 500;
}
.editorial-container { width: min(100% - 2 * var(--fotogenic-page-gutter), 1400px); margin-inline: auto; min-width: 0; }
.editorial-header { --fg-section-intro-width: 46ch; --fg-section-intro-mobile-width: 34ch; }
.editorial-header .fg-section-title { margin: 0; font-size: var(--fotogenic-type-section-title); font-weight: 700; line-height: var(--fotogenic-leading-title); letter-spacing: 0; text-wrap: balance; }
.editorial-header .fg-section-eyebrow + .fg-section-title { margin-top: var(--fotogenic-title-intro-gap); }
.editorial-gradient { color: #7938df; background: linear-gradient(105deg, #bd0997, #7234ec, #215def); background-clip: text; -webkit-text-fill-color: transparent; }
/* The second heading line balances on its own, so a forced break never leaves one word alone. */
.editorial-header .editorial-gradient { display: inline-block; text-wrap: balance; }
.editorial-section--dark { background: #111114; border-radius: 50% 3% 0 0 / 28px 18px 0 0; color: #fff; --fg-section-intro-color: #cac8d1; }
.editorial-section--dark .editorial-gradient { background-image: linear-gradient(105deg, #e586e4, #bb8dff, #9caeff); }
.editorial-image { display: block; width: 100%; height: 100%; aspect-ratio: var(--editorial-image-ratio, auto); object-fit: var(--editorial-image-fit, cover); object-position: var(--editorial-image-position, center center); }
.editorial-mosaic { display: grid; gap: 12px; min-width: 0; }
.editorial-mosaic__frame { position: relative; margin: 0; min-width: 0; min-height: 0; overflow: hidden; border-radius: 12px; background: #f1eef4; }
.editorial-gallery__row-frame { position: relative; }
.editorial-tag { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 8px 14px; border-radius: 999px; background: #fff; color: #25202c; box-shadow: 0 4px 15px #171b2614; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; pointer-events: none; }
.editorial-tag--result { border: 1px solid #ffffffb3; background: #ffffffdf; font-weight: 500; }
.editorial-mosaic--lead-stack { grid-template-columns: 1.25fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 1.3; }
.editorial-mosaic--lead-stack .editorial-mosaic__frame--1 { grid-row: span 2; }
.editorial-mosaic--feature-grid { grid-template-columns: 1.1fr 1.4fr .6fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 2.4; }
.editorial-mosaic--feature-grid .editorial-mosaic__frame--1,
.editorial-mosaic--feature-grid .editorial-mosaic__frame--2 { grid-row: span 2; }
.editorial-mosaic--portrait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.editorial-mosaic--portrait-grid.editorial-mosaic--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editorial-mosaic--portrait-grid .editorial-image { height: auto; object-fit: contain; }
.editorial-gallery__header { margin-bottom: var(--fotogenic-content-gap); }
.editorial-gallery--row .editorial-header,
.editorial-gallery--staggered .editorial-header { --fg-section-intro-width: 40ch; --fg-section-intro-mobile-width: 32ch; }
.editorial-gallery--feature-mosaic .editorial-header { --fg-section-intro-width: 48ch; }
.editorial-gallery__paired { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.editorial-gallery__row-wrap { width: min(100%, 1464px); margin-inline: auto; }
/* Same native scroller as the homepage campaign row: sideways only, one card per swipe, no vertical drift. */
.editorial-gallery__row { display: flex; gap: 20px; padding-inline: var(--fotogenic-page-gutter); scroll-padding-inline: var(--fotogenic-page-gutter); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; touch-action: pan-x pan-y; scrollbar-width: none; }
.editorial-gallery__row::-webkit-scrollbar { display: none; }
.editorial-gallery__row:focus-visible { outline: 2px solid #8050c4; outline-offset: -4px; }
.editorial-gallery__row-frame { flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; border-radius: 12px; scroll-snap-align: start; scroll-snap-stop: always; }
.editorial-gallery__row .editorial-image { height: auto; pointer-events: none; }
.editorial-gallery__staggered { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; padding-block: 8px 0; }
.editorial-gallery__staggered-frame { margin: 0; overflow: hidden; border-radius: 12px; }
.editorial-gallery__staggered-frame:nth-child(even) { margin-top: 40px; }
.editorial-gallery__staggered .editorial-image { height: auto; }
.editorial-gallery__media > .editorial-mosaic--portrait-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.editorial-gallery__media > .editorial-mosaic--portrait-grid.editorial-mosaic--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* One portrait and its own copy stay together as a single linked tile. */
.editorial-gallery__portrait-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.editorial-gallery__portrait-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px; border: 1px solid #ebe6f1; border-radius: 18px; background: #f7f5fa; transition: translate 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.editorial-gallery__portrait-card:has(a:hover, a:focus-visible) { translate: 0 -4px; border-color: #d9cdee; box-shadow: 0 22px 44px -30px #2b1a4d73; }
.editorial-gallery__portrait-frame .editorial-image { aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: var(--editorial-image-position, center); transition: scale 400ms ease; }
.editorial-gallery__portrait-card:has(a:hover) .editorial-image { scale: 1.03; }
.editorial-gallery__portrait-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 16px 8px 10px; text-align: left; }
.editorial-gallery__portrait-copy h3 a { color: inherit; text-decoration: none; }
.editorial-gallery__portrait-copy h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.editorial-gallery__portrait-copy h3 a:focus-visible { outline: 0; }
.editorial-gallery__portrait-card:has(a:focus-visible) { outline: 3px solid #925bfa; outline-offset: 3px; }
.editorial-gallery__portrait-arrow { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; background: linear-gradient(135deg, #bd0997, #7234ec 55%, #215def); -webkit-mask: var(--editorial-arrow) center / contain no-repeat; mask: var(--editorial-arrow) center / contain no-repeat; transition: translate 220ms ease; --editorial-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E"); }
.editorial-gallery__portrait-card:has(a:hover) .editorial-gallery__portrait-arrow { translate: 4px 0; }
.editorial-gallery__support { margin-top: var(--fotogenic-content-gap); }
/* Caption cards: raised panels with the brand gradient as a short top accent. */
.editorial-gallery__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; counter-reset: editorial-card; }
.editorial-gallery__card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; align-content: start; min-width: 0; padding: 28px; border: 1px solid #e9e3f2; border-radius: 20px; background: radial-gradient(120% 90% at 100% 0%, #f3e9ff 0%, #fff0 55%), linear-gradient(165deg, #fff, #f6f3fa); box-shadow: 0 24px 48px -36px #2b1a4d73; }
.editorial-gallery__card::before { counter-increment: editorial-card; content: counter(editorial-card, decimal-leading-zero) / ""; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #bd0997, #7234ec 55%, #215def); box-shadow: 0 10px 20px -10px #7234ec; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.editorial-gallery__card h3, .editorial-gallery__portrait-copy h3 { margin: 0 0 8px; font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.editorial-gallery__card p, .editorial-gallery__portrait-copy p { margin: 0; font-size: 16px; line-height: 1.5; color: #555; text-wrap: pretty; }
.editorial-gallery__portrait-copy h3 { margin-bottom: 4px; font-size: 18px; }
.editorial-gallery__portrait-copy p { font-size: 15px; }
.editorial-gallery__card h3 { margin: 0; }
.editorial-gallery__card p { grid-column: 1 / -1; margin-top: 16px; }
.editorial-gallery__card p a { color: inherit; text-underline-offset: .2em; }
.editorial-gallery__card > a, .editorial-gallery__portrait-copy > a { display: inline-block; margin-top: 12px; }
.editorial-section--dark .editorial-gallery__card { border-color: #ffffff1a; background: radial-gradient(120% 90% at 100% 0%, #3a2160 0%, #0000 55%), linear-gradient(165deg, #1f1d27, #16161b); box-shadow: none; }
.editorial-section--dark .editorial-gallery__card::before { background: linear-gradient(135deg, #e586e4, #bb8dff 55%, #9caeff); color: #16161b; box-shadow: none; }
.editorial-section--dark .editorial-gallery__card p, .editorial-section--dark .editorial-gallery__portrait-copy p { color: #cac8d1; }
.editorial-section a:focus-visible { outline: 3px solid #925bfa; outline-offset: 5px; }
.editorial-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--fotogenic-content-gap); }
.editorial-gallery__support > .editorial-buttons:first-child { margin-top: 0; }
.editorial-button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--fotogenic-shell-button-height); padding: 0 var(--fotogenic-shell-button-padding); border: 1px solid transparent; border-radius: var(--fotogenic-button-radius); font-size: var(--fotogenic-shell-button-font-size); font-weight: 650; line-height: 1.5; text-decoration: none; transition: background 180ms ease, transform 180ms ease; }
.editorial-button__icon { flex: none; width: 1em; height: 1em; margin-inline-start: .45em; }
.editorial-button--primary { background: #111; color: #fff; }
.editorial-button--primary:hover { color: #fff; background: #2d233a; transform: translateY(-2px); }
.editorial-button--secondary { color: inherit; border-color: currentColor; }
.editorial-button--tertiary { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.editorial-section--dark .editorial-button--primary { background: #fff; color: #111; }
.editorial-section--dark .editorial-button--primary:hover { background: #eee6ff; color: #111; }
@media (max-width: 1000px) {
  .editorial-gallery__paired { gap: 24px; }
  .editorial-gallery__portrait-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-gallery__cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .editorial-gallery__card { display: grid; grid-template-columns: 44px minmax(0, 2fr) minmax(0, 3fr); column-gap: 20px; align-items: center; padding: 22px 24px; }
  .editorial-gallery__card p { grid-column: auto; margin-top: 0; }
}
@media (max-width: 767px) {
  .editorial-mosaic { gap: 8px; }
  .editorial-mosaic__frame { border-radius: 9px; }
  .editorial-tag { top: 8px; left: 8px; padding: 6px 10px; font-size: 11px; }
  .editorial-mosaic--feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr .85fr; aspect-ratio: .8; }
  .editorial-mosaic--feature-grid .editorial-mosaic__frame--1,
  .editorial-mosaic--feature-grid .editorial-mosaic__frame--2 { grid-row: auto; }
  .editorial-gallery__paired { grid-template-columns: 1fr; gap: 32px; }
  .editorial-gallery__row { gap: 12px; }
  .editorial-gallery__row-frame { flex: 0 0 80vw; }
  .editorial-gallery__staggered { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-gallery__staggered-frame:nth-child(even) { margin-top: 24px; }
  .editorial-gallery__media > .editorial-mosaic--portrait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .editorial-gallery__cards { grid-template-columns: 1fr; gap: 12px; }
  .editorial-gallery__card { grid-template-columns: auto minmax(0, 1fr); padding: 22px 20px; }
  .editorial-gallery__card::before { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
  .editorial-gallery__card p { grid-column: 1 / -1; margin-top: 12px; }
  .editorial-gallery__portrait-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .editorial-gallery__portrait-card { padding: 6px; border-radius: 14px; }
  .editorial-gallery__portrait-copy { grid-template-columns: minmax(0, 1fr); padding: 12px 6px 8px; }
  .editorial-gallery__portrait-copy h3 { font-size: 16px; }
  .editorial-gallery__portrait-copy p { font-size: 14px; }
  .editorial-gallery__portrait-arrow { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .editorial-reveal { transition: opacity var(--fg-transition-reveal, .55s ease), translate var(--fg-transition-reveal, .55s ease); }
  .editorial-reveal.is-editorial-pending { opacity: 0; translate: 0 var(--fg-reveal-distance, 18px); }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-button, .editorial-gallery__portrait-card, .editorial-gallery__portrait-frame .editorial-image, .editorial-gallery__portrait-arrow { transition: none; }
  .editorial-button--primary:hover { transform: none; }
}
