img.logo-image {
  object-fit: cover;
  height: 100%;
  width: 100%;
  border-radius: 0.5rem;
  
}

.image-wrapper {
    position: relative;
    width: 100%;
    text-align: center;          /* Center the title below the image */
}

.image-wrapper .link-image {
    display: flex;               /* Center image inside this frame */
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 360px;               /* Fixed height to align all cards */
    overflow: hidden;            /* Crop overflow */
    border-radius: 16px;         /* Optional rounded corners */
    background: #f7f7f7;         /* Placeholder for small images */
}

/* Ensure images scale proportionally without distortion */
.image-wrapper img.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* Fills area while maintaining aspect ratio */
    display: block;
}

.image-wrapper h2 {
    margin-top: 16px;            /* Space between image and name */
    font-size: 1.2rem;
}

.image-wrapper:hover img.main-image {
  filter: blur(3px);
}

/* Remove blur on card-front and card-back */
.image-wrapper:hover .overlay-card,
.image-wrapper:hover .card,
.image-wrapper:hover .link-image,
.image-wrapper:hover .card-inner,
.image-wrapper:hover .card-front,
.image-wrapper:hover .card-back {
  filter: none;
}

.card {
  width: 200px;
  height: 250px;
  margin: 1rem auto;
  perspective: 1000px;
  cursor: pointer;
  border-radius: 0.5rem;
}

.overlay-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 200px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 0.5rem;
}

.grid-item:hover .overlay-card {
  opacity: 1;
  pointer-events: auto;
}

/* cards */

.card-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 3s;
  transform-style: preserve-3d;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.21);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.27);
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}
.card-front {
  display: flex;
}

.card-back {
  color: white;
  transform: rotateY(180deg);
  
}


.info > div {
  margin-bottom: 1rem; /* Adjust this value to control spacing */
}
.info > div:last-child {
  margin-bottom: 0; /* Remove space after the last item */
}