.att-home-gallery {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.att-home-gallery .container,
.att-home-gallery .section-content,
.att-home-gallery__strips {
  min-width: 0;
  max-width: 100%;
}

.att-home-gallery__heading {
  max-width: 100%;
  margin: 0 0 clamp(1.25rem, 3vw, 2.5rem);
  text-align: right;
}

.att-home-gallery__heading > span {
  display: block;
}

.att-home-gallery__heading h2 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 5rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.att-gallery-marquee {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  contain: layout paint;
  touch-action: pan-y;
}

.att-gallery-marquee + .att-gallery-marquee {
  margin-top: clamp(0.25rem, 1vw, 0.75rem);
}

.att-gallery-marquee__track,
.att-gallery-marquee__group {
  display: flex;
  align-items: center;
  width: max-content;
}

.att-gallery-marquee__track {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.att-gallery-marquee__group {
  flex: none;
  padding-block: clamp(0.5rem, 1.2vw, 0.9rem);
}

.att-gallery-marquee__item {
  flex: 0 0 clamp(16rem, 30vw, 26rem);
  width: clamp(16rem, 30vw, 26rem);
  padding-inline: clamp(0.4rem, 0.8vw, 0.75rem);
}

.att-gallery-marquee__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: clamp(1.25rem, 2.4vw, 1.875rem);
  background: #eef5f5;
}

.att-gallery-marquee__media img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center;
}

.att-gallery-marquee__empty {
  width: min(100%, 30rem);
  padding: 1.5rem;
  color: #08666d;
  white-space: normal;
  text-align: center;
}

@media (max-width: 767px) {
  .att-home-gallery__heading {
    margin-inline: auto;
    padding-inline: 0.25rem;
    text-align: center;
  }

  .att-home-gallery__heading h2 {
    font-size: clamp(2rem, 10.5vw, 3.25rem);
    line-height: 1.02;
  }

  .att-gallery-marquee__item {
    flex-basis: clamp(15.5rem, 78vw, 20rem);
    width: clamp(15.5rem, 78vw, 20rem);
    padding-inline: 0.4rem;
  }

  .att-gallery-marquee__media {
    border-radius: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .att-gallery-marquee {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    touch-action: pan-x pan-y;
  }

  .att-gallery-marquee__track {
    transform: none !important;
    will-change: auto;
  }
}
