body{
  overflow-x: hidden;
}
/* 내용물 */


#main{
  width: 100%;
  height: 100%;
  position: absolute;
  }
#main img{
  width: 100%;
  height: 100%;
    object-fit: cover;
}




/* 모바일 */



/*carousel*/

:root {
  --color1: floralwhite;
  --color2: rgb(12, 12, 12);
  --color3: #FF0909;
}

.container {
  position: relative;
  width: 100%;
  height: 40vh;
  min-width: 360px;
  min-height: 480px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.slider {
  position: relative;
  /* margin: auto; */
  /* border: 2px solid transparent; */
  /* border-radius: 10px; */
  overflow: hidden;
  /* background-color: var(--color2); */
  opacity: 1;
  /* -webkit-animation: fadeIn 2000ms ease-in-out 1500ms forwards;
          animation: fadeIn 2000ms ease-in-out 1500ms forwards; */
}


/* 타이틀 */
.carousel{
  margin-top: 10vh;
}
.carousel-title {
  text-align: center;
  font-size: 32px;
  margin: 40px 0 20px;
}

/* 상단 탭 */
.carousel-tabs {
  display: flex;
  width: 100vw;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.carousel-tabs button{
  display: flex;
}
.carousel-tab {
  border: none;
  background: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
  transition: background .2s, color .2s, box-shadow .2s;
}

.carousel-tab.is-active {
  background: #111;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* 뷰포트 */
.carousel{
  width: 100vw;
}
.carousel-viewport {
  margin-top: 1vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  /* height: 420px; */
  height: 60vh;

}

/* 트랙: 슬라이드가 가로로 나열되는 공간 */
.carousel-track {
  display: flex;
  gap: 20px;
  height: 100%;
  /* transition은 JS에서 제어할 거라 여기선 X */
}

/* 슬라이드 하나 */
.carousel-slide {
  flex: 0 0 70%;          /* 카드 너비(원하면 60~80%로 조절 가능) */
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  /* background-image: var(--bg); */
  background-size: cover;
  background-position: center;
  position: relative;
  /* box-shadow: 0 10px 30px rgba(0,0,0,0.25); */
}

/* 슬라이드 안 텍스트 */
.slide-content {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.slide-content h2 {
  font-size: 28px;
  margin: 0 0 6px;
}

.slide-content p {
  margin: 0;
  font-size: 15px;
}

/* 좌우 버튼 */
.carousel-arrows {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  font-size: 24px;
  line-height: 24px;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;

}


.arrow-btn:active {
  transform: translateY(1px) scale(0.96);
}
.arrow-btn span{
  /* transform: translateY(-2px); */

}
#slide0{
  background-image: url(/image/update/main/demo1.webp);
  /* background-color: pink; */
}
#slide1{
  background-image: url(/image/update/main/demo7.webp);
  /* background-color:skyblue; */
}
#slide2{
  background-image: url(/image/update/main/demo8.webp);
  /* background-color:yellowgreen; */
}
#slide3{
  background-image: url(/image/update/main/demo8.webp);
  /* background-color:orchid; */
}
#slide4{
  background-image: url(/image/update/main/demo5.webp);
  /* background-color:maroon; */
}
#slide5{
  background-image: url(/image/update/main/demo6.webp);
  /* background-color:wheat; */
}


