/* GRID DE E-BOOKS */
#gridEbooks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

/* TILE (link do e-book) */
.tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  aspect-ratio: 3 / 4;       /* formato mais próximo de livro */
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* CONTAINER INTERNO */
.tile__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* CAPA DO E-BOOK */
.tile__img {
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

/* TÍTULO DO E-BOOK */
.tile__title {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem;
  background: #fafafa;
  flex-shrink: 0;
}
