.slm-marquee {
  position: relative;
  display: flex;
  align-items: center;
  overflow-x: hidden;
  overflow-y: visible;

  --slm-hover-pad: 0px;
  padding-block: var(--slm-hover-pad);

  --slm-gap: 24px;
  --slm-hover-gap-extra: 16px;
  --slm-hover-scale: 1.2;

  --slm-img-height: 56px;
  --slm-img-width: 120px;

  --slm-media-gap: 8px;

  --slm-fade-width: 60px;
  --slm-fade-edge: 0;

  --slm-vertical-height: 520px;
}

.slm-marquee,
.slm-marquee *,
.slm-marquee *::before,
.slm-marquee *::after {
  box-sizing: border-box;
}

.slm-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--slm-gap);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.slm-item {
  flex: 0 0 auto;
  position: relative;
  z-index: 0;
  margin-left: 0;
  margin-right: 0;
  transition: margin 220ms ease;
}

.slm-item:hover {
  z-index: 2;
  margin-left: calc(var(--slm-hover-gap-extra) / 2);
  margin-right: calc(var(--slm-hover-gap-extra) / 2);
}

.slm-item-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transform: translate3d(0, 0, 0);
  transition: transform 220ms ease;
}

.slm-item:hover .slm-item-box {
  transform: scale(var(--slm-hover-scale));
}

.slm-item-link {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: inherit;
  box-shadow: none !important;
  line-height: 1;
  cursor: pointer;
  font: inherit;
}

.slm-item-img {
  display: block;
  height: var(--slm-img-height) !important;
  width: auto !important;
  max-width: none;
  object-fit: contain;
  object-position: center center;
}

.slm-fixed-width .slm-item-img {
  width: var(--slm-img-width) !important;
  max-width: none;
}

.slm-item-text {
  display: inline-block;
  white-space: nowrap;
}

.slm-item-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--slm-media-gap);
}

.slm-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.slm-item-label {
  display: inline-block;
  white-space: nowrap;
  line-height: 1.2;
}

.slm-labelpos-below .slm-item-label,
.slm-labelpos-above .slm-item-label {
  width: 100%;
}

.slm-labelpos-below .slm-item-content {
  flex-direction: column;
}

.slm-labelpos-above .slm-item-content {
  flex-direction: column-reverse;
}

.slm-labelpos-right .slm-item-content {
  flex-direction: row;
}

.slm-labelpos-left .slm-item-content {
  flex-direction: row-reverse;
}

.slm-labelalign-center .slm-item-label {
  text-align: center;
}

.slm-labelalign-left .slm-item-label {
  text-align: left;
}

.slm-labelalign-right .slm-item-label {
  text-align: right;
}

.slm-edge-fade {
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, var(--slm-fade-edge)) 0,
    rgba(0, 0, 0, 1) var(--slm-fade-width),
    rgba(0, 0, 0, 1) calc(100% - var(--slm-fade-width)),
    rgba(0, 0, 0, var(--slm-fade-edge)) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, var(--slm-fade-edge)) 0,
    rgba(0, 0, 0, 1) var(--slm-fade-width),
    rgba(0, 0, 0, 1) calc(100% - var(--slm-fade-width)),
    rgba(0, 0, 0, var(--slm-fade-edge)) 100%
  );
}

/* Vertical direction fixes */
.slm-direction-up,
.slm-direction-down {
  height: var(--slm-vertical-height);
  min-height: 0;
  max-height: var(--slm-vertical-height);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  align-items: stretch;
  padding-block: 0;
}

.slm-direction-up .slm-track,
.slm-direction-down .slm-track {
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.slm-direction-up .slm-item,
.slm-direction-down .slm-item {
  width: auto;
  max-width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transition: none;
}

.slm-direction-up .slm-item:hover,
.slm-direction-down .slm-item:hover {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.slm-direction-up .slm-item-box,
.slm-direction-down .slm-item-box {
  max-width: 100%;
}

.slm-direction-up .slm-item-img,
.slm-direction-down .slm-item-img {
  max-width: 100% !important;
}

.slm-direction-up.slm-edge-fade,
.slm-direction-down.slm-edge-fade {
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, var(--slm-fade-edge)) 0,
    rgba(0, 0, 0, 1) var(--slm-fade-width),
    rgba(0, 0, 0, 1) calc(100% - var(--slm-fade-width)),
    rgba(0, 0, 0, var(--slm-fade-edge)) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, var(--slm-fade-edge)) 0,
    rgba(0, 0, 0, 1) var(--slm-fade-width),
    rgba(0, 0, 0, 1) calc(100% - var(--slm-fade-width)),
    rgba(0, 0, 0, var(--slm-fade-edge)) 100%
  );
}

/* Lightbox */
.slm-lightbox[hidden] {
  display: none !important;
}

.slm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.slm-lightbox-backdrop {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
}

.slm-lightbox-stage {
  position: relative;
  z-index: 2;
  width: min(94vw, 1280px);
  height: min(86vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slm-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.slm-lightbox-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute;
  z-index: 3;
  border: 0 !important;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.slm-lightbox-btn:hover {
  transform: scale(1.04);
}

.slm-lightbox-close {
  top: 16px;
  right: 16px;
}

.slm-lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.slm-lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.slm-lightbox-prev:hover,
.slm-lightbox-next:hover {
  transform: translateY(-50%) scale(1.04);
}

@media (max-width: 767px) {
  .slm-lightbox {
    padding: 16px;
  }

  .slm-lightbox-stage {
    width: 94vw;
    height: 78vh;
  }

  .slm-lightbox-close {
    top: 10px;
    right: 10px;
  }

  .slm-lightbox-prev {
    left: 8px;
  }

  .slm-lightbox-next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slm-item-box {
    transition: none;
  }

  .slm-track {
    transform: none;
  }
}



.slm-marquee.slm-lightbox-open {
  overflow: visible !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  z-index: 999999;
}

body.slm-lightbox-is-open {
  overflow: hidden;
}

.slm-lightbox {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
}