/* ============================================================================
   WordPress core classes — the parts of Underscores' stylesheet WordPress
   itself relies on (screen-reader text, alignments, captions, galleries,
   embeds), rewritten on the SmartRoots tokens.
   ========================================================================= */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  width: auto;
  left: 5px;
  top: 5px;
  z-index: 100000;
  padding: 15px 23px 14px;
  border-radius: var(--r-pill);
  background: var(--ink-900);
  color: var(--text-on-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}

#main:focus { outline: 0; }

.alignleft   { float: left;  margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright  { float: right; margin-left: 1.5em;  margin-bottom: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: 1.5em; }

.wp-caption { margin-bottom: 1.5em; max-width: 100%; }
.wp-caption img[class*="wp-image-"] { display: block; margin-left: auto; margin-right: auto; }
.wp-caption .wp-caption-text,
.wp-caption-text,
.wp-element-caption {
  margin: 0.6em 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
}

.gallery { margin-bottom: 1.5em; display: grid; gap: 1.5em; }
.gallery-item { display: inline-block; text-align: center; width: 100%; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-caption { display: block; }

.sticky, .bypostauthor { display: block; }
.custom-logo-link { display: inline-block; }
embed, iframe, object { max-width: 100%; }
.wp-smiley { display: inline; margin: 0; padding: 0; border: 0; }
