/* STEP3118: center wrapped / raw Gutenberg HTML A8 creatives without resizing.
   Never synthesize new advertising text, change URLs, or modify tracking assets. */
.fpsj-theme .wp-block-post-content a.fpsj-affiliate-image-tap-target {
  display:inline-block;
  min-height:44px;
  max-width:100%;
  padding:7px 9px;
  box-sizing:border-box;
  vertical-align:middle;
  border-radius:6px;
  cursor:pointer;
}
.fpsj-theme .wp-block-post-content a.fpsj-affiliate-image-tap-target img {
  max-width:100%;
  height:auto;
}
/* Only standalone tracked A8 creatives are centered. WordPress core/html saves
   raw children (no .wp-block-html div), so centering must be on the anchor.
   Do not affect comparison tables, other HTML, images, or article prose. */
.fpsj-theme .wp-block-post-content .wp-block-html.fpsj-affiliate-original-banner-block {
  text-align:center !important;
}
.fpsj-theme .wp-block-post-content a.fpsj-affiliate-original-banner {
  display:block !important;
  width:fit-content !important;
  height:auto !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:100%;
  padding:0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
  border:0 !important;
  background:none !important;
  vertical-align:middle;
  cursor:pointer;
}
.fpsj-theme .wp-block-post-content a.fpsj-affiliate-original-banner > img {
  display:block;
  max-width:100%;
  height:auto;
  flex-shrink:0;
}
