.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-item {
  position: relative;
  width: 300px;
  height: 200px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: scale(1.03);
}

.label-with-link {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 12px;
  box-sizing: border-box;
  text-align: center;
}

.label-with-link a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}
