.rayou-about-gallery {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #f1f2f3;
}

.rayou-about-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .45s ease;
}

.rayou-about-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.rayou-about-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rayou-about-image .rayou-about-gallery-slide img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.rayou-about-gallery-control {
  position: absolute;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 0 4px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgb(25 34 43 / 68%);
  color: #fff;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.rayou-about-gallery-control:hover,
.rayou-about-gallery-control:focus-visible {
  background: #f2a900;
  color: #fff;
}

.rayou-about-gallery-prev {
  left: 14px;
}

.rayou-about-gallery-next {
  right: 14px;
}

.rayou-about-gallery-count {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 2px;
  background: rgb(25 34 43 / 68%);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}

@media (max-width: 991px) {
  .rayou-about-gallery {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .rayou-about-gallery-control {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .rayou-about-gallery-prev {
    left: 10px;
  }

  .rayou-about-gallery-next {
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rayou-about-gallery-track {
    transition: none;
  }
}
