/*
 * Appearance settings of the theme (Apparence > Paramètres de Livre Rare Book), applied by body classes set in
 * livrerarebook_apply_settings(). Until 2026, the same rules were written to public://lrb/livrerarebook_files/settings.css
 * when the settings were saved, with a copy of the palette of the variant.
 */

/*
 * Display variants (cobalt, oxford…): their palette sets a background image by a relative URL, which never loaded
 * from the copy in public:// (404 on every page). The sites have always shown a plain background: kept.
 */
body[class*="lrb-variant-"] {
  background: none;
}

/*
 * Except Bodoni: the copy of theme-bodoni.css written in public:// carried its background by an absolute URL, which
 * did load (livresanciens.jeanne-laffitte.com, dark "type" background, checked on 16/11/2026), and its post-footer
 * is written in white for that background: invisible on a plain one. Set here, from the right directory (the
 * palette looks it up in a missing css/images/). A background chosen in the settings (below) still wins.
 */
body.lrb-variant-bodoni {
  background: url("../images/pattern-type.png");
}

/* Main background. */
body.lrb-bg-pattern-blackpaper {
  background: url("../images/pattern-blackpaper.png");
}
body.lrb-bg-pattern-classyfabric {
  background: url("../images/pattern-classyfabric.png");
}
body.lrb-bg-pattern-lowcontrastlinen {
  background: url("../images/pattern-lowcontrastlinen.png");
}
body.lrb-bg-pattern-type {
  background: url("../images/pattern-type.png");
}
body.lrb-bg-pattern-concrete {
  background: url("../images/pattern-concrete.png");
}
body.lrb-bg-pattern-cork {
  background: url("../images/pattern-cork.png");
}
body.lrb-bg-pattern-curly {
  background: url("../images/pattern-curly.png");
}
body.lrb-bg-pattern-diagonal {
  background: url("../images/pattern-diagonal.png");
}
body.lrb-bg-pattern-floral {
  background: url("../images/pattern-floral.png");
}
body.lrb-bg-pattern-freshsnow {
  background: url("../images/pattern-freshsnow.png");
}
body.lrb-bg-pattern-pixels {
  background: url("../images/pattern-pixels.png");
}
body.lrb-bg-pattern-seamlesspapertexture {
  background: url("../images/pattern-seamlesspapertexture.png");
}
body.lrb-bg-pattern-swirl {
  background: url("../images/pattern-swirl.png");
}

/* Site title font size (a CSS value typed in the settings). */
.lrb-site-name-size #header #site-name {
  font-size: var(--lrb-site-name-size);
}

/* Pictures orientation: horizontal, the picture above the text. */
@media screen and (min-width: 51.4285714286em) {
  .lrb-pictures-horizontal .lrb-book .description {
    display: block;
  }
  .lrb-pictures-horizontal .lrb-book .book-text {
    float: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    width: auto;
  }
  .lrb-pictures-horizontal .lrb-book .book-image {
    float: none;
    margin-left: 0;
    margin-right: 0;
    width: auto;
    text-align: left;
  }
  .lrb-pictures-horizontal .lrb-book div.no-image {
    display: none;
    visibility: hidden;
  }
}
