.project-files {
  margin-top: 1.2rem;
  padding-top: 0.4rem;
  border-top: 1px solid #ddd;
}

.project-files h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.project-files ul {
  margin: 0;
  padding-left: 1.2rem;
}

.project-files li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.project-files a {
  color: #111;
}

.project-context {
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  font-size: 1.125rem;
  line-height: 1.7;
}

.project-context p {
  margin: 0 0 0.75rem;
}

.project-context p:last-child {
  margin-bottom: 0;
}

.card-label {
  font-size: 1.15rem;
  margin: 0 0 0.9rem;
  font-weight: 700;
}

.project-video {
  margin: 0 0 2rem;
  max-width: 920px;
}

.project-video h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.project-video-caption {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

.project-video-link {
  margin: 0.75rem 0 0;
  font-size: 1rem;
}

.project-video-link a {
  color: #111;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.thumbs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 2rem;
  max-width: 920px;
}

.thumb-btn {
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}

.thumb-btn img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.thumb-btn:hover img {
  transform: scale(1.02);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: min(1200px, 92vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
}

.lightbox-close {
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.2rem;
  padding: 0.6rem 0.8rem;
}

.lightbox-nav.prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 900px) {
  .thumbs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .thumbs-grid {
    grid-template-columns: 1fr;
  }
}
