.documents-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  justify-content: space-around;
  flex-wrap: wrap;
}
.document-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}
.document-item.horizontal {
  width: 450px;
  height: 260px;
}

.document-item.vertical {
  width: 320px;
  height: 450px;
}

.document-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.document-item:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.document-item:hover .overlay {
  opacity: 1;
}

.download-btn {
  background: #e7162e;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.download-btn:hover {
  background: #b61022;
}
