.gallery {
  margin: var(--xl-gap) auto;
  overflow: hidden;
}

.gallery__wrapper {
  position: relative;
  margin: 0 auto;
  max-width: var(--xl-width);
  padding-bottom: var(--xl-gap);
  overflow: hidden;
}

.gallery__headline {
  margin-top: 0;
  text-align: center;
}

.gallery__items {
  display: flex;
}

.gallery__item:last-child {
  padding-right: 0 !important; 
}

.gallery__item img {
  object-fit: cover;
  width: 100%;
  max-width: 80vw;
  height: 14.25rem;
  border-radius: var(--border-r);
  
  @media (min-width: 651px) {
    max-width: 32.7rem;
    height: 27.25rem
  }
}

.gallery .tns-outer {
  width: max-content;
}

.gallery .tns-ovh {
  overflow: visible;
}

.gallery .tns-nav {
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: fit-content;
  margin-top: 2.75rem;
  background-color: var(--stone);
  border-radius: 5px;
  pointer-events: none;
}

.gallery .tns-controls {
  display: none;
  justify-content: space-between;
  max-width: var(--xl-width);
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  padding: 0 15px;
  box-sizing: border-box;
  
  @media (min-width: 1281px) {
    display: flex;
  }
}

.gallery .tns-controls button {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 53px;
  height: 53px;
  padding: 0 0px 2px 5px;
  font-size: 3rem;
  line-height: 1.4;
  font-weight: 600;
  border-radius: 50%;
  border: none;
  color: var(--ocean);
  background-color: #fff;
  opacity: 1;
  transition: opacity .25s;
}

.gallery .tns-controls button[disabled] {
  opacity: .8;
}

.gallery .tns-controls button[data-controls="prev"] {
  transform: rotate(180deg);
}

.gallery .tns-nav button {
  height: 2px;
  border: none;
  padding: 0 15px;
  border-radius: 5px;
  background-color: transparent;
}

.gallery .tns-nav button.tns-nav-active {
  background-color: var(--ocean);
}
