*, *:before, *:after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

body {
  background: transparent;
}

.container {
  overflow: visible; /* чтобы внешняя тень не обрезалась */
  width: 100%;
}

.book-wrapper {
  position: relative;
  margin: 2% auto;
  user-select: none;
  overflow: visible;
  background-color: transparent;
  border-radius: 6px;
  transition: none !important;
}

/* Убираем все тени */
.book-shadow-strong,
.book-shadow-weak,
.book-inner-shadow {
  box-shadow: none !important;
}

/* Обложка */
.book-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  display: block;
  z-index: 0;
}

/* Страницы */
.pages-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pages {
  position: relative;
  width: 100%;
  height: 100%;
}

.pages [class^="page-num-"] {
  width: 100%; /* каждая страница занимает весь контейнер */
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  border-radius: 2px;
  overflow: visible;
  opacity: 1;
  transition: none !important;
  position: absolute;
  left: 0;
  top: 0;
  backface-visibility: hidden; /* чтобы текстура не пропадала */
}

/* Блик на странице */
.page-gloss::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 120px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 20;
}
.page-gloss.active::after {
  opacity: 1;
}

/* Убираем внутренние тени */
.book-inner-shadow::before {
    display: none;
}

/* Фоны страниц */
.page-num-1 { background-image: url("https://cdn.prod.website-files.com/6876a3da655d2921901118fb/693c812f35e3cd0a90806ed5_Portfolio_1_.jpg"); }
.page-num-2 { background-image: url("https://cdn.prod.website-files.com/6876a3da655d2921901118fb/6931fd9e3a12f3f36135c7a4_Portfolio_2.jpg"); }
.page-num-3 { background-image: url("https://cdn.prod.website-files.com/6876a3da655d2921901118fb/6931fd9e3a08c48706f6159f_Portfolio_3.jpg"); }
.page-num-4 { background-image: url("https://cdn.prod.website-files.com/6876a3da655d2921901118fb/6931fd9d90c12c68faab7e61_Portfolio_4.jpg"); }
.page-num-5 { background-image: url("https://cdn.prod.website-files.com/6876a3da655d2921901118fb/6945cb99968056542b1e661c_Portfolio_5.jpg"); }
.page-num-6 { background-image: url("https://cdn.prod.website-files.com/6876a3da655d2921901118fb/6931fda217b74106b024db7f_Portfolio_6.jpg"); }

/* Контент */
.pages-content {
  position: absolute;
  width: 100%;
  height: 100%;
  display: table;
  top: 0;
  left: 0;
  padding: 0;
  margin: 0;
}

.content-inner {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

/* Стили для активной и задней стороны страницы */
.pages [class^="page-num-"] {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: absolute;
}

.active-page {
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
