.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);
}

/* ------------------ MOBILE VERSION ------------------ */
@media (max-width: 767.98px) {

  .gallery-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }

  .gallery-card {
    border-radius: 10px;
    overflow: hidden;
    cursor: default;
    /* Remove pointer if you want */
  }

  /* Image */
  .card-image img {
    width: 100%;
    height: auto;
    /* Let image height adjust naturally */
    object-fit: cover;
    transition: none;
    /* Remove hover effects */
  }

  /* Remove hover effects */
  .bottom-info {
    position: relative;
    bottom: auto;
    width: 100%;
    padding: 10px;
    background: #0d4b80;
    /* Solid color for mobile */
    color: #fff;
    opacity: 1;
    /* Always visible */
    text-align: center;
  }

  .bottom-info h3 {
    font-size: 16px;
    /* Use Bootstrap fs classes if you want */
  }

  .bottom-info p {
    font-size: 14px;
    margin-top: 4px;
  }

  /* Hide diamond group on mobile */
  .diamond-group {
    display: none !important;
  }

  /* Remove hover transformations */
  .gallery-card:hover .card-image img,
  .gallery-card:hover .diamond-group,
  .gallery-card:hover .bottom-info {
    transform: none;
    opacity: 1;
    filter: none;
  }
}