/* ==================== 팝업 (모달) 스타일 ==================== */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 60px 0;
  box-sizing: border-box;
}

.popup-container {
  position: relative;
  display: block;
  background : var(--bg-gray-50);
  border-radius: 16px;
  max-width: 1200px;
  /* 컨테이너가 항상 보이도록 강제 */
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 36px;
  right: 36px;
  cursor: pointer;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  /* 강제 표시 */
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.popup-close:hover {
  background: var(--bg-gray-200);
}

.popup-content {
  display: block !important;
  background : var(--color-gray-100);
  padding: 72px 36px 100px;
  border-radius: 16px;
}

/* ==================== 업로드 팝업 (프로젝트/에셋/굿즈 3개 항목만 노출) ==================== */
/* 프로젝트/에셋/굿즈 상세 팝업과 달리 콘텐츠가 짧으므로 컨테이너 크기를 축소 */
.popup-container:has(.upload-select-container) {
  width: 90%;
  max-width: 360px;
  max-height: none;
}

/* 업로드 팝업만 화면 좌우/상하 정중앙에 고정 (다른 규칙과 무관하게 독립적으로 동작) */
.popup-container:has(.upload-select-container) {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%) scale(1) !important;
}

.popup-container:has(.upload-select-container) .popup-close {
  display: none;
}

.popup-container:has(.upload-select-container) .popup-content {
  background: var(--color-white);
  min-height: unset;
  padding: 24px;
}

.upload-select-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.upload-select-title {
  background: var(--color-gray-950);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 12px;
  color: var(--color-white);
  font-size: 16px;
  font-weight: var(--font-normal)
}

.upload-select-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  color: var(--color-gray-950);
  transition: background 0.2s;
}

.upload-select-item:hover {
  background: var(--bg-gray-100);
  font-weight: var(--font-bold);
}

.upload-select-item-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}