.cc_8nqxgjaf_BWJDW9gY3c .esi {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--es-ratio, 3 / 4);
  background: var(--ll-color-bg-warm);
  color: var(--ll-color-text-inverse);
  text-decoration: none;
  user-select: none;
}

.cc_8nqxgjaf_BWJDW9gY3c .esi-img, .cc_8nqxgjaf_BWJDW9gY3c .esi-placeholder, .cc_8nqxgjaf_BWJDW9gY3c .esi-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cc_8nqxgjaf_BWJDW9gY3c .esi-img {
  display: block;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cc_8nqxgjaf_BWJDW9gY3c .esi-placeholder {
  background: var(--ll-color-bg-warm);
}

/* Gradient only along the bottom third, so the photo stays clean while the caption stays readable. */
.cc_8nqxgjaf_BWJDW9gY3c .esi-overlay {
  background: linear-gradient(to top, color-mix(in srgb, #000 calc(var(--esi-overlay, 0.4) * 100%), transparent) 0%, transparent 55%);
  pointer-events: none;
}

.cc_8nqxgjaf_BWJDW9gY3c .esi-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  box-sizing: border-box;
  padding: var(--ll-space-lg);
  padding-bottom: var(--ll-space-lg);
  pointer-events: none;
}

.cc_8nqxgjaf_BWJDW9gY3c .esi-title {
  margin: 0;
  color: inherit;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Faint resting underline; on hover a solid line draws over it from the left. */
.cc_8nqxgjaf_BWJDW9gY3c .esi-cta {
  position: relative;
  padding-bottom: 4px;
  border-bottom: var(--ll-border-width) solid color-mix(in srgb, currentColor 45%, transparent);
  color: inherit;
}

.cc_8nqxgjaf_BWJDW9gY3c .esi-cta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: calc(var(--ll-border-width) * -1);
  left: 0;
  height: var(--ll-border-width);
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms cubic-bezier(0.65, 0, 0.35, 1);
}

.cc_8nqxgjaf_BWJDW9gY3c a.esi:hover .esi-img, .cc_8nqxgjaf_BWJDW9gY3c a.esi:focus-visible .esi-img {
  transform: scale(1.05);
}

.cc_8nqxgjaf_BWJDW9gY3c a.esi:hover .esi-title, .cc_8nqxgjaf_BWJDW9gY3c a.esi:focus-visible .esi-title {
  transform: translateY(-4px);
}

.cc_8nqxgjaf_BWJDW9gY3c a.esi:hover .esi-cta::after, .cc_8nqxgjaf_BWJDW9gY3c a.esi:focus-visible .esi-cta::after {
  transform: scaleX(1);
}

.cc_8nqxgjaf_BWJDW9gY3c a.esi:focus-visible {
  outline: 2px solid var(--ll-color-accent);
  outline-offset: -4px;
}

@media (max-width: 768px) {
  .cc_8nqxgjaf_BWJDW9gY3c .esi-body {
    gap: 6px;
    padding: var(--ll-space-md);
  }

  .cc_8nqxgjaf_BWJDW9gY3c .esi .esi-title {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .cc_8nqxgjaf_BWJDW9gY3c .esi .esi-cta {
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_8nqxgjaf_BWJDW9gY3c .esi-img, .cc_8nqxgjaf_BWJDW9gY3c .esi-title, .cc_8nqxgjaf_BWJDW9gY3c .esi-cta::after {
    transition: none;
  }

  .cc_8nqxgjaf_BWJDW9gY3c a.esi:hover .esi-img, .cc_8nqxgjaf_BWJDW9gY3c a.esi:hover .esi-title {
    transform: none;
  }
}
