/* CARD PATTERN */

.card-row .wp-block-column {
  padding: 0 !important;
  display: flex;
}

/* CARD CONTAINER */
.card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  height: clamp(180px, 25vw, 220px);
}
.card-title {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 35px;
  font-weight: 600;
  text-align: center;

  padding: 16px;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link .wp-block-cover {
  cursor: pointer;
}

@media (max-width: 768px) {
  .card-title {
    -webkit-line-clamp: 5;
    font-size: 24px;
  }
}
/* IMAGE (FORCED FULL COVER) */
.card img {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* OVERLAY */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

/* TEXT CENTERED */
/* HOVER EFFECT */
.card:hover img {
  transform: scale(1.08);
  transition: transform 0.4s ease;
}

.wp-block-image img,
.card img {
  max-width: none !important;
}

.card:hover::before {
  background: rgba(0,0,0,0.5);
  transition: background 0.3s ease;
}

/* Remove default full overlay */
.bottom-fade {
  position: relative;
  overflow: hidden;
}

/* REMOVE full overlay if it exists */
.bottom-fade::before {
  display: none !important;
}

/* Bottom black fade/bar */
.bottom-fade::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 45%; /* adjust as needed */
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.9),
    rgba(0,0,0,0)
  );
  pointer-events: none;
  z-index: 1;
}