body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
}

header {
  text-align: center;
  padding: 2rem 1rem;
}

h1 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.back-link {
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: none;
  color: #555;
}

.homepage-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
}

.preview-card {
  position: relative;
  width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-decoration: none;
}

.preview-card img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.preview-card:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  font-size: 1.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 2rem;
}

.gallery-item img {
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-item img:hover {
  transform: scale(1.02);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80vh;
}

#caption {
  margin: 1rem auto;
  text-align: center;
  color: #ddd;
}

.close {
  position: absolute;
  top: 40px;
  right: 60px;
  color: #f1f1f1;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}
