.container.screenshots-container {
  max-width: 1200px;
  padding: 4rem 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.back-link {
  align-self: center;
  margin-bottom: 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
  align-items: stretch;
}

.screenshot-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.screenshot-card img,
.screenshot-card video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  flex-grow: 1;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.screenshot-card p {
  margin-top: 0.8rem;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.4;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.site-footer {
  margin-top: auto;
  padding: 2rem;
}

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

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