/* The same native panel blocks are styled in the reader and the editor. */
.story-body.if-comic-reader { max-width: 1120px; }
.if-comic-reader .story-title,
.if-comic-reader .if-story-description,
.if-comic-reader .if-story-cover,
.if-comic-reader .if-contents { max-width: 620px; margin-left: auto; margin-right: auto; }
.if-comic-reader .if-story-content > :not(.if-comic-page):not(.if-comic-panels):not(.is-style-if-comic-panels):not(.if-comic-panel):not(.is-style-if-comic-panel) { max-width: 620px; margin-left: auto; margin-right: auto; }
.if-comic-page { width: 100%; margin: 24px auto; }
.if-comic-page.if-comic-single { max-width: 620px; }
.if-comic-page.if-comic-wide { max-width: 1120px; }
.if-story-content .wp-block-gallery.if-comic-panels,
.if-story-content .wp-block-gallery.is-style-if-comic-panels,
.editor-styles-wrapper .wp-block-gallery.if-comic-panels,
.editor-styles-wrapper .wp-block-gallery.is-style-if-comic-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; margin: 0; }
.if-story-content .wp-block-gallery.if-comic-panels figure.wp-block-image,
.if-story-content .wp-block-gallery.is-style-if-comic-panels figure.wp-block-image,
.editor-styles-wrapper .wp-block-gallery.if-comic-panels figure.wp-block-image,
.editor-styles-wrapper .wp-block-gallery.is-style-if-comic-panels figure.wp-block-image { width: 100% !important; margin: 0 !important; min-width: 0; flex-grow: 0; align-self: start; }
.if-story-content .wp-block-image.if-comic-panel,
.if-story-content .wp-block-image.is-style-if-comic-panel,
.editor-styles-wrapper .wp-block-image.if-comic-panel,
.editor-styles-wrapper .wp-block-image.is-style-if-comic-panel { padding: 0; margin: 0; box-shadow: none; border: 0; }
.if-story-content .wp-block-image.if-comic-panel img,
.if-story-content .wp-block-image.is-style-if-comic-panel img,
.if-story-content .wp-block-gallery.if-comic-panels img,
.if-story-content .wp-block-gallery.is-style-if-comic-panels img,
.editor-styles-wrapper .wp-block-image.if-comic-panel img,
.editor-styles-wrapper .wp-block-image.is-style-if-comic-panel img,
.editor-styles-wrapper .wp-block-gallery.if-comic-panels img,
.editor-styles-wrapper .wp-block-gallery.is-style-if-comic-panels img { display: block; width: 100% !important; max-width: 100%; height: auto !important; aspect-ratio: auto; object-fit: contain; border: 1px solid #777d6b; box-sizing: border-box; }
.if-story-content .wp-block-gallery.if-comic-panels figcaption,
.if-story-content .wp-block-gallery.is-style-if-comic-panels figcaption,
.if-story-content .wp-block-image.if-comic-panel figcaption { position: static; inset: auto; margin: 0; max-width: 100%; width: auto; background: #e9fb68; color: #191b1a; }
.if-comic-transcript,
.is-style-if-comic-transcript { max-width: 620px; margin: 32px auto; border: 1px solid #8e9580; padding: 0; color: inherit; background: transparent; overflow-wrap: anywhere; }
.if-comic-transcript > summary,
.is-style-if-comic-transcript > summary { cursor: pointer; min-height: 44px; padding: 12px 16px; font: 600 16px/1.5 Arial, sans-serif; }
.if-comic-transcript > summary:focus-visible,
.is-style-if-comic-transcript > summary:focus-visible { outline: 3px solid #e9fb68; outline-offset: 3px; }
.if-comic-transcript > :not(summary),
.is-style-if-comic-transcript > :not(summary) { margin: 16px; font-size: 18px; line-height: 1.7; }
.editor-styles-wrapper .wp-block.if-comic-page,
.editor-styles-wrapper .wp-block.if-comic-panels,
.editor-styles-wrapper .wp-block.is-style-if-comic-panels { max-width: 1120px; }
.editor-styles-wrapper .wp-block.if-comic-page.if-comic-single { max-width: 620px; }
.editor-styles-wrapper .if-comic-page .wp-block { max-width: none; }
.editor-styles-wrapper .if-comic-transcript > summary:focus-visible { outline-color: #191b1a; }
@media (min-width: 900px) {
 .if-story-content .wp-block-gallery.if-comic-panels,
 .if-story-content .wp-block-gallery.is-style-if-comic-panels,
 .editor-styles-wrapper .wp-block-gallery.if-comic-panels,
 .editor-styles-wrapper .wp-block-gallery.is-style-if-comic-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .if-story-content .wp-block-gallery.if-comic-panels.columns-3,
 .if-story-content .wp-block-gallery.is-style-if-comic-panels.columns-3,
 .editor-styles-wrapper .wp-block-gallery.if-comic-panels.columns-3,
 .editor-styles-wrapper .wp-block-gallery.is-style-if-comic-panels.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .if-story-content .wp-block-gallery.if-comic-panels.columns-1,
 .if-story-content .wp-block-gallery.is-style-if-comic-panels.columns-1,
 .editor-styles-wrapper .wp-block-gallery.if-comic-panels.columns-1,
 .editor-styles-wrapper .wp-block-gallery.is-style-if-comic-panels.columns-1 { grid-template-columns: minmax(0, 1fr); }
}
