/* Базовые настройки */
html, body {
  height: 100%;
  margin: 0;
  background: #0f1724;
  font-family: Inter, system-ui, Segoe UI, Roboto, 'Helvetica Neue', Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden; /* Чтобы не было скролла */
}

/* Основной контейнер - галерея */
.gallery {
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius: 0;
  box-shadow: none;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Контейнер для просмотра слайдов */
.viewer {
  width: 90%;
  height: 90%;
  background: #111;
  border-radius: 10px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Лента слайдов */
.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(.22, .9, .2, 1);
}

/* Один слайд */
.slide {
  min-width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Картинка в слайде */
.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Кнопки управления */
.control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  cursor: pointer;
  backdrop-filter: blur(4px);

  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.control.left {
  left: 12px;
}

.control.right {
  right: 12px;
}

.control:active {
  transform: translateY(-50%) scale(0.96);
}

.control svg {
  width: 22px;
  height: 22px;
}

/* Счётчик */
.counter {
  position: absolute;
  left: 50%;
  bottom: 1%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  user-select: none;
}

/* Адаптив */
@media (max-width: 760px) {
  .viewer {
    width: 95%;
    height: 70vh;
  }
  .control {
    width: 40px;
    height: 40px;
  }
}
