/* Optional photo submissions share the field guide's existing form scale. */
.photo-panel { margin-top: 30px; padding: 24px; border: 1px solid #534460; background: #241e2e; }
.photo-panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.photo-panel h3 { font: 700 20px/1.6 var(--sans); margin: 0; }
.photo-panel > p { font-size: 15px; line-height: 1.85; color: #c9bad5; margin-bottom: 20px; }
.photo-count { color: var(--mint); font: 700 14px/1.6 var(--sans); white-space: nowrap; padding: 5px 10px; border: 1px solid #5c704d; background: #293124; }
.photo-label { display: block; font-size: 15px; color: #ede3f3; margin: 20px 0 9px; }
.photo-label > span { margin-left: 8px; color: #b59cc7; font-size: 12px; }
.photo-panel input[type=text] { width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; background: #15111c; border: 1px solid #655071; border-radius: 2px; color: #f2eafa; font: 16px/1.6 var(--sans); }
.photo-panel input[type=text]::placeholder { color: #a491b3; }
.photo-panel .photo-help { font-size: 12px; line-height: 1.85; color: #baa7c8; margin: 10px 0 18px; }
.photo-pickers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.photo-pickers > button { flex: 1 1 160px; }
.photo-file-input { display: none; }
.photo-panel .photo-limit { color: #e5d7aa; padding: 14px; border: 1px solid #6a5c3a; background: #332d23; font-size: 14px; }
.photo-status-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.photo-status { font-size: 14px; line-height: 1.8; margin: 9px 0; color: var(--mint); overflow-wrap: anywhere; }
.photo-status.is-error { color: #ffc1d1; }
.photo-status-row > button { flex-shrink: 0; font-size: 14px; }
.photo-empty { padding: 24px 16px; text-align: center; color: #b39ac3; border: 1px dashed #594366; font-size: 14px; }
.photo-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photo-item { min-width: 0; display: flex; flex-direction: column; background: #19151f; border: 1px solid #51415d; }
.photo-preview-button { display: block; position: relative; width: 100%; min-height: 140px; aspect-ratio: 4/3; padding: 0; background: #120e19; overflow: hidden; color: #b9a5c9; }
.photo-preview-button img { display: block; width: 100%; height: 100%; object-fit: cover; font-size: 12px; line-height: 1.8; }
.photo-preview-button > span { position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 8px; background: #120e19d9; text-align: center; font-size: 12px; }
.photo-preview-button:not(.is-ready) { padding: 12px; }
.photo-item-copy { display: flex; flex-direction: column; gap: 5px; padding: 14px 14px 0; flex: 1; overflow-wrap: anywhere; }
.photo-item-copy strong { font-size: 15px; color: #e5d7ef; }
.photo-item-copy > span { font-size: 14px; color: #c4b2d0; }
.photo-item-copy small { font-size: 12px; color: #b5a1c3; line-height: 1.8; }
.photo-item .photo-delete { width: calc(100% - 28px); margin: 8px 14px 5px; text-align: left; color: #e7aaba; }
.photo-panel .photo-storage-note { padding-top: 18px; border-top: 1px solid #46354f; margin: 22px 0 0; }
.photo-pending { margin-top: 22px; padding: 16px; border: 1px solid #79618a; background: #1b1623; }
.photo-pending > img { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #120e19; }
.photo-pending-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.photo-pending progress { display: block; width: 100%; height: 12px; margin-top: 18px; accent-color: var(--mint); }
.photo-viewer { width: min(1000px, calc(100% - 32px)); padding: 24px; background: #1d1726; }
.photo-viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.photo-viewer-head h2 { font: 700 22px/1.6 var(--sans); margin: 0; }
.photo-viewer-status { font-size: 14px; color: #c8b5d6; line-height: 1.8; }
.photo-viewer > img { display: block; width: 100%; max-height: 65dvh; object-fit: contain; background: #100c16; }
.photo-viewer > img:not([src]) { display: none; }
.photo-viewer > a { margin-top: 20px; }
@media (max-width: 980px) { .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .photo-panel { padding: 22px 16px; }
  .photo-gallery { grid-template-columns: minmax(0, 1fr); }
  .photo-preview-button { min-height: 180px; }
  .photo-pickers { gap: 10px; }
  .photo-pickers > button { flex-basis: 120px; padding-inline: 10px; }
  .photo-status-row { gap: 8px; }
  .photo-status-row > button { min-width: 68px; }
  .photo-pending { padding: 12px; }
  .photo-pending-actions > .button { width: 100%; }
  .photo-pending-actions > .text-button { width: 100%; text-align: center; }
  .photo-viewer { width: calc(100% - 20px); padding: 20px 16px; }
  .photo-viewer-head h2 { font-size: 20px; }
}

/* 학년/반/이름 입력 필드 스타일 */
.photo-info-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
  margin-bottom: 16px;
}

.photo-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #c4bace;
}

.photo-field select,
.photo-field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #51465e;
  border-radius: 8px;
  background: #1e1a28;
  color: #f4f0f7;
}

.photo-field select:focus,
.photo-field input[type="text"]:focus {
  outline: 2px solid #c4efa5;
  outline-offset: 2px;
}

.photo-field select:disabled,
.photo-field input[type="text"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .photo-info-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
