.card {
  position: relative;
  width: 100%;
  cursor: pointer;
  outline: none;
  border-radius: 16px;
  user-select: none;
  transition: box-shadow 0.25s ease;
}

.card:focus-visible {
  box-shadow: 0 0 0 3px rgba(38, 148, 54, 0.4);
}

.imageWrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background-color: #E6EAE7;
}

.image {
  object-fit: cover;
  transition: transform 0.28s ease;
}

.card:hover .image {
  transform: scale(1.025);
}

/* ── Bottom Gradient Overlay ───────────────────────────────── */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.72) 0%,
    rgba(15, 23, 42, 0.22) 40%,
    transparent 70%
  );
  transition: background 0.25s ease;
}

.card:hover .overlay {
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.8) 0%,
    rgba(15, 23, 42, 0.3) 45%,
    transparent 75%
  );
}

.captionGroup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #FFFFFF;
}

.captionIcon {
  flex-shrink: 0;
  color: #FFFFFF;
  opacity: 0.95;
}

.captionText {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expandIconBox {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.card:hover .expandIconBox {
  background-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .card,
  .imageWrapper {
    border-radius: 14px;
  }

  .overlay {
    padding: 12px 14px;
  }

  .captionText {
    font-size: 13px;
  }

  .expandIconBox {
    width: 28px;
    height: 28px;
  }
}
