/* Author: Oames.Zhao - Responsive photo feedback card shared by Web and H5. */
.marketing-photo-card { overflow: hidden; padding: 0; border-top: 4px solid #bf2f34; }
.photo-upload-form { padding: 14px 16px; display: grid; grid-template-columns: minmax(175px, 1.15fr) repeat(3, minmax(145px, .8fr)) auto; gap: 10px; align-items: end; background: linear-gradient(120deg, #fff6f3 0%, #fff 72%); border-bottom: 1px solid var(--line); }
.photo-upload-title { align-self: center; display: grid; gap: 3px; }
.photo-upload-title strong, .photo-readonly-note strong, .photo-wall-head strong { font-size: 14px; }
.photo-upload-title span, .photo-readonly-note span, .photo-wall-head span { color: var(--ink-500); font-size: 10px; }
.photo-upload-form label { min-width: 0; display: grid; gap: 4px; }
.photo-upload-form label > span { color: var(--ink-500); font-size: 9px; font-weight: 800; }
.photo-upload-form select, .photo-upload-form input { width: 100%; min-width: 0; min-height: 36px; padding: 0 9px; color: var(--ink-800); font: inherit; font-size: 10px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.photo-upload-form input[type="file"] { padding: 7px; }
.photo-upload-form .btn { min-height: 36px; white-space: nowrap; }
.photo-readonly-note { padding: 13px 16px; display: flex; align-items: center; gap: 10px; background: #fff8f5; border-bottom: 1px solid var(--line); }
.photo-wall-head { padding: 12px 16px 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.photo-wall-head > div { display: flex; align-items: baseline; gap: 8px; }
.photo-wall-head > small { color: var(--ink-500); font-size: 9px; }
.marketing-photo-wall { padding: 0 16px 14px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.marketing-photo-item { min-width: 0; margin: 0; overflow: hidden; background: #fffaf7; border: 1px solid var(--line); border-radius: 10px; }
.marketing-photo-thumb { height: 100px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 25% 20%, #fff 0%, #f2e8df 100%); }
.marketing-photo-thumb img { width: 100%; height: 100%; padding: 6px; object-fit: contain; object-position: center; }
.marketing-photo-item figcaption { padding: 8px; display: grid; gap: 4px; }
.marketing-photo-item figcaption > div { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.marketing-photo-item figcaption span { padding: 2px 5px; color: #a5262b; font-size: 8px; font-weight: 800; background: #fde7e3; border-radius: 999px; }
.marketing-photo-item time, .marketing-photo-item small { color: var(--ink-500); font-size: 8px; }
.marketing-photo-item strong { overflow: hidden; color: var(--ink-900); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.photo-wall-empty { grid-column: 1 / -1; padding: 34px; color: var(--ink-500); text-align: center; background: #faf7f5; border-radius: 10px; }
.photo-pagination { padding: 9px 16px 12px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.photo-pagination button { min-height: 30px; padding: 0 10px; color: var(--ink-700); background: white; border: 1px solid var(--line); border-radius: 7px; }
.photo-pagination button:disabled { opacity: .4; }
.photo-pagination span { color: var(--ink-500); font-size: 9px; }

@media (max-width: 980px) {
  .photo-upload-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-upload-title { grid-column: 1 / -1; }
  .marketing-photo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.h5-body .photo-upload-form { padding: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.h5-body .photo-upload-title { grid-column: 1 / -1; }
.h5-body .photo-file-control { grid-column: 1 / -1; }
.h5-body .photo-upload-form .btn { grid-column: 1 / -1; scroll-margin-bottom: 84px; }
.h5-body .marketing-photo-wall { padding: 0 12px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.h5-body .marketing-photo-thumb { height: 112px; }
.h5-body .photo-wall-head { padding: 11px 12px 8px; align-items: flex-start; }
.h5-body .photo-wall-head > div { display: grid; gap: 2px; }
.h5-body .photo-pagination { padding: 8px 12px 11px; }
