body {
  overflow-x: hidden;
}
.items {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
}

.items .item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 10%;
  overflow: hidden;
  transition: all 0.8s ease-in-out;
  z-index: -1;
  opacity: 0;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.item img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.item.active {
  opacity: 1;
  z-index: 99;
  box-shadow: 0px 0px 105px -35px rgba(0, 0, 0, 0.75);
}

.item.prev {
  z-index: 2;
  opacity: 0.2;
  transform: translate(-155%, -70%);
}

.item.next {
  z-index: 2;
  opacity: 0.2;
  transform: translate(55%, -70%);
}

.items .button-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 1px;
  z-index: 100;
}

.button-container .button {
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  position: relative;
  opacity: 0.75;
  transition: all 300ms ease-in-out;
}

.button-container .button:hover {
  opacity: 1;
}

.button-container .button:before {
  /*-------------------buton----------------------*/
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: #faaf04;
  border-radius: 50%;
  z-index: -99;
}
.button-container .button:nth-child(1)::before {
  content: "❮";
}

.button-container .button:nth-child(1) {
  float: left;
  text-align: center;
}

.button-container .button:nth-child(2) {
  float: right;
  text-align: center;
}
.button-container .button:nth-child(2)::before {
  content: "❯";
  margin: 0 auto;
}

@media only screen and (max-width: 768px) and (orientation: portrait) {
  .items {
    margin-top: 70px;
    max-width: 100%;
  }

  .items .item {
    width: 350px;
    height: 60vh;
    border-radius: 30px;
    opacity: 0;
  }
  .item.active {
    opacity: 1;
    z-index: 99;
    box-shadow: 0px 0px 105px -35px rgba(0, 0, 0, 0.75);
  }

  .item.prev {
    z-index: 2;
    opacity: 0.2;
    transform: translate(-50%, -50%);
  }

  .item.next {
    z-index: 2;
    opacity: 0.2;
    transform: translate(-50%, -50%);
  }
  .items .button-container {
    width: 310px;
  }
  .button-container .button {
    width: 1px;
    height: 1px;
  }
}
@media only screen and (max-width: 900px) and (orientation: landscape) {
  .items {
    /* margin-top: 70px; */
    margin-top: 35px;
    max-width: 90%;
  }

  .items .item {
    /* width: 750px; */
    width: 710px;
    /* height: 220px; */
    /* height: 285px; */
    height: 75vh;
    border-radius: 30px;
    opacity: 0;
  }
  .item.active {
    opacity: 1;
    z-index: 99;
    box-shadow: 0px 0px 105px -35px rgba(0, 0, 0, 0.75);
  }

  .item.prev {
    z-index: 2;
    opacity: 0.2;
    transform: translate(-50%, -50%);
  }

  .item.next {
    z-index: 2;
    opacity: 0.2;
    transform: translate(-50%, -50%);
  }
  .items .button-container {
    width: 600px;
  }
  .button-container .button {
    width: 1px;
    height: 1px;
  }
}
@media only screen and (min-width: 632px) and (max-width: 1280px) and (orientation: portrait) {
  .items {
    margin-top: 70px;
    max-width: 100%;
  }

  .items .item {
    width: 650px;
    height: 80vh;
    border-radius: 30px;
    opacity: 0;
  }
  .item.active {
    opacity: 1;
    z-index: 99;
    box-shadow: 0px 0px 105px -35px rgba(0, 0, 0, 0.75);
  }

  .item.prev {
    z-index: 2;
    opacity: 0.2;
    transform: translate(-50%, -50%);
  }

  .item.next {
    z-index: 2;
    opacity: 0.2;
    transform: translate(-50%, -50%);
  }
  .items .button-container {
    width: 550px;
  }
  .button-container .button {
    width: 1px;
    height: 1px;
  }
}
/* @media only screen and (min-width: 1200px) and (max-width: 1280px) and (orientation: landscape) {
  .section2 {
    height: 820px;
  }
  .items {
    top: 60%;
  }
  .item.prev {
    transform: translate(-101%, -60%);
  }
  .item.next {
    transform: translate(1%, -60%);
  }

} */

@media only screen and (min-width: 901px) and (max-width: 1400px) {
  .section2 {
    height: 1020px;
  }
  .items {
    top: 55%;
  }
  .items .item {
    width: 800px;
    height: 800px;
  }
  .item.prev {
    transform: translate(-50%, -50%);
  }
  .item.next {
    transform: translate(-50%, -50%);
  }
}
@media only screen and (min-width: 1401px) and (max-width: 1700px) {
  .section2 {
    height: 820px;
  }
  .items {
    top: 60%;
  }
  .item.prev {
    transform: translate(-110%, -60%);
  }
  .item.next {
    transform: translate(5%, -60%);
  }
}
@media only screen and (min-width: 1701px) and (max-width: 1920px) {
  .section2 {
    height: 820px;
  }
  .items {
    top: 60%;
  }
  .item.prev {
    transform: translate(-125%, -60%);
  }
  .item.next {
    transform: translate(30%, -60%);
  }
}
