@charset "utf-8";

@import "global.css";

/* Venture banner modal overrides */
#ventureBannerModal {
  background-color: transparent;
  padding: 0;
  touch-action: auto;
  pointer-events: auto; /* 오버레이 클릭으로 닫기 허용 */
}

#ventureBannerModal .modal-content {
  pointer-events: auto;
}

#ventureBannerModal .banner-modal {
  max-width: 360px;
  height: auto;
  margin: 8vh auto;
  padding: 0;
  background-color: transparent;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

@media only screen and (min-width: 1280px) {
  #ventureBannerModal .banner-modal {
    max-width: 560px; /* 데스크톱에서 조금 더 좁게 */
    margin: 20vh auto; /* 조금 더 아래 위치 */
    max-height: none;
    overflow: visible;
  }
}

#ventureBannerModal .modal-body {
  padding: 0 0 12px;
  border-radius: 16px;
  background-color: #ffffff;
}

#ventureBannerModal .banner-wrapper {
  position: relative;
  width: 100%;
  padding: 16px;
}

#ventureBannerModal .banner-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px); /* 기본(모바일)용 제한 */
  object-fit: contain;
}

@media only screen and (min-width: 1280px) {
  #ventureBannerModal .banner-wrapper img {
    max-height: 50vh; /* 데스크톱에서는 이미지 영역을 줄여 버튼까지 한 화면에 보이도록 */
  }
}

#ventureBannerModal .banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background-color: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media only screen and (min-width: 1280px) {
  #ventureBannerModal .banner-close {
    top: 14px;
    right: 14px;
  }
}

#ventureBannerModal .banner-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 4px;
  background-color: #ffffff;
}

@media only screen and (min-width: 1280px) {
  #ventureBannerModal .banner-actions {
    padding: 12px 0 6px;
  }
}

#ventureBannerModal .banner-actions button {
  padding: 0;
  border: none;
  background: none;
  color: #404040;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

#ventureBannerModal .banner-actions .banner-divider {
  color: #b0b0b0;
  font-size: 12px;
}

@media only screen and (min-width: 1280px) {
  #ventureBannerModal .banner-actions button,
  #ventureBannerModal .banner-actions .banner-divider {
    font-size: 13px;
  }
}
