/* ====================
    메인 슬라이더 CSS
==================== */
.slider_wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  /*height: 100vh;
  background-color: #f0f0f0;
  padding-bottom: 50px;*/
}

.main-slider {
  position: relative;
  width: 100%; /* 항상 가로 100% */
  height: 425px;
  overflow: hidden;
}

.main-slides {
  display: flex;
  position: absolute;
  top: 0;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.main-slide {
  flex: 0 0 70vw;  /* 기본: 중앙 슬라이드 70% */
  max-width: 900px;
  height: 100%;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 72px;
  font-weight: bold;
  color: #333;
  margin: 0 20px; /* 슬라이드 간격 */
  /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);*/
}
.main-slide img {
	width: 100%; /* 부모 .slide의 너비를 채우도록 설정 */
	height: 100%; /* 부모 .slide의 높이를 채우도록 설정 */
	object-fit: cover; /* 이미지가 비율을 유지하며 컨테이너를 채우도록 함 */
	border-radius: 50px; /* .slide에 적용된 둥근 모서리와 동일하게 설정 */
  }

.main-prev,
.main-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  z-index: 10;
}

.main-prev {
  left: 10px;
}

.main-next {
  right: 10px;
}

.main-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.main-dot {
  width: 12px;
  height: 12px;
  background-color: #bbb;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.main-dot.active {
  background-color: #333;
}

/* 반응형 */
@media (max-width: 768px) {
  .main-slide {
      flex: 0 0 85vw;
      max-width: none;
      font-size: 48px;
      border-radius: 30px;
  }

  .main-slider {
      height: 200px;
  }
}

@media (max-width: 480px) {
  .main-slide {
      flex: 0 0 90vw;
      font-size: 36px;
      border-radius: 20px;
  }

  .main-slider {
      height: 180px;
  }
}

/* ====================
  유튜브 갤러리 CSS
==================== */
/*.box_wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}*/

.box-content {
  width: 310px;
  background-color: #000;
  /*height: 350px;
  padding: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  opacity: 1;*/
  transition: opacity 0.6s ease;
  position: relative;
  overflow: hidden;
}

.box-image-container {
  position: relative;
  /*width: 100%;
  height: 200px;
  margin-top: 10px;*/
  height: 620px;
  background-color: #000;
}

.box-image-container>div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  /* 겹침 문제 해결: 기본적으로 클릭 이벤트를 비활성화 */
  z-index: 1;
  pointer-events: none;
}

.box-image-container>div.active {
  opacity: 1;
  /* 활성화된 요소만 클릭 가능하게 함 */
  z-index: 2; /* 활성화된 div를 맨 위로 올립니다. */
  pointer-events: auto; /* 마우스 이벤트를 다시 활성화합니다. */
}

.box-image-container>div iframe {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.box-text-container {
  position: relative;
  width: 100%;
  height: 60px;
  margin-top: 10px;
}

.box-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.box-text.active {
  opacity: 1;
}

.box-buttons {
  display: flex;
  flex-direction: row;
  justify-content: end;
  gap: 15px;
}
  @media (max-width: 1200px) {
    .box-buttons {flex-direction: column;}
  }

.box-buttons button {
  min-width: 230px;
  background-color: #f9c700;
  border: none;
  padding: 10px 5px;
  border-radius: 50rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.box-buttons button:hover {
  background-color: #e86b14;
}

.box-buttons .active {
  background-color: #bdb1d9 !important;
}

.box-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}

.box-arrow.left {
  left: 10px;
}

.box-arrow.right {
  right: 10px;
}

.box-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}