html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* asegura que ocupe al menos el alto de la ventana */
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}


body {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 columnas */
  gap: 0;
  align-items: end; /* asegura que las imágenes se alineen arriba */
  padding: 0;
  margin: 0;
}

/* Desktop pequeño */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Móvil */
@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.project {
  margin: 0;
  padding: 0;
}

.project img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.project h2 {
  margin: 0.5rem 1rem;
  font-size: 1rem;
}

/* Estilos para los metadatos fijos en vertical */
.project-meta {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: transparent;
  z-index: 10;
  pointer-events: none;
  padding-top: 16px;

  display: flex;
  flex-direction: column; /* los hijos en columna */
  gap: 0rem; /* espacio entre cada línea */
}

.project-meta p {
  margin: 0;
  pointer-events: auto;
  display: block; /* para que no estén en línea */
  padding: 0em 0em;
  line-height: 0.2; /* para controlar el espacio vertical dentro de cada párrafo */
}

.book-hover {
  display: block;
  overflow: visible;
}

.book-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, z-index 0s 0.3s;
  transform-origin: left center;
  z-index: 1;
  position: relative;
}

.book-hover:hover .book-img {
  transform: skewY(10deg) translateY(0%);
  z-index: 10;
  transition: transform 0.2s ease, z-index 0s;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* verticalmente centrado */
  padding: 0 16px; /* margen horizontal */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-sizing: border-box;
  font-size: 1rem;
  color: black;
}


.header-right a {
  text-decoration: none;
  color: black;
  font-size: 1rem;
  font-weight: 400;
  line-height: 48px;
  cursor: pointer;
}


/* Evitar que contenido quede oculto bajo el header fijo */
main {
  padding-top: 0px; /* igual que la altura del header */
}

.site-footer {
  width: 100%;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 1rem;
  font-family: inherit;
  color: black;
  z-index: 100;

}

.site-footer a {
  color: black;
  text-decoration: none;
}

.footer-left,
.footer-right {
  max-width: 48%;
  line-height: 1.4;
}

.footer-left a {
  color: black;
  text-decoration: none;
  transition: opacity 0.1s ease;
}

.footer-left a:hover {
  opacity: 0.5;
}

/* Evita que se solapen en pantallas pequeñas */
@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-left,
  .footer-right {
    max-width: 100%;
  }
}

.header-link {
  color: black;
  text-decoration: none;
  transition: opacity 0.1s ease;
}

.header-link:hover {
  opacity: 0.5;
}

.project-back-button {
  width: 100%; /* opcional: puede ocupar todo si querés centrar */
  justify-content: flex-start; /* alinear al final si lo necesitás */
  padding: 0rem 8px; /* padding específico solo para este bloque */
  box-sizing: border-box;
}

.project-back-button .back-button {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: black;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0px 8px;
  transition: opacity 0.1s ease;
  text-decoration: none;
  display: inline-block;
}

.project-back-button .back-button:hover {
  opacity: 0.5;
}

.full-title {
  display: inline;
}

.short-title {
  display: none;
}

@media (max-width: 600px) {
  .full-title {
    display: none;
  }

  .short-title {
    display: inline;
  }
}

@media (max-width: 600px) {
  .book-img {
    transition: transform 0.3s ease, z-index 0s 0.3s;
    transform-origin: left center;
    z-index: 1;
    position: relative;
  }

  .book-img.skew-in {
    transform: skewY(10deg);
    z-index: 10;
  }
}

.site-header a,
.site-footer a {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}