.drop-gallery-link {
  position: absolute;
  inset: 0;
  isolation: isolate;
  display: block;
  overflow: hidden;
  color: #fff;
}

.drop-gallery-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 86%), rgb(0 0 0 / 38%) 44%, transparent 72%);
  pointer-events: none;
}

.drop-gallery-link:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.drop-gallery-link img {
  transition: transform 240ms ease;
}

.drop-gallery-link:is(:hover, :focus-visible) img {
  transform: scale(1.035);
}

.drop-gallery-caption {
  position: absolute;
  z-index: 1;
  inset-inline: clamp(16px, 2vw, 34px);
  inset-block-end: clamp(16px, 2vw, 34px);
  display: grid;
  justify-items: start;
  gap: 12px;
}

.drop-gallery-title {
  font-size: clamp(1.45rem, 4.05vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.drop-gallery-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  background: var(--shop-surface, #f7f6f3);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
}

.drop-gallery-credit {
  position: absolute;
  right: clamp(16px, 2vw, 34px);
  bottom: clamp(16px, 2vw, 34px);
  z-index: 1;
  color: white;
  font-size: 0.75rem;
  font-weight: 300;
}

.drop-gallery .drop-gallery-wide {
  grid-column: span 2;
  aspect-ratio: auto;
}

.drop-gallery .drop-gallery-full {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}

@media (max-width: 900px) {
  .drop-gallery .drop-gallery-wide,
  .drop-gallery .drop-gallery-full {
    aspect-ratio: 3 / 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drop-gallery-link img {
    transition: none;
  }
}
