/* ====== DATE VIEW SECTION HEADERS + GALLERY GRID ====== */

.section-header {
  color: rgba(255,255,255,0.35);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 32px 0 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}

.section-header:first-child {
  padding-top: 16px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.gallery-item {
  position: relative;
  flex: 1 1 auto;
  height: 280px;
  min-width: 200px;
  max-width: 500px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  line-height: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.4s ease;
  transform: scale(1);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-item img.loaded { opacity: 1; }

.gallery-item::after {
  content: 'Daniele Moro';
  position: absolute;
  bottom: 8px;
  right: 10px;
  color: rgba(255,255,255,0.45);
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.gallery-item:hover img { transform: scale(1.02); }

@media (max-width: 1024px) {
  .gallery-item { height: 220px; min-width: 160px; }
}

@media (max-width: 600px) {
  .gallery-item { height: 200px; min-width: 140px; }
}
