body.cna-background main.container {
  position: relative;
  isolation: isolate;
  /* Only the pseudo-element is clipped, never a gallery/lightbox in main. */
  background-color: var(--cna-cream) !important;
  background-image: url('../images/paper.svg');
  background-size: 180px 180px;
  background-repeat: repeat;
}
body.cna-background.cna-forest main.container::before,
body.cna-background.cna-urbex-wall main.container::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .23;
  background: url('../images/nature-background.jpg') center bottom / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 15%, #000 80%);
  mask-image: linear-gradient(to bottom, transparent 15%, #000 80%);
  clip-path: inset(var(--cna-forest-clip-top, 100vh) 0 var(--cna-forest-clip-bottom, 0px) 0);
}
/* Shared translated urbex hierarchy already receives cna-urbex from PHP.
   Use the supplied wall texture instead of the nature decoration there. */
body.cna-background.cna-urbex-wall main.container::before {
  background-image: url('../images/urbex-background.jpg');
  background-position: center;
  background-size: cover;
  -webkit-mask-image: none;
  mask-image: none;
}
@media (max-width: 768px) {
  body.cna-background.cna-forest main.container::before,
  body.cna-background.cna-urbex-wall main.container::before {
    /* No fixed decorative layer on phones; retain the cream paper beneath. */
    content: none;
    display: none;
    background-image: none;
  }
}
body.cna-background main.container > div[id^='page-'],
body.cna-background main.container > div[id^='page-'] > .row,
body.cna-background main.container > div[id^='page-'] > .row > .content,
body.cna-background main.container article.entry-content { background-color: transparent !important; }
