.ref-showcase-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 30px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.ref-showcase-item {
  position: relative;
  width: 100%;
  max-height: 1590px;
  aspect-ratio: 1 / 1.5;
  overflow: hidden;
  cursor: pointer;
}

.ref-showcase-item:nth-child(3) {
  grid-column: 1;
}

.ref-showcase-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.6s ease;
  z-index: 1;
}

.ref-showcase-item:hover .ref-showcase-bg {
  transform: scale(1);
}

.ref-showcase-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 24px 60px 40px;
  pointer-events: none;
}

.ref-showcase-title {
  font-size: 2.2rem;
  font-weight: 400;
  color: #fff;
  margin: 0;
  text-transform: none;
}

.ref-showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

h3.ref-showcase-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px 24px;
  font-size: 1.15rem;
  font-weight: 500;
  border-radius: 35px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0;
  line-height: 1.4;
}

.ref-showcase-slider {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ref-showcase-item:hover .ref-showcase-slider {
  opacity: 1;
  visibility: visible;
}

.ref-showcase-slide {
  position: absolute;
  width: 90%;
  max-height: 80%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  box-shadow: none;
}

.ref-showcase-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Tablet */
@media (max-width: 1024px) {
  .ref-showcase-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }

  .ref-showcase-pills {
    display: none !important;
  }

  .ref-showcase-slider {
    display: none !important;
  }

  .ref-showcase-item:hover .ref-showcase-bg {
    transform: scale(1.05);
  }

  .ref-showcase-title {
    font-size: 1.5rem;
  }
}

/* Handy */
@media (max-width: 768px) {
  .ref-showcase-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 16px;
    box-sizing: border-box;
  }

  .ref-showcase-item {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1.2;
  }

  .ref-showcase-item:nth-child(3) {
    grid-column: auto;
  }

  .ref-showcase-title {
    font-size: 1.3rem;
  }

  .ref-showcase-overlay {
    padding: 30px 20px;
  }
}