/*
 * 1:1문의 첨부 사진 (FP-IQ-06·07 · FP-MQ-05) — 등록 화면과 내 문의 수정 팝업이 함께 쓴다.
 *
 * 내 리뷰 작성·수정의 사진 첨부(`page/inquiry.css` 의 `.review-photo`)와 같은 모양으로 맞춘다.
 * 목업 규칙은 리뷰 화면 안쪽(`.tabcont.opinion > .reivew-write-wrap`)에만 걸려 있어
 * 다른 화면에서는 하나도 닿지 않는다. 값은 그 규칙 그대로다(점선 100x100 상자 · 8px 간격 ·
 * 썸네일 우상단 22px 원형 삭제 버튼, 768px 이하 76px).
 *
 * 목업 1:1문의 첨부(`page/community.css` 의 `.inquiry-attach`·`.attach-add`·`.attach-preview`)는
 * 더 이상 쓰지 않는다 — 삭제가 글자 버튼이라 리뷰와 모양이 갈렸다. 목업 원본은 건드리지 않는다.
 */
.inquiry-photo-attach {
  width: 100%;
  margin-top: 8px;
}

.inquiry-photo-attach .photo-guide {
  margin-bottom: 8px;
  color: var(--color-text-gray);
}

.inquiry-photo-attach .photo-list {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.inquiry-photo-attach .photo-add {
  display: flex;
  width: 100px;
  height: 100px;
  box-sizing: border-box;
  flex: 0 0 100px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #ddd;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.inquiry-photo-attach .photo-add:disabled {
  cursor: default;
  opacity: 0.5;
}

.inquiry-photo-attach .photo-add .plus {
  display: block;
  margin-bottom: 6px;
  color: #999;
  font-size: 28px;
  line-height: 1;
}

.inquiry-photo-attach .photo-add .photo-count {
  color: #999;
  font-size: 12px;
}

.inquiry-photo-attach .photo-add .photo-count em {
  font-style: normal;
}

.inquiry-photo-attach .photo-preview {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.inquiry-photo-attach .photo-preview li {
  position: relative;
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  overflow: hidden;
  border-radius: 6px;
}

.inquiry-photo-attach .photo-preview li img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inquiry-photo-attach .photo-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 768px) {
  .inquiry-photo-attach .photo-add {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
  }

  .inquiry-photo-attach .photo-preview li {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
  }
}
