/*
 * Gallery layout polish — Blue Patel Digital.
 * Added as a separate stylesheet (loaded after the compiled app CSS) so the
 * original build output is never touched. Selectors are scoped to the exact
 * class combination used by the public gallery grid, verified unique to it.
 */

/* Uniform, slightly more generous spacing + an extra column on large desktops */
.grid.sm\:grid-cols-2.lg\:grid-cols-3.gap-4 {
  gap: 1.5rem !important;
}

@media (min-width: 1280px) {
  .grid.sm\:grid-cols-2.lg\:grid-cols-3.gap-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Every tile — image or video — gets the same aspect ratio and grid footprint,
   so the grid reads as one clean, aligned block instead of a mixed layout. */
@media (min-width: 640px) {
  .grid.sm\:grid-cols-2.lg\:grid-cols-3.gap-4 .sm\:col-span-2 {
    grid-column: span 1 / span 1 !important;
  }
}

.grid.sm\:grid-cols-2.lg\:grid-cols-3.gap-4 .aspect-video {
  aspect-ratio: 4 / 3 !important;
}

/* Subtle depth so tiles feel like a cohesive, professional set */
.grid.sm\:grid-cols-2.lg\:grid-cols-3.gap-4 > div {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.grid.sm\:grid-cols-2.lg\:grid-cols-3.gap-4 > div:hover {
  box-shadow: 0 16px 28px -10px rgba(15, 23, 42, 0.2);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .grid.sm\:grid-cols-2.lg\:grid-cols-3.gap-4 > div {
    transition: none;
  }
}
