.gallery {
  width: 100%;
  position: relative;
  margin-bottom: 15px;
}

.gallery-container {
  align-items: center;
  display: flex;
  height: 400px;
  margin: 0 auto;
  max-width: 1400px;
  position: relative;
}

.gallery-item {
  height: 246px;
  opacity: 0;
  position: absolute;
  transition: all 0.3s ease-in-out;
  width: 328px;
  z-index: 0;
  cursor: pointer;
}
.gallery-item-1,
.gallery-item-2,
.gallery-item-4,
.gallery-item-5 {
  -webkit-filter: grayscale(100%);
  filter: gray;
}
.gallery-item-1 {
  left: 15%;
  opacity: .4;
  transform: translateX(-50%);
  box-shadow: 
    inset 0 0 20px #000 /* 배경과 같은 색 */,
    inset 0 0 20px #000,
    inset 0 0 20px #000,
    inset 0 0 20px #000;
}

.gallery-item-1:after {
  position: absolute;
  display: block;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 
    inset 0 0 20px #000 /* 배경과 같은 색 */,
    inset 0 0 20px #000,
    inset 0 0 20px #000,
    inset 0 0 20px #000;
}

.gallery-item-2,
.gallery-item-4 {
  height: 300px;
  opacity: 1;
  width: 400px;
  z-index: 1;
}

.gallery-item-2 {
  left: 30%;
  transform: translateX(-50%);
}

.gallery-item-3 {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 0, 0, 0.45), 0 0 110px rgba(0, 0, 0, 0.25), 0 0 100px rgba(0, 0, 0, 0.1);
  height: auto;
  opacity: 1;
  left: 50%;
  transform: translateX(-50%);
  width: 495px;
  z-index: 2;
}

.gallery-item-4 {
  left: 70%;
  transform: translateX(-50%);
}

.gallery-item-5 {
  left: 85%;
  opacity: .4;
  transform: translateX(-50%);
}

.gallery-controls {
  display: flex;
  justify-content: center;
  /* margin: 30px 0; */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.gallery-controls button.gallery-controls-add {
  display: none;
}

.gallery-controls button {
  color: #fff;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  margin: 0 20px;
  padding: 0 12px;
  text-transform: capitalize;
}

.gallery-controls button:focus {
  outline: none;
}

.gallery-controls-previous {
  position: relative;
}

.gallery-controls-previous::before {
  /* border: solid #e0008c;
  border-width: 0 2px 2px 0;
  content: '';
  display: inline-block;
  height: 4px;
  left: -10px;
  padding: 2px;
  position: absolute;
  top: 0;
  transform: rotate(135deg) translateY(-50%);
  transition: left 0.15s ease-in-out;
  width: 30px; */
  content: '';
  background: url("/static/images/arrow-before.3163934ec9e7.png") center no-repeat;
  background-size:cover;
  width: 30px;
  height: 30px;
  position: absolute;
  right: -10px;
  top: 50%;
  left: -250px;
}

/* .gallery-controls-previous:hover::before {
  left: -18px;
} */

.gallery-controls-next {
  position: relative;
}

.gallery-controls-next::before {
  /* border: solid #e0008c;
  border-width: 0 2px 2px 0;
  content: '';
  display: inline-block;
  height: 4px;
  padding: 2px;
  position: absolute;
  right: -10px;
  top: 50%;
  transform: rotate(-45deg) translateY(-50%);
  transition: right 0.15s ease-in-out;
  width: 30px; */
  content: '';
  background: url("/static/images/arrow-after.f0e88926d4c7.png") center no-repeat;
  background-size:cover;
  width: 30px;
  height: 30px;
  position: absolute;
  right: -250px;
  top: 50%;
}

/* .gallery-controls-next:hover::before {
  right: -18px;
} */

.gallery-nav {
  bottom: -15px;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  position: absolute;
  width: 100%;
}

.gallery-nav li {
  background: #ccc;
  border-radius: 50%;
  height: 10px;
  margin: 0 16px;
  width: 10px;
}

.gallery-nav li.gallery-item-selected {
  background: #555;
}

.gallery-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.gallery-order .rec {
  height: 4px;
  width: 50px;
  background-color: #555;
}
.gallery-order .rec.active {
  background-color: #d30084;
}


@media all and (max-width: 1080px) {
  .gallery-item {
    height: 90px;
    width: 120px;
  }
  .gallery-item-2,
  .gallery-item-4 {
    height: 120px;
    width: 160px;
  }
  .gallery-item-3 {
    height: 180px;
    width: 240px;
  }
  .gallery-container {
    height: 300px;
  }
}

@media all and (max-width: 450px) {
  .gallery-item {
    height: 90px;
    width: 120px;
  }
  .gallery-item-2,
  .gallery-item-4 {
    height: 120px;
    width: 160px;
  }
  .gallery-item-3 {
    height: 150px;
    width: 200px;
    border: 1px solid #3d3d3d;
  }
  .gallery-container {
    height: 180px;
  }
  .gallery-controls-previous::before {
    left: -80px;
  }
  .gallery-controls-next::before {
    right: -80px;
  }
  .gallery-controls-next::before,.gallery-controls-previous::before {
    width: 12px;
    height: 12px;
  }
  .gallery-order .rec {
    width:20px;
    height: 1px;
  }
}
