.gallery-item-content {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.gallery-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

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

.gallery-text {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
}

.gallery-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.gallery-description {
  font-size: 0.875rem;
  color: #d1d5db;
}

.gallery-container {
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  position: relative;
  z-index: 1;
  overflow-clip-box: content-box; /* Ensure no spillage */
}

.gallery-image {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.bg-canvas {
  background: linear-gradient(
    to right,
    #00063a,
    #00549e
  ); /* Gradient colors (can be customized) */
  background-attachment: fixed; /* Keeps the gradient fixed on scroll */
  background-size: cover; /* Ensures the gradient covers the entire section */
  background-position: center; /* Centers the gradient */
}

canvas {
  cursor: grab;
}
canvas:active {
  cursor: grabbing;
}
