/* Static pages, projects and gallery (index/page.html, projects_list.html,
   project_detail.html, gallery.html). Theme tokens only — dark mode follows. */

.static-page-card {
  padding: 28px;
  margin-top: 24px;
  border-radius: 12px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
}

.static-page-image {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
}

.static-page-content {
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.static-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.static-page-content table {
  max-width: 100%;
}

.static-page-content > *:last-child {
  margin-bottom: 0;
}

.static-page-updated {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--secondary-color);
}

/* -------------------------------------------------------------- projects */

.project-progress {
  height: 6px;
  margin: 4px 0 6px;
  border-radius: 999px;
  overflow: hidden;
  background-color: var(--surface-alt-color);
}

.project-progress-bar {
  height: 100%;
  border-radius: 999px;
  background-color: var(--accent-color);
}

.project-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.project-fact > span:first-child {
  color: var(--secondary-color);
}

/* --------------------------------------------------------------- gallery */

.gallery-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
}

.gallery-tile-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--surface-alt-color);
}

.gallery-tile-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-tile-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.35);
}

.gallery-tile-caption {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--heading-color);
}
