
.image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--crisal-green-light);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: multiply;
  z-index: 2;
}

.image-wrapper:hover::after {
  opacity: 1;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.image-wrapper:hover img {
  transform: scale(1.1);
}

/* applies blur */
.cards-blur-wrapper:has(.image-wrapper:hover) .image-wrapper img,
.cards-blur-wrapper:has(.image-wrapper:hover) .image-wrapper video {
  filter: blur(4px);
  transition: filter .3s ease, transform .3s ease;
}

/* keeps the hovered card sharp */
.cards-blur-wrapper:has(.image-wrapper:hover) .image-wrapper:hover img,
.cards-blur-wrapper:has(.image-wrapper:hover) .image-wrapper:hover video {
  filter: none;
}

/* keeps the selected card sharp */
.cards-blur-wrapper .image-wrapper.selected img,
.cards-blur-wrapper .image-wrapper.selected video {
  filter: none;
}


.card-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: white;
  font-weight: bold;
  text-align: center;
  pointer-events: none;
  z-index: 3;
  font-size: var(--font-2xl) !important;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
}

.image-wrapper.selected::after {
  opacity: 1;
  background-color: var(--grey-mid);
  mix-blend-mode: multiply;
}

.image-wrapper.selected img {
    transform: scale(1.1);
}

.disabled-link {
    pointer-events: none;
    cursor: default;
}


/* Mobile Styles */
@media (max-width: 576px) {

  .image-wrapper {
      aspect-ratio: 3 / 2;
    margin: 0 auto 0 auto !important;
    padding: 0 !important;
  }
}

/* Mobile Landscape and Tablets */
@media (min-width: 576px) and (max-width: 768px) {

  .image-wrapper {
    aspect-ratio: 3 / 2;
    margin: 0 auto 0 auto !important;
    padding: 0 !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
 
  
}

@media (min-width: 1920px) {
  .sustainability-cards-container {
    max-width: 1890px;
  }
}