body {
  background: #0b0b0b;
  color: #ffffff;
  font-family: system-ui, sans-serif;
  font-size: 18px;
  margin: 0;
}

main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px 600px;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  text-align: center;
}

p, li {
  line-height: 1.7;
  color: #d0d0d0;
}

a {
  color: #66b3ff;
  text-decoration: underline;
}

a:hover {
  color: #8ec8ff;
}

img {
  display: block;
  margin: 40px auto 10px auto;
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* Lightbox overlay */
.img-lightbox-overlay {
  position:        fixed;
  inset:           0;
  background:      rgba(0,0,0,0.92);
  display:         flex;
  align-items:     center;
  justify-content: center;
  z-index:         9999;
  cursor:          zoom-out;
}
.img-lightbox-overlay img {
  max-width:   90vw;
  max-height:  90vh;
  width:       auto;
  height:      auto;
  object-fit:  contain;
  margin:      0;
  box-shadow:  0 0 60px rgba(0,0,0,0.8);
}

hr {
  border: none;
  border-top: 1px solid #444;
  margin: 40px 0;
}


/* ── Project cards (splash page) ───────────────────────────────────────────── */
.project-cards {
  display:               grid;
  grid-template-columns: 750px 750px;
  gap:                   24px;
  margin-top:            40px;
  /* Break out of main's max-width and center on the viewport */
  position:              relative;
  left:                  50%;
  transform:             translateX(-50%);
  width:                 max-content;
}

.project-card {
  display:         block;
  text-decoration: none;
  color:           inherit;
  min-width:       0;
}

.project-card-header {
  margin-bottom: 10px;
  text-align:    left;
}

.project-card-title {
  font-size:   22px;
  font-weight: 700;
  color:       #ededed;
  margin:      0 0 4px 0;
}

.project-card-subtitle {
  font-size: 15px;
  color:     #777777;
  margin:    0;
}

.project-card-image {
  position:   relative;
  width:      100%;
  padding-top: 56.25%; /* 16:9 */
  overflow:   hidden;
  border:     4px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  transition: border-color 200ms ease;
}

.project-card:hover .project-card-image {
  border-color: rgba(255,255,255,1);
}

.project-card-image img {
  position:   absolute;
  top:        0;
  left:       0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  transform:  scale(1.2);
  filter:     saturate(12.5%);
  transition: filter 200ms ease;
  margin:     0;  /* override global img centering */
  display:    block;
}

.project-card:hover .project-card-image img {
  filter: saturate(100%);
}
