.pdf-flinko-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.pdf-flinko-item {
  flex: 0 0 calc(25% - 16px); /* 4 columnas en desktop */
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .pdf-flinko-item {
    flex: 0 0 calc(50% - 16px); /* 2 columnas en mobile */
  }
}

.pdf-flinko-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  border-radius: 8px;
}

#pdf-flinko-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.pdf-flinko-content {
    position: relative;
    background: #fff;
    padding: 40px;
    width: 90%;
    text-align: center;
    border-radius: 16px;
    height: 90%;
}

.pdf-flinko-content iframe,
.pdf-flinko-content img {
  max-width: 100%;
  height: 100;
}

#pdf-flinko-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
}
.pdf-flinko-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.pdf-flinko-item img:hover {
  transform: scale(1.03);
}
.pdf-flinko-download-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #5d41e7;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
