body {
  background: #efefef;
  margin: 0;
}

.gallery-page {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.2rem);
  padding: clamp(2rem, 4vw, 3.6rem) 1rem clamp(3rem, 6vw, 5rem);
}

.gallery-block {
  margin: 0 auto;
  max-width: 1320px;
  width: 100%;
}

.gallery-row {
  align-items: center;
  display: grid;
  gap: clamp(1rem, 2vw, 2.2rem);
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
}

.gallery-slider {
  align-items: center;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  margin: 0 auto;
  width: 82%;
}

.gallery-nav {
  background: transparent;
  border: 0;
  color: #5f646a;
  cursor: pointer;
  font-size: 2.4rem;
  height: 56px;
  line-height: 1;
  width: 48px;
}

.gallery-slides {
  height: clamp(220px, 34vw, 480px);
  overflow: hidden;
  position: relative;
}

.gallery-slides img {
  height: 100%;
  left: 0;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 0.28s ease;
  width: 100%;
}

.gallery-slides img.is-active {
  opacity: 1;
}

.gallery-date {
  color: #050505;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 700;
  gap: 0.4rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

@media (max-width: 980px) {
  .gallery-row {
    grid-template-columns: 1fr;
  }

  .gallery-date {
    align-items: center;
    flex-direction: row;
    justify-content: center;
    text-align: center;
  }

  .gallery-slider {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }
}
