.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  display: block;
}

/* Image */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .5s ease;
}

/* ------------------ BEFORE HOVER (BOTTOM BAR) ------------------ */
.bottom-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  transition: opacity .4s ease;
}

.bottom-info h3 {
  margin: 0;
  font-size: 18px;
}

.bottom-info p {
  margin: 5px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Hide bottom bar on hover */
.gallery-card:hover .bottom-info {
  opacity: 0;
}

/* ------------------ DIAMOND GROUP (AFTER HOVER) ------------------ */
.diamond-group {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease, transform .4s ease;
  transform: scale(0.55); 
}

.diamond {
  position: absolute;
  width: 150px;
  height: 150px;
  transform: rotate(45deg);
  border-radius: 6px;
}

.diamond-back {
  width: 190px;
  height: 190px;
  background: rgba(255, 255, 255, 0.12);
}

.diamond-mid {
  width: 170px;
  height: 170px;
  background: rgba(0, 0, 0, 0.18);
}

.diamond-front {
  width: 150px;
  height: 150px;
  background: #0d4b80;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 20px;
  text-align: center;
}

.diamond-front h3,
.diamond-front p {
  transform: rotate(-45deg);
  margin: 0;
}

.diamond-front h3 {
  font-size: 14px;
  font-weight: bold;
}

.diamond-front p {
  margin-top: 6px;
  font-size: 12px;
}

/* ------------------ HOVER EFFECT ------------------ */
.gallery-card:hover .diamond-group {
  opacity: 1;
  transform: scale(1);
}

.gallery-card:hover .card-image img {
  filter: brightness(60%);
  transform: scale(1.05);
}
