<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>graymice gallery</title>
  <link href="/style.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
  <header>
    <h1>@graymice</h1>
  </header>

  <main class="gallery">
    <article class="post">
      <a href="#img1">
        <div class="image-container">
          <img src="/images/photo1.jpg" alt="Descripción de la imagen 1" />
          <div class="overlay"></div>
        </div>
      </a>
      <p>Descripción de la imagen 1.</p>
    </article>

    <!-- Modal de imagen -->
    <div id="img1" class="lightbox">
      <div class="lightbox-content">
        <a href="#" class="close">&times;</a>
        <img src="/images/photo1.jpg" alt="Imagen grande" />
        <form class="comment-box">
          <label for="comment1">Comenta esta foto:</label>
          <textarea id="comment1" maxlength="190" placeholder="Escribe tu comentario... (máx. 190 caracteres)"></textarea>
          <button type="submit">Enviar</button>
        </form>
      </div>
    </div>

    <!-- Repite artículos y lightboxes según tus imágenes -->
  </main>
</body>
</html>
/* Lightbox fondo */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox:target {
  display: flex;
}

/* Contenido del lightbox */
.lightbox-content {
  background: white;
  max-width: 90%;
  max-height: 90%;
  padding: 1rem;
  border-radius: 8px;
  overflow: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  text-align: center;
}

/* Imagen grande */
.lightbox-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

/* Botón cerrar */
.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: white;
  text-decoration: none;
}

/* Comentario */
.comment-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.comment-box label {
  font-weight: bold;
}

.comment-box textarea {
  resize: none;
  height: 80px;
  padding: 0.5rem;
  font-family: sans-serif;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.comment-box button {
  padding: 0.5rem;
  background-color: #BCA3C7;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.comment-box button:hover {
  background-color: #a98cb9;
}
