/* 기본값: PC에서 보여주기 */
.pc-block {
	display: block !important;
}
.mobile-block {
	display: none !important;
}

.modal-overlay {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 0.6s ease;
}
.modal-overlay .relative {
  position: relative;
  width: 100%;
  height: 100%;               /* ✅ 이 줄 추가 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content .hide-today-btn {
  position: absolute;
  top: -35px; /* 모달 내부에서 적절히 띄움 */
  right: 5px;
  background: rgba(255, 255, 255, 1);
  color: #000;
  border: none;
  font-size: 12px;
  cursor: pointer;
  z-index: 10;
  padding: 5px 10px;
  border-radius: 4px;
}


.hide-today-btn:hover{
	background:#f00;
	color:#fff;
}
.modal-overlay.active {
  top: 0;
}

.modal-content {
  background: white;
  padding: 30px 40px;
  border-radius: 10px;
  width: 100%;
  max-width: 700px;
  text-align: center;
  position: relative;
  animation: slideDown 0.6s ease;
  display: flex;
  flex-direction: row;
  gap: 50px;
  justify-content: center;      /* ✅ 가로축 중앙 정렬 */
  margin: auto;                 /* ✅ 수직, 수평 중앙 정렬 보조 */
}


.modal-content img{
	width:300px;
}
.modal-content h2{
	display:flex;
	flex-direction:column;
	margin-top:0;
	padding:0 40px 10px 10px;
	border-bottom: 1px solid #ccc;
}
.modal-content h2 span.title{
	margin-top:0;
}
.modal-content ul{
	text-align:left;
	font-weight:normal;
}
.modal-content ul.popup-notice-list {
    max-width: 350px; /* 또는 적절한 높이 */
}
.modal-content ul li{
	font-size:14px;
	margin-bottom:10px;
}
.popup-notice-list {
    list-style: disc;
	list-style-position:inside;
    padding-left: 0;
    margin: 0;
}

.popup-notice-list li {
    border-bottom: 1px solid #eee;
    font-size: 15px;
    padding: 8px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-notice-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
    text-decoration: none;
    overflow: hidden;
}

.popup-notice-list a:hover {
    color: #007bff;
}

.popup-notice-text {
    flex: 1;
	 min-width: 0; /* ✅ flex 아이템 줄바꿈 강제 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popup-notice-icon {
    flex-shrink: 0;
    margin-left: 8px;
    font-size: 15px;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.main-visual {
  width: auto;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.main-visual .swiper {
  width: 100%;
  height: 100%;
}
.slide-img-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.slide-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1); /* 초기 확대 상태 */
  transition: transform 3s ease;
}

.swiper-slide-active .slide-img-wrap img {
  transform: scale(1); /* 슬라이드 활성화 시 축소 */
}

.main-visual .swiper-slide {
	position:relative;
  width: 100%;
  height: 100%;
}

.main-visual .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-text-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 30px); /* 초기: 아래에서 */
  opacity: 0;
  transition: all 0.8s ease;
  width:auto !important;
  height:194px !important;
  z-index: 10;
}

.swiper-slide-active .slide-text-img {
  transform: translate(-50%, -50%);
  opacity: 1;
}


/* 모바일 전용 스타일 */
@media (max-width: 768px) {
	.pc-block {
		display: none !important;
	}
	.mobile-block {
		display: block !important;
	}
	.slide-text-img {
	  width:auto !important;
	  height:80px !important;
	  z-index: 10;
	}
    .modal-overlay {
	opacity: 0;
      display: flex;
      align-items: flex-start; /* ✅ 상단에서 시작 */
      justify-content: center;
      padding: 30px 20px;       /* ✅ 화면과의 여백 확보 */
      height: 100vh;
      box-sizing: border-box;
      visibility: hidden;
    }

	.modal-overlay.active {
	  top: 0px;
	  opacity: 1;
	  visibility: visible;
	  pointer-events: auto;
	}
	.modal-overlay .relative {
	  position: relative;
	  width: 100%;
	  max-width: 420px;
	}

	.modal-content .hide-today-btn {
	  position: absolute;
	  top: 0px; /* 모달 내부에서 적절히 띄움 */
	  left: 0px;
	  background: #fff;
	  color: #000;
	  border: none;
	  font-size: 12px;
	  width: 60%;
	  cursor: pointer;
	  z-index: 10;
	  padding: 5px 10px;
	  border-radius: 4px;
	  text-decoration: underline;
	}

    .modal-content {
	  background: white;
	  padding: 20px;
	  border-radius: 10px;
	  width: 90vh;
	  max-width: 420px;
	  max-height: calc(90vh - 200px);  /* ✅ 상하 여백 포함한 최대 높이 설정 */
	  overflow-y: auto;
	  overflow-x: hidden;
	  text-align: center;
	  display: block;
	  position: relative;
	  animation: slideDown 0.6s ease;
	  box-sizing: border-box;
    }

	.modal-content * {
		max-width: 100%;
		box-sizing: border-box;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
	.modal-content ul.popup-notice-list {
        max-width: 300px; /* 또는 적절한 높이 */
	}
	.modal-content ul li{
		font-size:13px;
		margin-bottom:10px;
	}
	.modal-image-wrap img {
	  width: 100%;
	  height: auto;
	  border-radius: 8px;
	}

	.modal-text-wrap h2 {
	  font-size: 16px;
	  margin: 10px 0;
	  border-bottom: 1px solid #ccc;
	  padding-bottom: 8px;
	}
	
	.modal-text-wrap{
		margin-top:30px;
	}
	
	.modal-text-wrap .popup-notice-list {
	  list-style: none;
	  padding: 0;
	  margin: 0;
	  max-height: 200px;
	  overflow-y: auto;
	  text-align: left;
	}

	.popup-notice-list li {
	  font-size: 14px;
	  margin-bottom: 10px;
	  overflow: hidden;
	  border-bottom: 1px solid #eee;
	}

	.popup-notice-list a {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  color: #333;
	  text-decoration: none;
	  overflow: hidden;
	  width: 100%;
	}

	.popup-notice-list a:hover {
	  color: #007bff;
	}

	.popup-notice-text {
	  flex: 1;
	  min-width: 0;
	  overflow: hidden;
	  text-overflow: ellipsis;
	  white-space: nowrap;
	}

	.popup-notice-icon {
	  flex-shrink: 0;
	  margin-left: 8px;
	  font-size: 14px;
	}

	.modal-close {
	  top: 8px;
	  right: 16px;
	  font-size: 30px;
	}

}