html,
body {
  overflow-x: clip;
}

.scroll_gallery_section {
  position: relative;
  padding: 80px 0;
  overflow: visible;
  background:
    linear-gradient(
      90deg,
      rgba(220, 228, 229, 0) 0%,
      rgba(220, 228, 229, 0.5) 29.808%,
      rgba(220, 228, 229, 0.5) 70.192%,
      rgba(220, 228, 229, 0) 100%
    ),
    #ffffff;
}

.scroll_gallery_section .scroll_gallery_header {
  display: flex;
  justify-content: center;
  max-width: 1330px;
  padding: 0 20px 60px;
}

.scroll_gallery_section .scroll_gallery_header .review_title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(100%, 656px);
  text-align: center;
}

.scroll_gallery_section .scroll_gallery_header .h2 {
  margin: 0;
  color: #000000;
  font-size: 100px;
  font-weight: 500;
  line-height: 0.85;
  text-transform: uppercase;
}

.scroll_gallery_section .scroll_gallery_header .p1 {
  max-width: 656px;
  margin: 0;
  color: rgba(0, 0, 0, 0.5);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.scroll_gallery_section .scroll_gallery_slider {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  overflow: visible;
}

.scroll_gallery_section .scroll_gallery {
  width: 100%;
  overflow: visible;
  touch-action: pan-y;
}

.scroll_gallery_section .scroll_gallery_track {
  --gallery-item-width: 400px;
  --gallery-item-height: 530px;
  --gallery-edge-padding: max(20px, calc((100vw - 1330px) / 2 + 20px));
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  padding-right: var(--gallery-edge-padding);
  padding-left: var(--gallery-edge-padding);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.scroll_gallery_section .scroll_gallery_item {
  flex: 0 0 var(--gallery-item-width);
  width: var(--gallery-item-width);
  height: var(--gallery-item-height);
  overflow: hidden;
  border-radius: 20px;
  transition: none;
}

.scroll_gallery_section .scroll_gallery_item img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.scroll_gallery_section .scroll_gallery_controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  max-width: 1330px;
  margin: 0 auto;
  padding: 0 20px;
}

.scroll_gallery_section .scroll_gallery_controls .scroll_gallery_pagination {
  display: none;
}

.scroll_gallery_section .scroll_gallery_controls .scroll_gallery_button {
  position: relative;
  inset: auto;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
  transform: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.scroll_gallery_section .scroll_gallery_controls .scroll_gallery_button::before {
  width: 10px;
  height: 10px;
  border-width: 1.5px;
  border-color: #0a0907;
}

.scroll_gallery_section .scroll_gallery_controls .scroll_gallery_button:hover {
  background: #f4f4f4;
}

.scroll_gallery_section .scroll_gallery_controls .scroll_gallery_button:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 900px) {
  .scroll_gallery_section {
    padding: 60px 0;
  }

  .scroll_gallery_section .scroll_gallery_header {
    padding-bottom: 40px;
  }

  .scroll_gallery_section .scroll_gallery_header .h2 {
    font-size: 60px;
  }

  .scroll_gallery_section .scroll_gallery_header .p1 {
    font-size: 16px;
  }

  .scroll_gallery_section .scroll_gallery_slider {
    gap: 24px;
  }

  .scroll_gallery_section .scroll_gallery_track {
    --gallery-item-width: min(80vw, 320px);
    --gallery-item-height: calc(var(--gallery-item-width) * 1.325);
    --gallery-edge-padding: 20px;
    gap: 12px;
  }

  .scroll_gallery_section .scroll_gallery_item {
    border-radius: 16px;
  }

  .scroll_gallery_section .scroll_gallery_controls .scroll_gallery_button {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 520px) {
  .scroll_gallery_section .scroll_gallery_header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .scroll_gallery_section .scroll_gallery_track {
    --gallery-edge-padding: 16px;
  }

  .scroll_gallery_section .scroll_gallery_controls {
    padding-right: 16px;
    padding-left: 16px;
  }
}
