#amen-cont {
  padding: 10px;
}

#amen-list-label {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-top: 0;
}

#amen-list img {
  width: 48px;
}

.amen-list-scroller {
  display: flex;
  align-items: center;
  gap: 12px;
}

#amen-list {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 15px;
  column-gap: 50px;
  justify-content: center;
  color: var(--property-page-amen-text);
}

.amen-list-scroller.is-scrollable #amen-list {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.amen-list-scroller.is-scrollable #amen-list::-webkit-scrollbar {
  display: none;
}

.amen-scroll-button {
  display: none;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background-color 0.2s ease;
  place-items: center;
}

.amen-list-scroller.is-scrollable .amen-scroll-button {
  display: grid;
}

.amen-scroll-button::before {
  width: 8px;
  height: 8px;
  border-top: 2px solid #0b2038;
  border-right: 2px solid #0b2038;
  content: "";
  transition: border-color 0.2s ease;
}

.amen-scroll-button--previous::before {
  margin-left: 3px;
  transform: rotate(-135deg);
}

.amen-scroll-button--next::before {
  margin-left: -3px;
  transform: rotate(45deg);
}

.amen-scroll-button:hover {
  background-color: #222;
}

.amen-scroll-button:hover::before {
  border-color: #fff;
}

.amen-scroll-button:disabled {
  cursor: default;
  opacity: 0.33;
}

.amen-scroll-button:disabled:hover {
  background-color: #fff;
}

.amen-scroll-button:disabled:hover::before {
  border-color: #0b2038;
}

.amen-scroll-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.amen-item {
  display: flex;
  flex: 0 0 144px;
  flex-direction: column;
  align-items: center;
  width: 144px;
}

.amen-item label {
  width: 100%;
  margin-top: 3px;
  text-align: center;
}

@media (max-width: 780px) {
  #amen-cont {
    padding: 5px;
  }

  #amen-list {
    column-gap: 25px;
  }

  .amen-item {
    flex-basis: 96px;
    width: 96px;
  }

  .amen-list-scroller {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amen-list-scroller.is-scrollable #amen-list {
    scroll-behavior: auto;
  }
}
