[data-fan-card-gallery] {
  --fcg-card-width: clamp(10.5rem, 18.5vw, 14.85rem);
  --fcg-card-ratio: 4 / 7;
  --fcg-radius: clamp(1.25rem, 2.4vw, 2rem);
  position: relative;
  width: min(100%, 80rem);
  height: calc(var(--fcg-card-width) * 1.75 + 7.5rem);
  margin-inline: auto;
  isolation: isolate;
  overflow: visible;
}

[data-fan-card-gallery] > .fcg-card {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: var(--fcg-card-width);
  aspect-ratio: var(--fcg-card-ratio);
  border: 0;
  border-radius: var(--fcg-radius);
  overflow: hidden;
  background: #20231f;
  color: inherit;
  box-shadow: 0 1.1rem 2.8rem rgba(20, 24, 20, .12);
  transform-origin: center center;
  transform:
    translate3d(calc(-50% + var(--fcg-x, 0px)), var(--fcg-y, 0px), 0)
    rotate(var(--fcg-rotation, 0deg))
    scale(var(--fcg-scale, 1));
  transition:
    transform var(--fcg-duration, 520ms) var(--fcg-ease, cubic-bezier(.34, 1.56, .64, 1)) var(--fcg-delay, 0ms),
    box-shadow 220ms ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

[data-fan-card-gallery] > .fcg-card:is(:hover, :focus-visible) {
  box-shadow: 0 1.7rem 3.6rem rgba(20, 24, 20, .22);
}

[data-fan-card-gallery] > .fcg-card:focus-visible {
  outline: 3px solid var(--fcg-focus, #b6ef00);
  outline-offset: 5px;
}

[data-fan-card-gallery] > .fcg-card > :is(img, picture, video, svg),
[data-fan-card-gallery] > .fcg-card > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-fan-card-gallery].fcg-no-motion > .fcg-card {
  transition: none !important;
  will-change: auto;
}

@media (max-width: 767px) {
  [data-fan-card-gallery] {
    --fcg-card-width: clamp(8.75rem, 43vw, 11.25rem);
    height: calc(var(--fcg-card-width) * 1.75 + 5.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-fan-card-gallery] > .fcg-card {
    transition: none !important;
    will-change: auto;
  }
}
