/* GALLERY */

.gallery-main.offset-main {
  padding-top: 120px;
  overflow-x: clip;
}

.gallery-main .wrapper.gallery {
  box-sizing: border-box;
  overflow-x: clip;
}

.gallery .title {
  letter-spacing: 0.02em;
}

.gallery h2 {
  margin: 0 0 28px;
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-align: center;
}

.gallery-main .gallery > h2 {
  width: 100%;
  display: block;
  text-align: center !important;
  margin-left: 0;
  margin-right: 0;
}

.gallery-anchors,
.gallery-interier,
.gallery-party,
.gallery-koop,
.gallery-happy,
.gallery-wedding {
  list-style: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.gallery-anchors {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 16px auto 28px;
  scrollbar-width: none;
}

.gallery-anchors::-webkit-scrollbar {
  display: none;
}

.gallery-anchors li {
  flex: 0 0 auto;
}

.gallery-anchors button {
  white-space: nowrap;
  font-family: 'Tenor Sans', sans-serif;
  font-size: 19px;
  text-transform: none;
  color: #b8b3ac;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.gallery-anchors button:hover {
  color: #1c1c1c;
}

.gallery-item {
  min-width: 0;
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
}

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

.gallery-interier,
.gallery-party,
.gallery-koop,
.gallery-happy,
.gallery-wedding {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 33px;
  margin: 0 0 110px;
}

.gallery-item {
  aspect-ratio: 242 / 344;
}

.gallery-item.wx2 {
  grid-column: span 2;
  aspect-ratio: 516 / 344;
}

.gallery + .btn,
.gallery-main .btn.inner {
  width: 358px;
  max-width: calc(100% - 32px);
  min-height: 70px;
  margin: 8px auto 74px;
  padding: 0 18px;
  line-height: 1;
  white-space: nowrap;
}

@media screen and (max-width: 992px) {
  .gallery-main.offset-main {
    padding-top: 84px;
    overflow-x: hidden;
  }

  .gallery-main .wrapper.gallery {
    padding: 0 16px;
  }

  .gallery h2 {
    font-size: 56px;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 8px 0 20px;
  }

  .gallery-anchors {
    justify-content: center;
    gap: 14px;
    margin: 6px auto 20px;
    padding-bottom: 2px;
  }

  .gallery-anchors button {
    font-size: 18px;
    line-height: 1;
  }

  .gallery-interier,
  .gallery-party,
  .gallery-koop,
  .gallery-happy,
  .gallery-wedding {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 54px;
  }

  .gallery-item {
    aspect-ratio: 1 / 1.32;
  }

  .gallery-item.wx2 {
    grid-column: span 2;
    aspect-ratio: 2 / 1.2;
  }

  .gallery + .btn,
  .gallery-main .btn.inner {
    width: calc(100% - 32px);
    max-width: 360px;
    margin: 4px auto 56px;
    font-size: 16px;
    letter-spacing: 0.02em;
  }
}

@media screen and (max-width: 769px) {
  .gallery h2 {
    font-size: 52px;
    margin: 6px 0 16px;
  }

  .gallery-anchors button {
    font-size: 18px;
  }
}
