/* gallery  */

.gallery {
  padding-top: 110px;
}

.gallery-img-flex {
  display: flex;
  gap: 16px;
  margin: 16px 0;

  img {
    width: calc((100% - 48px) / 4);
  }
}

.gallery-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-img {
  width: 100%;
  border-radius: 18px;
  height: 206px;
  background-image: url(../img/gallery.png);
  background-size: cover;
}

.gallery-video {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;

  video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
  }
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.play-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

@media screen and (min-width: 768px) {
  .gallery-img {
    height: 406px;
  }
}

@media screen and (min-width: 1436px) {
  .gallery {
    padding-top: 160px;

    .title {
      font-size: 100px;
    }
  }

  .gallery-flex {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 20px;
  }

  .gallery-img-flex {
    width: 476px;
    flex-shrink: 0;
    gap: 20px;
    margin: 0;
  }

  .gallery-media {
    flex-direction: row;
  }

  .gallery-video {
    width: 832px;
    flex-shrink: 0;
    margin: 0;
  }

  .gallery-img {
    height: 468px;
  }
}

/* gallery list  */

.gallery-list {
  display: flex;
  flex-direction: column;
  gap: 8px;

  li {
    border-radius: 24px;
    background-color: #fff;
    padding: 32px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  h4 {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;
    text-transform: uppercase;
    text-align: center;
    color: #1c1718;
    margin-bottom: 24px;
    transition: color 0.3s ease;
  }

  img {
    width: 100%;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #1c1718;
    margin-top: 24px;
    transition: color 0.3s ease;
  }

  li:hover,
  li:focus {
    background-color: #7435d9;

    h4,
    p {
      color: #fff;
    }
  }
}

@media screen and (min-width: 768px) {
  .gallery-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 8px) / 2);
    }
  }
}

@media screen and (min-width: 1436px) {
  .gallery-list {
    li {
      width: calc((100% - 24px) / 4);
    }
  }
}

/* gallery swiper  */

.gallery-description {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 40px;

  li {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    text-transform: lowercase;
    color: #d9d9d9;
  }
}

.gallery-swiper {
  position: relative;
}

.gallery-item {
  border-radius: 24px;
  overflow: hidden;
  position: relative;

  img {
    width: 100%;
  }

  p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(135, 135, 135, 0.5) 0%,
      /* #878787 с прозрачностью 50% */ rgba(116, 53, 217, 0.5) 100%
        /* #7435d9 с прозрачностью 50% */
    );
    padding: 20px;
    backdrop-filter: blur(2px);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
  }
}

.gallery-next {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 50%;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.gallery-next:hover,
.gallery-next:focus {
  opacity: 1;
}

@media screen and (min-width: 768px) {
  .gallery-item {
    p {
      padding: 30px;
    }
  }
}

@media screen and (min-width: 1436px) {
  .slider-container {
    display: flex;
    gap: 48px;
  }

  .gallery-swiper {
    width: 683px;
    flex-shrink: 0;
    margin: 0;
  }

  .gallery-description {
    li {
      font-size: 18px;
    }
  }
}

/* duo  */

.duo-img {
  width: 100%;
  margin-top: 44px;
}

@media screen and (min-width: 1436px) {
  .duo-container {
    display: flex;
    gap: 100px;
    flex-direction: row-reverse;
  }

  .duo-img {
    width: auto;
    flex-shrink: 0;
    margin: 0;
  }
}

/* book  */

.book-img {
  width: 100%;
  margin-top: 28px;
}

@media screen and (min-width: 1436px) {
  .book-container {
    display: flex;
    gap: 40px;
  }

  .book-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateY(0);
}

.click {
  background-image: url(../img/minus.png);
  transform: rotate(180deg);
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

.overflow {
  overflow: hidden;
}
