.robot-project-page {
  color: #222;
  background: #fff;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  margin-top: -1.875rem;
  padding-bottom: 4rem;
}

.robot-project-page a {
  color: #0071bc;
  text-decoration: none;
}

.robot-project-page a:hover {
  color: #208799;
  text-decoration: none;
}

.robot-project-container {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.robot-project-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.robot-project-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.robot-project-title-line {
  display: block;
}

.robot-project-meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.1rem;
  color: #444;
  font-size: 1.05rem;
}

.robot-project-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
}

.robot-project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  background: #222;
  color: #fff !important;
  font-weight: 700;
}

.robot-project-button:hover {
  background: #333;
  color: #fff !important;
}

.robot-project-hero-video {
  margin-top: 0.5rem;
}

.robot-project-page h2 {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
}

.robot-project-abstract {
  width: min(760px, 100%);
  margin: 1.5rem auto 0;
  text-align: justify;
}

.robot-project-abstract p {
  margin: 0;
  overflow-wrap: anywhere;
}

.robot-video-section {
  margin-top: 2.1rem;
}

.robot-video-section hr {
  height: 1px;
  margin: 2rem 0;
  border: 0;
  background-image: linear-gradient(to right, rgba(0, 113, 188, 0.2), rgba(0, 0, 0, 0.1), rgba(0, 113, 188, 0.2));
}

.robot-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.robot-video-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f4f4;
}

.robot-video-card video {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f4f4f4;
  border-radius: 10px;
}

.robot-video-card-main video {
  aspect-ratio: 16 / 9;
}

.robot-video-pending {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.45rem;
  padding: 1rem;
  color: #777;
  text-align: center;
  pointer-events: none;
}

.robot-video-pending span {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.robot-video-pending code {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #777;
  font-size: 0.78rem;
  background: transparent;
}

.robot-video-card video[src],
.robot-video-card video:has(source[src]) {
  position: relative;
  z-index: 2;
}

.robot-video-card figcaption {
  padding: 0.55rem 0.25rem 0;
  color: #333;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .robot-project-page {
    font-size: 16px;
  }

  .robot-project-header {
    padding-top: 3rem;
  }

  .robot-project-header h1 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
    word-break: break-all;
  }

  .robot-project-abstract {
    text-align: left;
  }

  .robot-project-abstract p {
    word-break: break-all;
  }

  .robot-video-grid {
    grid-template-columns: 1fr;
  }
}
