.gallery-marquee {
  display: grid;
  gap: 44px;
  padding: 48px 0;
}

.marquee-row {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  touch-action: none;
}

.marquee-track.is-dragging {
  cursor: grabbing;
}

.gallery-item {
  flex: 0 0 auto;
  display: block;
  height: 320px;
  text-decoration: none;
}

.gallery-item img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  border-radius:20px;
}

.gallery-shadowbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
  background: rgba(0, 0, 0, .92);
  touch-action: none;
}

.gallery-shadowbox[hidden] {
  display: none;
}

.gallery-shadowbox.is-changing img {
  opacity: 0;
  transform: scale(.985);
}

.gallery-shadowbox img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  transition: opacity .22s ease, transform .22s ease;
}

.gallery-shadowbox button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
  line-height: 1;
  padding:0px;
}

.gallery-shadowbox-close {
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 34px;
  padding-bottom: 4px;
}

.gallery-shadowbox-prev,
.gallery-shadowbox-next {
  top: 50%;
  width: 54px;
  height: 70px;
  transform: translateY(-50%);
  font-size: 44px;
}

.gallery-shadowbox-prev {
  left: 20px;
}

.gallery-shadowbox-next {
  right: 20px;
}

@media (max-width: 1023px) {
  .gallery-item {
    height: 250px;
  }
}

@media (max-width: 767px) {
  .gallery-marquee {
    gap: 28px;
    padding: 32px 0;
  }

  .marquee-track {
    gap: 26px;
  }

  .gallery-item {
    height: 190px;
  }

  .gallery-shadowbox {
    padding: 44px 16px;
  }
}