/* Photo Gallery page: scheme tabs (styled in library.css) + image grid */
.pg-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}

.pg-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #e8edf8;
  box-shadow: 0 6px 20px rgba(13, 22, 66, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.pg-photo:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13, 22, 66, 0.18); }
.pg-photo:hover img { transform: scale(1.06); }

.pg-photo-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  background: linear-gradient(to top, rgba(13, 22, 66, 0.85), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pg-photo:hover .pg-photo-cap,
.pg-photo:focus-visible .pg-photo-cap { opacity: 1; transform: none; }

@media (hover: none) { .pg-photo-cap { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pg-photo, .pg-photo img { transition: none; } }

.pg-empty-state {
  text-align: center;
  padding: 56px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: var(--color-grey-600, #64748b);
}

.pg-empty-state i { font-size: 2.6rem; color: #a9b4d0; margin-bottom: 12px; display: block; }
.pg-empty-state h3 { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--color-grey-700, #455a64); }
