.lhgw {
  --lhgw-gap: 10px;
  --lhgw-image-width: 260px;
  --lhgw-image-height: 360px;
  --lhgw-title-spacing: 4px;
  --lhgw-radius: 16px;
  --lhgw-object-fit: cover;
  display: block;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  padding: 0 !important;
  margin: 0 calc(50% - 50vw) !important;
  box-sizing: border-box;
}

.lhgw__viewport {
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
}

.lhgw__track {
  display: flex;
  align-items: flex-start;
  gap: var(--lhgw-gap);
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  padding: 0;
  margin: 0;
}

.lhgw__item {
  width: var(--lhgw-image-width);
  min-width: var(--lhgw-image-width);
  max-width: var(--lhgw-image-width);
  display: flex;
  flex-direction: column;
  gap: var(--lhgw-title-spacing);
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
  transform-origin: center center;
}

.lhgw__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--lhgw-radius);
  width: 100%;
  height: var(--lhgw-image-height);
}

.lhgw__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--lhgw-object-fit);
  border-radius: var(--lhgw-radius);
}

.lhgw__title {
  display: block;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lhgw[data-hovering="true"] .lhgw__item {
  opacity: 0.92;
}

.lhgw__item.is-hovered {
  opacity: 1;
  filter: saturate(1.02);
}

@media (hover: hover) {
  .lhgw__item.is-hovered {
    transform: scale(var(--lhgw-hover-scale, 0.92));
  }
}

@media (hover: none) {
  .lhgw__track {
    gap: calc(var(--lhgw-gap) * 0.7);
  }
}

@media (max-width: 767px) {
  .lhgw {
    --lhgw-image-width: min(72vw, 260px);
    --lhgw-image-height: 44vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lhgw__track {
    transform: none !important;
  }

  .lhgw__item {
    transition: none;
  }
}
