/* ASMBLY inherits the shared project layout, type and mobile content frame. */
.asmbly-project-page .project-case-title {
  max-width: 22ch;
  line-height: 1.06;
}

.asmbly-project-page .asmbly-heading {
  grid-column: 1 / -1;
  min-width: 0;
}

.asmbly-project-page .project-case-info {
  justify-content: start;
  padding: 0;
}

.asmbly-project-page.project-template.project-case-page .project-case-description {
  margin-top: 0;
}

.asmbly-project-page .asmbly-dateline,
.asmbly-project-page .asmbly-event-film figcaption,
.asmbly-project-page .asmbly-reveal figcaption,
.asmbly-project-page .asmbly-project-details h2,
.featured-work-copy .asmbly-work-context {
  color: rgba(243, 239, 231, 0.7);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.asmbly-project-page .asmbly-dateline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 20px 0 0;
}

.asmbly-project-page .asmbly-stage {
  align-self: start;
  aspect-ratio: auto;
}

.asmbly-project-page .asmbly-stage img {
  height: auto;
  object-fit: contain;
}

.asmbly-project-page .asmbly-event-film,
.asmbly-project-page .asmbly-reveal {
  min-width: 0;
  margin: 0;
}

.asmbly-project-page .asmbly-event-film video,
.asmbly-project-page .asmbly-reveal video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #090909;
}

.asmbly-project-page .asmbly-media-row {
  grid-column: 1 / -1;
  display: grid;
  /* Match frame heights while preserving the 16:9 and 4:5 video crops. */
  grid-template-columns: minmax(0, 20fr) minmax(0, 9fr);
  align-items: start;
  gap: clamp(18px, 2.2vw, 32px);
}

.asmbly-project-page .asmbly-event-film video {
  aspect-ratio: 16 / 9;
}

.asmbly-project-page .asmbly-reveal video {
  aspect-ratio: 4 / 5;
}

.asmbly-project-page .asmbly-reveal figcaption,
.asmbly-project-page .asmbly-event-film figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}

.asmbly-project-page [data-project-video-toggle] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid rgba(243, 239, 231, 0.4);
  border-radius: 0;
  background: transparent;
  color: #f3efe7;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.asmbly-project-page [data-project-video-toggle][hidden] {
  display: none;
}

.asmbly-project-page [data-project-video-toggle]:hover {
  border-color: #f3efe7;
}

.asmbly-project-page [data-project-video-toggle]:focus-visible {
  outline: 2px solid #ff5b1f;
  outline-offset: 4px;
}

.asmbly-project-page .asmbly-project-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 239, 231, 0.22);
}

.asmbly-project-page .asmbly-project-details h2 {
  margin: 0 0 8px;
}

.asmbly-project-page .asmbly-project-details a {
  display: inline-block;
  padding: 6px 0;
  color: #f3efe7;
  font-size: 14px;
  line-height: 1.6;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.asmbly-project-page .asmbly-project-details a:hover,
.asmbly-project-page .asmbly-project-details a:focus-visible {
  color: #ff5b1f;
}

.featured-work-copy .asmbly-work-context {
  margin: 16px 0 0;
}

@media (min-width: 768px) {
  .asmbly-project-page .project-case-grid {
    max-width: 1120px;
  }

  .asmbly-project-page .asmbly-heading .project-case-title {
    max-width: none;
  }
}

@media (max-width: 899px) {
  .asmbly-project-page .project-case-info,
  .asmbly-project-page .asmbly-stage {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .asmbly-project-page .asmbly-media-row,
  .asmbly-project-page .asmbly-project-details {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .asmbly-project-page .asmbly-project-details a {
    min-height: 44px;
  }
}
