.port-photo { margin: 0; min-width: 0; background: var(--panel); }
.port-photo img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; background: #091629; }
.port-photo figcaption { display: grid; gap: 4px; padding: 12px 0; font-size: 13px; overflow-wrap: anywhere; }
.port-photo figcaption b { font-size: 15px; }
.port-photo.compact img { height: 180px; object-fit: contain; }
.port-photo.compact figcaption { font-size: 11px; }
.port-photo.compact figcaption b { font-size: 12px; }
.port-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.port-gallery .card { margin: 0; }
.port-era { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.port-era .chip { border-color: var(--accent); }
.port-history { margin-top: 12px; }
.port-history summary { padding: 10px 0; font-weight: 600; }
.vessel-portrait { margin: 0; display: grid; grid-template-columns: minmax(180px, 420px) minmax(0, 1fr); gap: 16px; align-items: center; }
.vessel-portrait img { width: 100%; height: 220px; object-fit: contain; background: #091629; }
.vessel-portrait figcaption { display: grid; gap: 8px; }
.vessel-thumb { display: block; width: 112px; height: 70px; object-fit: contain; background: #091629; margin-bottom: 5px; }
.vessel-photo-credit { display: block; max-width: 180px; font-size: 10px; line-height: 1.3; margin-top: 4px; }
@media (max-width: 600px) {
  .vessel-portrait { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .vessel-portrait img { height: 180px; }
  .port-photo img { max-height: 280px; }
  .vessel-thumb { width: 86px; height: 56px; }
  table.broker, table.broker tbody { display: block; }
  table.broker tr:first-child { display: none; }
  table.broker tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); margin: 12px 0; padding: 8px; gap: 4px 10px; }
  table.broker td { border: 0; white-space: normal; text-align: left; min-width: 0; }
  table.broker td:first-child { grid-column: 1 / -1; }
  table.broker td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); }
  table.broker .vessel-thumb { float: right; margin: 0 0 6px 10px; }
}
