/* Saved WordPress content and plugin markup, kept separate from editorial layout. */

/* Measurement images must retain their tiny box. Their URLs and requests stay intact. */
.fm-design img[width="0"][height="1"],
.fm-design img[width="1"][height="1"] {
  width: 1px !important;
  height: 1px !important;
  max-width: 1px !important;
  min-width: 0;
  flex: none;
}

.fm-design .travel-box__btn > img[height="1"] {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  inset: 0 auto auto 0;
  pointer-events: none;
}

/* Respect Gutenberg's explicit center alignment without moving left/right images. */
.fm-design .content .aligncenter,
.fm-design .content .aligncenter > img,
.fm-design .content .aligncenter > a > img {
  margin-inline: auto;
}

.fm-design .content .wp-block-image.aligncenter {
  text-align: center;
}

/* Contact Form 7's wrapper, not only its input, needs to be centered. */
.fm-design p.CF7-btn {
  margin-inline: auto;
}

/* A linked thumbnail should fill its own card cell, including in saved cards. */
.fm-design .card-link img {
  display: block;
  max-width: 100%;
  height: auto;
}

.fm-design .card-link.longcard-link {
  max-width: 100%;
  margin-right: 0;
}

/* Without a thumbnail, the text is the first span and needs room for the label. */
.fm-design .longcard-link > .blogcard-content:first-of-type {
  width: 100%;
  padding-top: 36px;
}
