/* Additions for the Hugo port; style.css is the theme's original, unmodified. */
/* Stack sidebar under content below 800px (theme default breakpoint is 640px) */
@media screen and (max-width: 799px) {
  #primary, #secondary, .site-content, .widget-area { float: none !important; width: auto !important; }
  .site-content { border-right: none !important; padding-right: 0 !important; }
}
/* Video embeds converted from <object>/<embed> */
.video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 1em 0; }
.video iframe, .video video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
/* [caption] -> <figure> */
figure.wp-caption { margin: 0 0 1em; max-width: 100%; }
figure.wp-caption img { max-width: 100%; height: auto; }
figure.wp-caption figcaption { font-size: .85em; color: #757575; text-align: center; padding: .3em 0; }
figure.wp-caption.aligncenter { margin-left: auto; margin-right: auto; }
figure.wp-caption.alignleft { float: left; margin-right: 1.5em; }
figure.wp-caption.alignright { float: right; margin-left: 1.5em; }
/* [gallery] */
.wp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 1em 0; }
.wp-gallery img { width: 100%; height: 150px; object-fit: cover; }
/* Gutenberg block bits used in posts */
/* Subset of WordPress block-library CSS (wp-includes/css/dist/block-library/style.css) */
.wp-block-code { box-sizing: border-box; }
.wp-block-code code { display: block; font-family: inherit; overflow-wrap: break-word; white-space: pre-wrap; }
.wp-block-preformatted { box-sizing: border-box; white-space: pre-wrap; }
.wp-block-image img { box-sizing: border-box; height: auto; max-width: 100%; vertical-align: bottom; }
.wp-block-quote { box-sizing: border-box; overflow-wrap: break-word; }
blockquote.wp-block-quote { margin: 1em 0; padding-left: 1em; }
.entry-content img { max-width: 100%; height: auto; }
/* Search toggle form is hidden by theme JS on load in WP; hide its submit to match */
.search-top-bar #btn-search { display: none; }
.archive-date { color: #757575; font-size: .9em; }
