/*
  CUBE — Project Detail Extras
  Gallery, byline, tech stack, and team list. Additive only, loaded
  after project_detail.css. Uses the same CSS custom properties
  (--ink, --primary, --border, --glass-strong, etc.) that
  project_detail.css already defines, so it stays theme-consistent.
*/

/* ================================================
   IMAGE GALLERY — large main image + thumbnail strip
   ================================================ */
.project-gallery {
  padding: 0;
}

.gallery-main {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: opacity 0.25s ease;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  padding: 14px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.15);
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: none;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-thumb {
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--primary, #e31136);
}

/* ================================================
   BYLINE — compact creator credit under the title
   ================================================ */
.hero-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-byline img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-byline p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.hero-byline p a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.hero-byline p a:hover {
  color: var(--primary);
}

/* ================================================
   TECH STACK — chip row in the sidebar
   ================================================ */
.skill-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-chip-static {
  display: inline-flex;
  align-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ================================================
   PROJECT TEAM — collaborator list
   ================================================ */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-member-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.team-member-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.team-member-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.team-member-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-member-info h3 i {
  color: #1d9bf0;
  font-size: 12px;
}

.team-role-badge {
  display: inline-block;
  margin-top: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 3px 10px;
  border-radius: 20px;
}

.team-member-info p {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .gallery-main {
    aspect-ratio: 4 / 3;
    max-height: 320px;
  }

  .gallery-thumb {
    width: 64px;
    height: 64px;
  }
}
