
.learning-space{
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.space{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 470px;
  width: 350px;
}

.image-wrapper.in-view .overlay {
  opacity: 1;
  }

  @supports (-webkit-touch-callout: none) {
  .overlay {
    transform: translateZ(0);
    will-change: opacity;
  }
}

.image-wrapper {
  background-size: cover;       
  background-position: center;  
  aspect-ratio: 3/4;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: none; 
}

.space-ul{
  text-align: left;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: auto;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease; /* only fade */
  border-radius: inherit;
  pointer-events: none; /* overlay doesn’t block clicks */
  transform: translate3d(0, 0, 0);
  will-change: opacity;
}

.overlay li{
  margin-left: 20px;
}


@media (hover: hover) {
  .card:hover .overlay {
    opacity: 1;
  }
}

@media (hover: hover) {
  .vision:hover .overlay {
    opacity: 1;
  }
}

  .overlay li{
    font-size: 13px;
  }

  .overlay li{
    font-size: 32px;
  }
