.epc-wrapper {
  width: 100%;
  display: flex;
  gap: 0;
  padding-right: 1px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.epc-wrapper::-webkit-scrollbar {
  display: none;
}

.epc-wrapper.is-grabbing {
  cursor: grabbing;
}

.epc-wrapper.is-dragging .epc-card {
  transition: none;
  filter: none;
}

.epc-card {
  position: relative;
  flex: 0 0 20%;
  height: 437px;
  overflow: hidden;
  transition: flex-basis 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.epc-card:not(:last-child) {
  margin-right: -1px;
}

.epc-card.is-expanded {
  flex-basis: 40%;
}

.epc-card-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.epc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  pointer-events: none;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.epc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.epc-card-copy {
  position: absolute;
  left: 22px;
  top: var(--copy-y, 50%);
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, top 0.08s linear;
  max-width: 72%;
}

.epc-card-copy-title,
.epc-card-copy-brand {
  margin: 0;
  text-transform: uppercase;
  color: #ffffff;
}

.epc-card-copy-title {
  font-size: 14px;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.epc-card-copy-brand {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 1.3px;
  font-weight: 500;
}

.epc-card:hover::after,
.epc-card:hover .epc-card-copy {
  opacity: 1;
}

.epc-wrapper.is-dragging .epc-card::after,
.epc-wrapper.is-dragging .epc-card .epc-card-copy {
  opacity: 0;
}

@media (max-width: 1000px) {
  .epc-card {
    height: 300px;
  }
}

@media (max-width: 720px) {
  .epc-card {
    flex-basis: calc((100% - 0px) / 2);
    height: 200px;
  }

  .epc-card.is-expanded {
    flex-basis: calc(((100% - 0px) / 2) * 1.4);
  }
}
