/* Complete artwork, with one shared administrative language for both sections. */
.communications-section { background:#fff; border-top:1px solid var(--line); }
.communications-heading { margin-bottom:34px; }
.communications-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:36px 24px; align-items:start; }
.communication-card { min-width:0; }
.communication-card[data-orientation="landscape"] { grid-column:span 2; }
.communication-artwork { position:relative; display:grid; grid-template-rows:minmax(0,1fr) auto; align-items:center; gap:12px; width:100%; height:clamp(310px,25vw,370px); padding:14px; overflow:hidden; border:1px solid #d9e6ee; border-radius:14px; background:#f4f8fb; cursor:zoom-in; box-shadow:0 3px 12px #173d5b05; transition:border-color .2s,box-shadow .2s,background .2s; }
.communication-artwork img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; filter:drop-shadow(0 2px 5px #0b294518); }
.communication-artwork:hover { border-color:#9ebdd2; background:#edf5fa; box-shadow:0 5px 20px #173d5b0d; }
.communication-artwork:focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
.communication-enlarge { display:inline-flex; align-items:center; justify-self:end; gap:8px; padding:2px 2px 0; color:var(--navy); font-size:11px; font-weight:600; letter-spacing:.01em; line-height:20px; }
.communication-enlarge svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.communication-copy { padding:22px 3px 0; }
.communication-meta { display:flex; gap:6px; margin:0 0 12px; color:var(--muted); font-size:11px; letter-spacing:.02em; }
.communication-copy h3 { margin:0 0 12px; color:var(--ink); font-size:clamp(19px,1.5vw,21px); line-height:1.3; letter-spacing:-.025em; overflow-wrap:anywhere; }
.communication-caption { margin:0; color:var(--muted); font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.communication-remove { margin-top:12px; font-size:12px; }
.communications-empty { padding:36px 24px; border:1px solid var(--line); border-radius:16px; background:var(--ice); color:var(--muted); text-align:center; font-size:14px; }
.communications-view-dialog { width:min(1100px,calc(100% - 32px)); padding:26px; }
.communications-view-dialog[data-orientation="portrait"] { width:min(720px,calc(100% - 32px)); }
.communications-view-dialog .community-dialog-header > div { min-width:0; }
.communications-view-dialog .community-dialog-header h2 { max-width:850px; overflow-wrap:anywhere; font-size:22px; }
.communications-view-artwork { display:flex; justify-content:center; padding:16px; border-radius:12px; background:#f1f5f8; }
.communications-view-artwork img { display:block; max-width:100%; width:auto; height:auto; max-height:72dvh; object-fit:contain; }
.communications-view-footer { display:flex; justify-content:space-between; align-items:start; gap:24px; padding-top:16px; }
.communications-view-footer p { margin:0; min-width:0; max-width:740px; color:var(--muted); font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.communications-view-footer a { flex-shrink:0; }
.communications-upload-preview { display:block; width:100%; max-height:290px; margin:18px 0 0; padding:12px; object-fit:contain; border:1px solid var(--line); border-radius:12px; background:#f1f5f8; }
.communications-delete-title { font-size:16px; line-height:1.5; font-weight:600; overflow-wrap:anywhere; }
@media(max-width:1100px) {
  .communications-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px 22px; }
  .communication-artwork { height:auto; aspect-ratio:4/5; }
  .communication-card[data-orientation="landscape"] .communication-artwork { aspect-ratio:16/10; }
}
/* A pair fills one balanced row, including when both pieces share a format. */
@media(min-width:768px) {
  .communications-grid[data-count="2"] { display:flex; }
  .communications-grid[data-count="2"] > .communication-card { flex:1 1 0; }
  .communications-grid[data-count="2"] > .communication-card[data-orientation="landscape"] { flex:2 1 0; }
  .communications-grid[data-count="2"] .communication-artwork { height:clamp(340px,32vw,460px); aspect-ratio:auto; }
}
@media(max-width:767px) {
  .communications-grid[data-count="2"] { grid-template-columns:minmax(0,1fr); }
  .communications-grid[data-count="2"] > .communication-card { grid-column:auto; }
}
@media(max-width:600px) {
  .communications-grid { grid-template-columns:minmax(0,1fr); gap:36px; }
  .communication-card[data-orientation="landscape"] { grid-column:auto; }
  .communication-artwork { padding:12px; }
  .communication-copy { padding-top:18px; }
  .communications-view-dialog { padding:20px; }
  .communications-view-dialog .community-dialog-header h2 { font-size:19px; }
  .communications-view-artwork { padding:8px; }
  .communications-view-footer { flex-direction:column; gap:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .communication-artwork { transition:none; }
}
