/* the site's own icons (app/icons.py); content.css is loaded by the site and by the control panel */
.ico { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.28em; flex: none; overflow: visible; }

/* Post body. Shared by the public article and the admin editor, so what you write is what visitors get. */
.content { font-size: 1.1rem; line-height: 2; overflow-wrap: break-word; }
.content::after { content: ""; display: block; clear: both; }
.content p { margin: 0 0 1rem; }
.content h2 { font-size: 1.45rem; margin: 1.6rem 0 .8rem; }
.content h3 { font-size: 1.2rem; margin: 1.3rem 0 .6rem; }
.content a { color: #1769c2; text-decoration: underline; }
.content blockquote { margin: 1rem 0; padding: .6rem 1.1rem; border-inline-start: 5px solid var(--red, #e10f14); background: rgb(127 127 127 / .1); border-radius: var(--radius, 3px); }
.content ul, .content ol { padding-inline-start: 1.6rem; }
.content hr { border: 0; border-top: 2px dashed rgb(127 127 127 / .4); margin: 1.5rem 0; clear: both; }
.content img { max-width: 100%; height: auto; border-radius: var(--radius, 3px); }

.content figure { margin: 0 0 1rem; }
.content figure img { width: 100%; }
.content figcaption { font-size: .82rem; line-height: 1.6; opacity: .7; text-align: center; padding-top: .3rem; }
.content figcaption:empty { display: none; }
.content .img-full { width: 100%; clear: both; }
.content .img-half { width: 50%; }
.content .img-third { width: 33%; }
.content .img-center { margin-inline: auto; clear: both; }
.content .img-right { float: right; margin: .3rem 0 .8rem 1.2rem; }
.content .img-left { float: left; margin: .3rem 1.2rem .8rem 0; }

.content .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .5rem; margin-bottom: 1rem; clear: both; }
.content .gallery figure { margin: 0; }
.content .gallery img { aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }

.content .video { aspect-ratio: 16 / 9; margin-bottom: 1rem; clear: both; }
.content .video iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius, 3px); }

.content .table-wrap { overflow-x: auto; margin-bottom: 1rem; clear: both; }
.content table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.6; }
.content th, .content td { border: 1px solid rgb(127 127 127 / .35); padding: .45rem .6rem; text-align: center; }
.content th { background: #0a1b4a; color: #fff; }
.content tbody tr:nth-child(even) td { background: rgb(127 127 127 / .08); }

@media (max-width: 600px) {
  .content { font-size: 1.04rem; }
  .content .img-half, .content .img-third { width: 100%; float: none; margin-inline: 0; }
  .content .gallery { grid-template-columns: repeat(2, 1fr); }
  .content .gallery > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
