/* Base styles for all gallery items */
.masonry-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Only apply overlay and icon to NON video items */
.masonry-item:not([data-category="video"]) {
  position: relative;
}

/* Overlay on hover (only for non-video items) */
.masonry-item:not([data-category="video"])::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #303c3399; /* Green with transparency */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* '+' Icon (only for non-video items) */
.masonry-item:not([data-category="video"])::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: white;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s ease;
  cursor: pointer; /* Show pointer */
}

/* Show overlay and icon on hover (only for non-video items) */
.masonry-item:not([data-category="video"]):hover::before,
.masonry-item:not([data-category="video"]):hover::after {
  opacity: 1;
}