:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --text-muted: #888888;
  --font-family: 'Courier New', Courier, monospace;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.timeline {
  max-width: 1200px;
  margin: 80px auto var(--space-xxl) auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xxl);
}

.date-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.date-separator {
  color: var(--text-muted);
  font-size: 12px;
  border-bottom: 1px solid #222;
  padding-bottom: var(--space-xs);
  margin-top: var(--space-sm);
}

/* En móviles (1 columna por defecto) */
.photo-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.photo-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #000000;
}

.photo-container {
  position: relative;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

.photo-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Capa oscura de metadatos alineada a la izquierda con padding */
.metadata-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-lg);
  color: var(--text-color);
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 10;
  text-align: left;
}

/* Mostrar overlay al hacer clic (clase activa .show-metadata) */
.photo-container.show-metadata .metadata-overlay {
  opacity: 1;
  visibility: visible;
}

.metadata-item {
  white-space: nowrap;
  letter-spacing: 0.5px;
  color: #dddddd;
}

/* Layout Masonry de 3 columnas para Pantallas de Escritorio (Desktop >= 1024px) */
@media (min-width: 1024px) {
  .photo-grid {
    display: block;
    column-count: 3;
    column-gap: var(--space-lg);
  }

  .photo-card {
    break-inside: avoid;
    margin-bottom: var(--space-lg);
    display: inline-block;
  }
}
