.hex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px;
  justify-items: center;
}

.hex {
  width: 200px;
  height: 173px;
  clip-path: polygon(
    50% 0%, 100% 25%, 100% 75%,
    50% 100%, 0% 75%, 0% 25%
  );
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
  cursor: pointer;
  background: #ccc;
}

.hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hex .overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-family: sans-serif;
}
