/* Make images flush inside table cells so feature-gallery grids show
 * the actual artwork edge-to-edge instead of a thin checker of margin. */
.rst-content table.docutils td > p,
.rst-content table.docutils th > p,
.wy-table-responsive table td > p,
.wy-table-responsive table th > p {
  margin: 0;
}

.rst-content table.docutils td img,
.rst-content table.docutils th img,
.wy-table-responsive table td img,
.wy-table-responsive table th img {
  display: block;
  margin: 0;
  padding: 0;
  max-width: 100%;
  height: auto;
}

.rst-content table.docutils td,
.rst-content table.docutils th,
.wy-table-responsive table td,
.wy-table-responsive table th {
  padding: 0;
  vertical-align: top;
}

/* Keep the header row (the labels above each image) slightly padded so the
 * text doesn't crash into the cell border. */
.rst-content table.docutils thead th,
.wy-table-responsive table thead th {
  padding: 4px 8px;
}
