/* Galeri Page Custom Styles */

/* Override Navbar Transparency to match subpages (Infrastruktur/Aset Desa) */
.navbar-custom {
  background: rgba(20, 40, 20, 0.95) !important;
}


.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #f8f9fa;
  height: 100%;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
}

.gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  padding: 20px 15px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 60%;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-date {
  font-size: 0.8rem;
  opacity: 0.8;
  transform: translateY(10px);
  transition: transform 0.3s ease;
  transition-delay: 0.05s;
}

.gallery-item:hover .gallery-title,
.gallery-item:hover .gallery-date {
  transform: translateY(0);
}

/* Lightbox customizations */
#lightboxModal .modal-content {
  background: transparent;
}

#lightboxImage {
  max-height: 85vh;
  object-fit: contain;
}

#lightboxCaption h4 {
  font-weight: 600;
  margin-bottom: 5px;
}

/* Skeleton Loading Animation */
.skeleton-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.skeleton-img {
  width: 100%;
  padding-top: 75%;
  background: #e2e8f0;
  animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-text {
  background: #e2e8f0;
  border-radius: 4px;
  animation: pulse 1.5s infinite ease-in-out;
  margin: 15px;
}

.skeleton-title {
  height: 20px;
  width: 70%;
  margin-bottom: 10px;
}

.skeleton-date {
  height: 12px;
  width: 40%;
}

@keyframes pulse {
  0% { background-color: #e2e8f0; }
  50% { background-color: #cbd5e1; }
  100% { background-color: #e2e8f0; }
}
