.popup-slider {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.popup-slider .slide {
  display: none;
  width: 100%;
  height: 100%;
}
.popup-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.popup-slider .slide.active {
  display: block;
  animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.popup-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease-in-out;
}

.popup-slider-track .slide {
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.popup-slider-track .slide img {
    position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 9 / 8; /* 비율 고정용 (선택) */
  display: block;
  border-radius: 10px 10px 0 0;
}
/* 하단 버튼 */
#popupBanner .popup-buttons {
  display: flex;
  border-top: 1px solid #ddd;
  font-size: 1rem;
}

#popupBanner .popup-buttons button {
  flex: 1;
  padding: 12px 0;
  background: #fff;
  border: none;
  font-weight: 500;
  cursor: pointer;
}

#popupBanner .popup-buttons button:first-child {
  border-right: 1px solid #eee;
  border-bottom-left-radius: 10px;
}

#popupBanner .popup-buttons button:last-child {
  border-bottom-right-radius: 10px;
}

.banner-slider-wrapper {
  width: 835px;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.banner-slider-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: max-content;
  height: 100%;
}

.banner-slide {
  min-width: 835px;
  height: 200px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 또는 contain, 필요시 조정 */
  display: block;
}


 .offcanvas-title {
        font-size: 14px !important;
    }
    .offcanvas-bottom {
        height: auto !important;
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
    }
    .offcanvas-body {
        overflow-x: scroll;
        flex-grow: inherit !important;
        display: flex;
        white-space: nowrap;
        padding-left: 0px !important;
        padding-right: 0px !important;
        padding-top: 0px !important;
        padding-bottom: 0px !important;
        scroll-snap-type: x mandatory; /* X축 스냅 활성화 */
        scroll-behavior: smooth;
    }
.banner-image {
    flex: 0 0 auto;
    width: 100%;
    height: 355px;
    background-size: contain;        /* 👈 이미지 전체 비율 유지하며 다 보이게 */
    background-repeat: no-repeat;    /* 반복 방지 */
    background-position: center;     /* 가운데 정렬 */
    position: relative;
    scroll-snap-align: center;
    cursor: pointer;
}
    .image-index {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: rgb(255, 253, 253);
        padding: 6px;
        border-radius: 10px;
        font-size: 14px;
    }



    #popupBackdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(31, 30, 30, 0.6);
  z-index: 9998;
}

#popupBanner {
  display: none;
  position: fixed;
  bottom: 35vh;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 454px;
  height: 392px;
  background: #fff;
  padding: 0;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 9999;
  box-sizing: border-box;
}

/* 슬라이더 내부 */
.popup-slider-wrapper {
  position: relative; 
  width: 100%;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  height: auto;
}

.popup-slider-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.popup-slider-track .slide {
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.popup-slider-track .slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 9 / 8;
  display: block;
  border-radius: 10px 10px 0 0;
}

/* 하단 버튼 */
#popupBanner .popup-buttons {
  display: flex;
  border-top: 1px solid #ddd;
  font-size: 1rem;
}

#popupBanner .popup-buttons button {
  flex: 1;
  padding: 12px 0;
  background: #fff;
  border: none;
  font-weight: 500;
  cursor: pointer;
}

#popupBanner .popup-buttons button:first-child {
  border-right: 1px solid #eee;
  border-bottom-left-radius: 10px;
}

#popupBanner .popup-buttons button:last-child {
  border-bottom-right-radius: 10px;
}

.popup-slider-wrapper {
  position: relative; /* ✅ 필수: 인디케이터 absolute 기준 */
  width: 100%;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  height: auto;
}

.popup-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.popup-indicators .dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
;
}

.popup-indicators .dot.active {
  background-color: rgba(255, 255, 255, 1);
}

.popup-indicators .dot,
.popup-indicators .dot:focus,
.popup-indicators .dot:active,
.popup-indicators .dot:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}



