.gallery {
  padding-top: 120px;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}
.gallery .swiper-wrapper {
  display: flex;
  align-items: center;
  cursor: grab;
}


.gallery .swiper-wrapper .swiper-slide {
  display: flex;
  padding: 30px 20px;
  width: 120px;
  height: 450px;
  background: #fff;
  flex-direction: column;
  justify-content: flex-start;
  font-weight: bold;
  border-radius: 15px;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: scale(0.7);
  opacity: 0.8;
  cursor: grab;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
  opacity 0.6s ease;
  will-change: transform;
}


.gallery .swiper-wrapper .swiper-slide-active {
  transform: translateY(-20%)!important;
  opacity: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: grabbing;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
  box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}


.gallery .swiper-slide img {
  width: 100%;
  height: 250px;
  object-fit: contain; 
  background: #fff;
  border-radius: 15px;
  margin-bottom: 10px;
}


.gallery .swiper-slide .text {
  font-family: "MICEGothicBold";
  font-weight: Bold;
  color: #000;
  text-align: center;
  font-size: 2.4rem;
}


.gallery .swiper-slide p {
  font-family: "MICEGothic";
  font-weight: normal;
  margin-bottom: 20px;
  text-align: center;
  color: #111;
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 19.321px!important;
  height: 28.103px!important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
}

/* 커스텀 이미지 적용 */
.swiper-button-prev {
  background-image: url(../img/equ_arrow_left.png);
  left: calc(50% - 240px)!important; 
}

.swiper-button-next {
  background-image: url(../img/equ_arrow_right.png);
  right: calc(50% - 240px)!important; 
}
.swiper-button-prev,
.swiper-button-next {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* 기본 Swiper 아이콘 제거 */
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
  content: none;
}
@media (max-width: 600px) {
  .gallery .swiper-button-prev {
    display: none;
  }

  .gallery .swiper-button-next {
     display: none;
  }
}
@media (min-width:0px) and (max-width:768px){
.gallery .swiper-wrapper .swiper-slide {
  height: 350px;
}
  .gallery .swiper-slide .text {
    font-size: 4vw;
  }
.gallery .swiper-slide p {
    font-size: 3vw;
  }
  .swiper-button-prev {
  left: calc(50% - 20px)!important; 
}

.swiper-button-next {
  right: calc(50% - 20px)!important; 
}
}
@media (min-width:0px) and (max-width:900px){
.gallery .swiper-wrapper .swiper-slide {
  height: 380px;
}
  .gallery .swiper-slide .text {
    font-size: 2rem;
  }
  .gallery .swiper-slide p {
    font-size: 1.7rem;
  }
}
@media (min-width:0px) and (max-width:1080px){
.swiper-button-prev {
  background-image: url(../img/equ_arrow_left.png);
  left: calc(50% - 20vw)!important; 
}

.swiper-button-next {
  background-image: url(../img/equ_arrow_right.png);
  right: calc(50% - 20vw)!important; 
}
}
@media (min-width: 1800px) and (max-width: 3000px) {
  .gallery .swiper-slide img {
    width: 100%;
    height: 300px;
    margin-bottom: 0;
  }
  .gallery .swiper-slide .text {
    font-size: 2.4rem;
  }
  .gallery .swiper-slide p {
    font-size: 2rem;
  }
} 
