/* REDISCOVER CONTEXT MEDIA GLOBAL LAYOUT v1.5.21 */

.story-page .story-intro--new-profile .story-intro-grid {
  grid-template-areas:
    "profile facts"
    "reason facts";
  grid-template-rows: auto auto;
  align-items: start;
  row-gap: clamp(28px, 3vw, 42px);
}

.story-page .story-intro--new-profile .story-intro-copy { grid-area: profile; }
.story-page .story-intro--new-profile .story-facts { grid-area: facts; align-self: start; }
.story-page .story-intro--new-profile .story-signature-inline--new-profile {
  grid-area: reason;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.story-page .story-intro--new-profile .story-signature-inline--new-profile > .shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.story-page .story-intro--new-profile .story-signature-inline--new-profile .story-signature-card {
  width: 100%;
  margin: 0;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 25px;
  box-shadow: 0 16px 42px rgba(37, 57, 50, .075);
}
.story-page .story-intro--new-profile .story-signature-inline--new-profile .story-signature-copy h2 {
  font-size: clamp(1.48rem, 2vw, 2.04rem);
  line-height: 1.12;
}
.story-page .story-intro--new-profile .story-signature-inline--new-profile .story-signature-copy > p {
  font-size: clamp(.96rem, 1vw, 1.06rem);
  line-height: 1.62;
}
.story-page .story-intro--new-profile .story-signature-inline--new-profile .story-signature-tip {
  margin-top: 20px;
  padding-top: 18px;
}
.story-page .story-intro--new-profile + .story-signature,
.story-page .story-intro--new-profile + .story-signature + .story-unusual { margin-top: 0; }

.story-context-media {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 22px;
  background: #e9eee8;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .28s ease, transform .28s ease;
}
.story-context-media.is-ready { opacity: 1; transform: none; }
.story-context-media[hidden] { display: none !important; }
.story-context-media-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.story-context-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #e9eee8;
}
.story-context-media figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: end;
  padding: 48px 16px 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 24, 20, 0), rgba(10, 24, 20, .86));
  pointer-events: none;
}
.story-context-media-label {
  overflow: hidden;
  color: #fff;
  font-family: Avenir Next, Avenir, Inter, Segoe UI, system-ui, Arial, sans-serif;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-context-media figcaption small {
  grid-column: 1;
  overflow: hidden;
  color: rgba(255, 255, 255, .82);
  font-family: Avenir Next, Avenir, Inter, Segoe UI, system-ui, Arial, sans-serif;
  font-size: .66rem;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-context-media-source {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  color: #d7ff72;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Standard full-width reason card: image is integrated on the right. */
.story-page .story-signature-card.has-context-media {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(280px, 38%);
  grid-template-areas: "mark copy media";
  align-items: center;
  column-gap: clamp(20px, 2.4vw, 36px);
  row-gap: 0;
}
.story-page .story-signature-card.has-context-media > .story-signature-mark {
  grid-area: mark;
  align-self: start;
}
.story-page .story-signature-card.has-context-media > .story-signature-copy {
  grid-area: copy;
  min-width: 0;
}
.story-page .story-signature-card.has-context-media > .story-signature-media {
  grid-area: media;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: clamp(250px, 25vw, 360px);
  max-height: 390px;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 21px;
  box-shadow: 0 14px 34px rgba(37, 57, 50, .12);
}

/* The reason card placed inside the narrower profile column uses a full image above the copy. */
.story-page .story-signature-inline--new-profile .story-signature-card.has-context-media {
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-areas:
    "media media"
    "mark copy";
  align-items: start;
  row-gap: clamp(22px, 2.4vw, 30px);
}
.story-page .story-signature-inline--new-profile .story-signature-card.has-context-media > .story-signature-media {
  min-height: clamp(210px, 25vw, 320px);
  max-height: none;
  aspect-ratio: 16 / 9;
}

.story-unusual-card { --story-unusual-pad: clamp(24px, 2.4vw, 32px); }
.story-page .story-unusual-card.has-context-media {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--story-unusual-pad);
}
.story-page .story-unusual-card.has-context-media > .story-unusual-media {
  order: -2;
  flex: 0 0 auto;
  width: calc(100% + (var(--story-unusual-pad) * 2));
  height: clamp(190px, 18vw, 252px);
  margin: calc(var(--story-unusual-pad) * -1) calc(var(--story-unusual-pad) * -1) clamp(30px, 2.8vw, 38px);
  border-radius: 24px 24px 0 0;
  box-shadow: none;
}
.story-page .story-unusual-card.has-context-media .story-unusual-card-top {
  flex: 0 0 auto;
  margin-top: 0;
  margin-bottom: 28px;
}
.story-page .story-unusual-card.has-context-media .story-unusual-kind { margin-top: 0; }

@media (max-width: 1080px) {
  .story-page .story-signature-card.has-context-media {
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-areas:
      "media media"
      "mark copy";
    align-items: start;
    row-gap: clamp(22px, 3vw, 30px);
  }
  .story-page .story-signature-card.has-context-media > .story-signature-media {
    min-height: clamp(230px, 44vw, 360px);
    max-height: none;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 900px) {
  .story-page .story-intro--new-profile .story-intro-grid {
    grid-template-areas: "profile" "reason" "facts";
    grid-template-rows: auto;
  }
  .story-page .story-intro--new-profile .story-signature-inline--new-profile { margin-bottom: 2px; }
}

@media (max-width: 680px) {
  .story-page .story-signature-card.has-context-media,
  .story-page .story-signature-inline--new-profile .story-signature-card.has-context-media {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "media media"
      "mark copy";
    column-gap: 16px;
    row-gap: 20px;
  }
  .story-page .story-signature-card.has-context-media > .story-signature-media,
  .story-page .story-signature-inline--new-profile .story-signature-card.has-context-media > .story-signature-media {
    min-height: 196px;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }
  .story-page .story-unusual-card.has-context-media > .story-unusual-media {
    height: clamp(210px, 62vw, 290px);
    margin-bottom: 28px;
  }
  .story-context-media figcaption { padding: 40px 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-context-media { transition: none; }
}

/* CONTEXT IMAGE LIGHTBOX v1.5.22 */
.story-context-media-open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  appearance: none;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  text-align: inherit;
}
.story-context-media-open:focus-visible {
  outline: 3px solid #b8e541;
  outline-offset: -5px;
}
.story-context-media-open img {
  transition: transform .35s ease, filter .35s ease;
}
.story-context-media-open:hover img,
.story-context-media-open:focus-visible img {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.02);
}
.story-context-media-expand {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 24, 20, .58);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.story-context-media-expand svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.story-context-media figcaption {
  z-index: 4;
  pointer-events: none;
}
.story-context-media-source {
  position: relative;
  z-index: 5;
  color: #d7ff72;
  text-decoration: none;
  pointer-events: auto;
}
.story-context-media-source:hover,
.story-context-media-source:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.story-context-lightbox-open,
html.story-context-lightbox-open body {
  overflow: hidden;
}
.story-context-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.4vw, 34px);
  opacity: 0;
  background: rgba(5, 14, 11, .93);
  backdrop-filter: blur(14px);
  transition: opacity .18s ease;
}
.story-context-lightbox.is-open { opacity: 1; }
.story-context-lightbox[hidden] { display: none !important; }
.story-context-lightbox-panel {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  width: min(96vw, 1560px);
  max-height: 94vh;
}
.story-context-lightbox-figure {
  grid-column: 2;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 24px;
  background: #07110e;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}
.story-context-lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(94vh - 118px);
  object-fit: contain;
  background: #07110e;
}
.story-context-lightbox-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px 22px;
  align-items: center;
  padding: 18px 22px;
  color: #fff;
  background: #10201a;
}
.story-context-lightbox-caption-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.story-context-lightbox-title {
  overflow: hidden;
  color: #fff;
  font-size: clamp(.95rem, 1.1vw, 1.12rem);
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-context-lightbox-credit {
  overflow: hidden;
  color: rgba(255, 255, 255, .7);
  font-size: .78rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-context-lightbox-counter {
  color: rgba(255, 255, 255, .64);
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.story-context-lightbox-source {
  color: #d7ff72;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.story-context-lightbox-source:hover,
.story-context-lightbox-source:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.story-context-lightbox-close,
.story-context-lightbox-nav {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 29, 23, .78);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.story-context-lightbox-close:hover,
.story-context-lightbox-close:focus-visible,
.story-context-lightbox-nav:hover,
.story-context-lightbox-nav:focus-visible {
  border-color: rgba(215, 255, 114, .86);
  background: rgba(37, 67, 49, .94);
  outline: none;
  transform: scale(1.04);
}
.story-context-lightbox-close svg,
.story-context-lightbox-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.story-context-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
}
.story-context-lightbox-prev { grid-column: 1; justify-self: start; }
.story-context-lightbox-next { grid-column: 3; justify-self: end; }

@media (max-width: 760px) {
  .story-context-media-expand {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }
  .story-context-lightbox {
    padding: 10px;
  }
  .story-context-lightbox-panel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    width: 100%;
  }
  .story-context-lightbox-figure {
    border-radius: 18px;
  }
  .story-context-lightbox-image {
    max-height: calc(92vh - 150px);
  }
  .story-context-lightbox-caption {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    padding: 14px 15px;
  }
  .story-context-lightbox-counter {
    grid-column: 2;
    grid-row: 1;
  }
  .story-context-lightbox-source {
    grid-column: 1 / -1;
  }
  .story-context-lightbox-close,
  .story-context-lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .story-context-lightbox-close {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-context-media-open img,
  .story-context-lightbox,
  .story-context-lightbox-close,
  .story-context-lightbox-nav {
    transition: none;
  }
}
