/* ── Link Preview Gallery – Frontend Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.lpg-gallery {
  display: grid;
  gap: 22px;
  margin: 30px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Column variants */
.lpg-cols-1 { grid-template-columns: 1fr; }
.lpg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lpg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lpg-cols-4 { grid-template-columns: repeat(4, 1fr); }
.lpg-cols-5 { grid-template-columns: repeat(5, 1fr); }
.lpg-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Card */
.lpg-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.lpg-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

/* Image area */
.lpg-item-img {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
  background: #f3f4f6;
}
.lpg-item-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}
.lpg-item:hover .lpg-item-img img { transform: scale(1.06); }

/* Overlay */
.lpg-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(99,102,241,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
  backdrop-filter: blur(3px);
}
.lpg-item:hover .lpg-item-overlay { opacity: 1; }

.lpg-visit-btn {
  background: #fff;
  color: #4f46e5;
  font-weight: 700;
  font-size: .9rem;
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

/* Info area */
.lpg-item-info {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lpg-item-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}
.lpg-item-info p {
  margin: 0;
  font-size: .82rem;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lpg-item-url {
  margin-top: auto;
  font-size: .75rem;
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empty state */
.lpg-no-items {
  padding: 20px;
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 10px;
  color: #92400e;
}

/* Responsive */
@media (max-width: 1024px) {
  .lpg-cols-4, .lpg-cols-5, .lpg-cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .lpg-cols-3, .lpg-cols-4, .lpg-cols-5, .lpg-cols-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .lpg-gallery { grid-template-columns: 1fr !important; }
}
