.mosaic-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
}

.mosaic-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mosaic-image {
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.mosaic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  padding: 5px;
  transition: opacity 0.3s ease;
}

.mosaic-text {
  text-align: center;
  color: white;
}

.mosaic-item:hover .mosaic-image {
  transform: scale(0.95);
  filter: brightness(0.6);
}

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