/* Shared editorial blocks; never target the internal controls of a tool widget. */
:root {
  --wp--preset--spacing--20: .44rem;
  --wp--preset--spacing--40: 1rem;
  --wp--preset--spacing--60: 2.25rem;
}
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.has-text-align-left { text-align: left; }
.has-large-font-size { font-size: 1.5rem; }
.has-x-large-font-size { font-size: clamp(1.75rem, 3.5vw, 2.3333rem); }
.entry-content > :is(h1, h2, h3, h4, h5, h6),
.entry-content > .wp-block-group > :is(h1, h2, h3, h4, h5, h6) { overflow-wrap: anywhere; }
.entry-content > .wp-block-heading { line-height: 1.3; }
.entry-content > .wp-block-heading:first-child { margin-top: 0; }
/* Restore the shared editorial spacing reset by this tool's WordPress Group block. */
main.image-tool-main > p.has-text-align-center.wp-block-paragraph { margin: 1em 0 1.6em; }
.entry-content :is(img, video, iframe, figure) { max-width: 100%; }
/* Preserve the Image block’s standard center alignment. */
.entry-content figure:not(.aligncenter) { margin-inline: 0; }
.entry-content .sketchfab-embed-wrapper { width: 100%; margin-inline: auto; }
.entry-content .sketchfab-embed-wrapper iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.entry-content .wp-block-embed__wrapper iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.entry-content > :is(pre, .wp-block-table) { max-width: 100%; overflow-x: auto; }
.entry-content .wp-block-details { margin-block: 1rem; }
.entry-content .wp-block-details > summary { min-height: 44px; cursor: pointer; }
.entry-content .wp-block-details > :not(summary) { margin-block: .75rem; }
.wp-block-columns { display: flex; gap: 2rem; align-items: normal; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-group.is-layout-flex, .wp-block-social-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.is-content-justification-center { justify-content: center; }
.is-content-justification-right { justify-content: flex-end; }
.wp-block-group.is-nowrap { flex-wrap: nowrap; }
.wp-block-image.is-style-rounded img { border-radius: 9999px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.wp-block-button__link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; text-decoration: none; }
.entry-content > :is(ul, ol), .entry-content .wp-block-details :is(ul, ol) { padding-inline-start: 1.5em; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--ast-global-color-0); outline-offset: 3px; }
body.koshishirai-hide-theme-page-title .entry-header > .entry-title { display: none; }
@media (max-width: 781px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap; }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100%; }
}
