.content-container,
.content-container article {
  min-width: 0;
}

.challenge-intro {
  display: flow-root;
  margin: 0;
  padding: 0;
}

.challenge-intro > p:first-of-type {
  margin-top: 0;
}

.challenge-video-placeholder {
  float: right;
  width: min(54%, 660px);
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  border: 3px solid #21132f;
  background:
    radial-gradient(circle at 82% 28%, rgba(255, 222, 0, 0.95) 0 6%, transparent 6.5%),
    radial-gradient(circle at 20% 78%, rgba(16, 194, 210, 0.9) 0 8%, transparent 8.5%),
    repeating-radial-gradient(circle at 105% 115%, #ee168b 0 12px, #5a249d 13px 32px, #21132f 33px 45px);
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.25rem;
  margin: 0 0 1.5rem 1.5rem;
  overflow: hidden;
}

.challenge-video-label {
  justify-self: start;
  padding: 0.25rem 0.5rem;
  background: #ffdf00;
  color: #21132f;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.challenge-video-play {
  align-self: center;
  justify-self: center;
  width: 4rem;
  aspect-ratio: 1;
  border: 3px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 0.2rem;
  font-size: 1.5rem;
  line-height: 1;
}

.challenge-video-title {
  max-width: 28rem;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.55);
}

.challenge-story-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin-inline: 0;
  padding: 1rem 0;
}

.challenge-story-strip .card {
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.challenge-story-strip .card img {
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.challenge-story-strip .card-content {
  flex: 1;
  padding: 0.8rem;
}

.media-modal.has-details .modal-inner {
  width: min(1400px, 96vw);
  max-height: 94vh;
  background: #f8f4e8;
  border: 3px solid #111;
  overflow: auto;
}

.media-modal.has-details .modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  align-items: stretch;
  text-align: left;
}

.media-modal.has-details .modal-body img {
  align-self: center;
  max-height: 88vh;
  object-fit: contain;
}

.media-details {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: #f8f4e8;
  color: #111;
  border-left: 3px solid #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-details-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.media-details-description {
  max-width: 72ch;
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.45;
}

.media-details-proof {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 3px solid #111;
}

.media-details-proof h3 {
  margin: 0 0 0.35rem;
  color: #5a2a91;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-details-proof p {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

.artizent-cta-container {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}

.artizent-cta-container .cta-context {
  max-width: 64ch;
  margin: 0 auto 1rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.5;
}

.artizent-cta-container .cta-button {
  margin-top: 0.35rem;
  padding: 0.7rem 1.25rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

@media (max-width: 760px) {
  .challenge-video-placeholder {
    float: none;
    width: 100%;
    margin: 0 0 1.25rem;
  }

  .challenge-story-strip {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .media-modal.has-details .modal-inner {
    width: 100%;
    max-height: 100vh;
    border-width: 0;
  }

  .media-modal.has-details .modal-body img {
    max-height: 60vh;
  }

  .media-modal.has-details .modal-body {
    grid-template-columns: 1fr;
  }

  .media-details {
    border-top: 3px solid #111;
    border-left: 0;
  }

}

/* Shared Challenge structure: full-width introduction, then copy and video. */
.challenge-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}
.challenge-intro > .challenge-video-placeholder {
  float: none;
  width: 100%;
  margin: 0;
  grid-column: 2;
  grid-row: 1;
}
.challenge-intro > div:not(.challenge-video-placeholder) {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}
.challenge-intro > div > :first-child { margin-top: 0; }
@media (max-width: 760px) {
  .challenge-intro { grid-template-columns: minmax(0, 1fr); }
  .challenge-intro > .challenge-video-placeholder { grid-column: 1; grid-row: 1; }
  .challenge-intro > div:not(.challenge-video-placeholder) { grid-column: 1; grid-row: 2; }
}

/* Extra separation for the CGI Challenge layout. */
#cgi-challenge { padding-bottom: 20px; }

#cgi-approach { padding-top: 20px; }
