/* Wall lettering uses ordinary inline text so the painted words share one reading line. */
@layer street-paint {
  @media screen {
    [data-mural-title]:not([hidden]) {
      display: block !important;
      box-sizing: border-box !important;
      writing-mode: horizontal-tb !important;
      inline-size: fit-content !important;
      min-inline-size: 0 !important;
      max-inline-size: 100% !important;
      white-space: normal !important;
      word-break: normal !important;
      overflow-wrap: normal !important;
      hyphens: manual !important;
      text-align: center !important;
      text-wrap: balance;
    }

    [data-mural-title] :where(span:not([aria-hidden="true"]), a, strong, em, small,
      atelier-word, atelier-words, atelier-ink, atelier-ink-word, atelier-ink-run,
      gdm-type-fragment, gdm-text-run, gdm-ink, gdm-cap-a, gdm-name-initial):not([hidden], [lang], .visually-hidden, .sr-only) {
      display: inline !important;
      writing-mode: horizontal-tb !important;
      white-space: normal !important;
      overflow-wrap: normal !important;
      word-break: normal !important;
    }

    [data-mural="panel"]:is(.title-plaque, .gdm-shop-welcome),
    [data-mural="panel"] :is(.edition-frame-content, .gdm-welcome-title) {
      display: block !important;
      box-sizing: border-box !important;
      min-inline-size: 0 !important;
      text-align: center !important;
    }

    [data-mural="panel"]:is(.title-plaque, .gdm-shop-welcome) {
      border-width: 0 !important;
      padding: clamp(20px, 3.4vw, 40px) clamp(16px, 5vw, 56px) !important;
    }

    [data-mural="panel"]:is(.title-plaque, .gdm-shop-welcome) [data-mural-title] {
      margin-inline: auto !important;
      margin-block: 0 clamp(12px, 1.8vw, 22px) !important;
    }

    [data-mural="panel"]:is(.title-plaque, .gdm-shop-welcome) [data-mural-title]:last-child {
      margin-block-end: 0 !important;
    }

    [data-mural="panel"]:is(.title-plaque, .gdm-shop-welcome) p {
      box-sizing: border-box !important;
      width: 100% !important;
      max-inline-size: 55ch !important;
      margin-inline: auto !important;
      text-wrap: pretty;
    }

    [data-mural="panel"]:is(.title-plaque, .gdm-shop-welcome) > p,
    [data-mural="panel"] .edition-frame-content > p { text-align: center !important; }

    /* The letter artwork contains its own proportions and underline. */
    html:not(:lang(en)) [data-mural-art]:not([data-mural]) {
      inline-size: min(var(--letter-width), 100%) !important;
    }
  }
}

@layer street-paint {
  @media screen {
    .title-plaque [data-mural-title] .artist-studio-label {
      display: inline !important;
    }
    .title-plaque .artist-studio-label > span:not([aria-hidden]) {
      display: inline-block !important;
      white-space: nowrap !important;
      width: auto !important;
    }
    body[data-page="editions"] #editions .edition-title .edition-caption {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr);
      justify-items: center;
      gap: .08em;
      text-align: center;
    }
    body[data-page="editions"] #editions .edition-caption > span {
      display: block !important;
      white-space: nowrap !important;
    }
    .title-plaque [data-mural-title] .artist-studio-dot {
      display: inline-block !important;
      width: .12em !important;
      height: .12em !important;
      margin-inline: .23em !important;
      vertical-align: middle !important;
      background: currentColor !important;
    }
    .title-plaque .flash-description {
      width: 100% !important;
      min-width: 0 !important;
    }
  }
}

@layer street-paint {
  @media screen and (forced-colors: none) {
    [data-mural-title]:not([data-mural-art]) :is(atelier-ink, atelier-ink-run, gdm-text-run,
      gdm-type-fragment, gdm-ink, gdm-cap-a, gdm-name-initial, [data-red-type]) {
      font: inherit !important;
      letter-spacing: inherit !important;
      color: inherit !important;
      -webkit-text-fill-color: inherit !important;
      -webkit-text-stroke: inherit !important;
      paint-order: stroke fill !important;
      text-shadow: inherit !important;
      filter: none !important;
    }
  }
}

@layer street-paint {
  @media screen {
    .title-plaque[data-mural]:has(> .atelier-invitation-logo) {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 0 !important;
    }
    .title-plaque[data-mural] > .atelier-invitation-logo {
      order: 1;
      width: clamp(42px, 5vw, 60px) !important;
      height: auto !important;
      margin: .65rem auto 0 !important;
    }
  }
}


@layer street-paint {
  @media screen and (forced-colors: none) {
    /* The original marker supplies all four sides. Its center is solid black. */
    [data-wall-marker]:not([data-mural]),
    .gdm-answer-choice, [data-guide-next], [data-contact-dialogue] textarea {
      background-color: #000 !important;
      background-image: none !important;
      color: #fff !important;
      -webkit-text-fill-color: #fff !important;
    }

    /* Keep bare brick above and below the marker, including on compact title walls. */
    [data-mural-title]:not([data-mural]):not([data-mural-art]) {
      padding-inline: .42em !important;
    }
    html:not(:lang(en)) [data-mural-art]:not([data-mural]) {
      background: var(--letter-art) center / 86% auto no-repeat,
        var(--mural-ink) center / 100% 86% no-repeat !important;
    }
    [data-mural="panel"] p:not(:has(input,button,select,textarea)) {
      color: #fff4df !important;
      -webkit-text-fill-color: #fff4df !important;
      -webkit-text-stroke: .09em #17100f !important;
      paint-order: stroke fill !important;
      text-shadow: none !important;
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='61'%3E%3Cmask id='m'%3E%3Crect width='101' height='61' fill='white'/%3E%3Cpath opacity='.60' d='M3 8h3l-1 .8H3zM23 38h2v1h-2zm26-22 3-.5-.7 1-2 .6zm31 32 3-1-1 1.5-2 .3zM95 21h2v1h-2z'/%3E%3Cpath opacity='.24' d='M9 26l10-.5 3 .6-14 .6zm53 27 8-.4 2 .7-11 .5z'/%3E%3C/mask%3E%3Crect width='101' height='61' fill='white' mask='url(%23m)'/%3E%3C/svg%3E") !important;
      mask-size: 101px 61px !important;
      mask-repeat: repeat !important;
    }
    [data-mural="panel"] p :is(atelier-word, atelier-ink, atelier-ink-run, atelier-words, gdm-ink, gdm-text-run, gdm-type-fragment) {
      font-family: inherit !important;
      color: inherit !important;
      -webkit-text-fill-color: inherit !important;
      -webkit-text-stroke: inherit !important;
      paint-order: stroke fill !important;
      text-shadow: inherit !important;
    }
  }
}

/* Let the cable reach the inside edges of both logos while keeping the logos sharp. */
@layer street-paint {
  @media screen {
    :is(.header-brand-marks, .gdm-header-brands):has(> .gdm-wire-art) {
      column-gap: 0 !important;
    }
    :is(.header-brand-marks, .gdm-header-brands) > .gdm-wire-art {
      margin-inline: -3px !important;
      --wire-fade: 2px !important;
      mask-image: linear-gradient(to right, transparent, #000 2px, #000 calc(100% - 2px), transparent) !important;
    }
    :is(.header-brand-marks, .gdm-header-brands) > .gdm-wire-art img {
      --wire-fade: 2px !important;
      mask-image: none !important;
      filter: none !important;
      transform: none;
    }
  }
}

@layer street-paint {
  @media screen and (forced-colors: none) {
    .site-footer :is(.footer-links, .category-heading) { --atelier-red-ink: var(--price-marker-red); }
    .site-footer :is(.footer-links, .category-heading) ::highlight(atelier-ink) {
      color: var(--price-marker-red) !important;
    }
    .site-footer .footer-links > a:not(.custom-payment-link)::before,
    .site-footer .footer-links > a:not(.custom-payment-link)::after {
      background-image: url("/images/croix-categories-encre.svg") !important;
      filter: none !important;
    }
    .site-footer h3.category-heading::before, .site-footer h3.category-heading::after {
      background-image: url("/images/croix-titre-categories-encre.svg") !important;
      filter: none !important;
    }
  }
}

@layer street-paint {
  @media screen and (forced-colors: none) {
    .site-footer .footer-intro :is(.tattoo-price, .piercing-notice) {
      display: inline-block !important;
      max-inline-size: 100% !important;
      box-sizing: border-box !important;
      vertical-align: baseline !important;
      padding: .14em .48em .18em !important;
      background: transparent !important;
      border: 2px solid var(--price-marker-red, #a71528) !important;
      border-image: none !important;
      box-shadow: none !important;
      clip-path: none !important;
      mask: none !important;
    }
    .site-footer .footer-intro .tattoo-price {
      border-radius: 50% 46% 49% 45% !important;
      white-space: nowrap !important;
    }
    .site-footer .footer-intro .piercing-notice {
      border-radius: .3em .22em .27em .2em !important;
      white-space: normal !important;
    }
    .site-footer .footer-intro :is(.tattoo-price, .piercing-notice)::before,
    .site-footer .footer-intro :is(.tattoo-price, .piercing-notice)::after {
      content: none !important;
    }
  }
}

@font-face { font-family: AtelierPeinture; src: url("atelier-peinture.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }

@layer street-paint {
  @media screen and (forced-colors: none) {
    [data-mural] {
      --wall-title-ink: none;
      --wall-black: #100d0d;
      --wall-ink-wear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='109' height='59'%3E%3Cmask id='m'%3E%3Crect width='109' height='59' fill='white'/%3E%3Cpath opacity='.76' d='M4 8l2.3-.6-1.1 1.8-1 .2zM28 38l3-.4-1.4 1.2-1.6.4zm29-22 2.5-.6-.6 1.8-1.7.5zm24 30 2.3-.5-.9 1.4-1.4.2zM96 17l1.7-.4-.4 1.2-1.4.2z'/%3E%3Cpath opacity='.54' d='M9 24l13-.35-4 1-10 .45zm53 25 11-.65-3 1.1-9 .6zm22-40 5-.3-1 .9-4 .3z'/%3E%3Cpath opacity='.24' d='M0 31l11-.4 10 .7 15-.2-10 .9-23 .4zM45 32l31-.6 17-.2-5 .9-40 .8z'/%3E%3C/mask%3E%3Crect width='109' height='59' fill='white' mask='url(%23m)'/%3E%3C/svg%3E");
    }
    [data-mural][data-mural-title] { --wall-title-ink: var(--mural-ink); }
    [data-mural]::before {
      background: var(--mural-spalls, none) center / 100% 100% no-repeat,
        var(--wall-title-ink) center / 93% 90% no-repeat,
        linear-gradient(var(--mural-angle), rgb(19 11 10 / var(--mural-shade)), transparent 55%, rgb(24 13 10 / .16)),
        var(--mural-stock) var(--mural-origin) / var(--mural-tile) auto repeat, #854b3b !important;
    }

    [data-mural], [data-mural] :where(p,li,dt,dd,legend,label,small,a,strong,b,em,i,summary,button,span,div,
      h1,h2,h3,h4,h5,h6,atelier-words,atelier-word,atelier-ink,atelier-ink-run,atelier-ink-word,
      gdm-ink,gdm-type-fragment,gdm-text-run,gdm-name-initial,gdm-cap-a,gdm-shirt,[data-red-type]):not(svg *,[aria-hidden="true"]) {
      color: #fff !important;
      -webkit-text-fill-color: #fff !important;
      -webkit-text-stroke: .095em var(--wall-black) !important;
      paint-order: stroke fill !important;
      text-shadow: none !important;
    }
    [data-mural]::highlight(atelier-ink), [data-mural] *::highlight(atelier-ink),
    [data-mural]::highlight(gdm-red), [data-mural] *::highlight(gdm-red) { color: #fff !important; }

    /* The master alphabet was drawn for these walls. Its black keyline scales with cap height. */
    [data-mural-title], [data-mural-title] :is(span,a,strong,em,b,small,atelier-word,atelier-words,atelier-ink,
      atelier-ink-run,atelier-ink-word,gdm-ink,gdm-text-run,gdm-type-fragment,gdm-cap-a,gdm-name-initial,gdm-shirt,gdm-hyphen,[data-red-type]):not([aria-hidden="true"]) {
      font-family: AtelierPeinture, GdmFreight, sans-serif !important;
      font-style: normal !important;
      font-weight: 400 !important;
      text-transform: uppercase !important;
      color: #fff !important;
      -webkit-text-fill-color: #fff !important;
      -webkit-text-stroke: .12em #100d0d !important;
      paint-order: stroke fill !important;
      text-shadow: .018em .042em #100d0d !important;
      filter: none !important;
      letter-spacing: .013em !important;
      line-height: 1.20 !important;
    }
    [data-mural] [data-mural-title]:not([data-mural]),
    [data-mural-title][data-mural="label"], [data-mural="panel"] p:not(:has(input,select,textarea,button)) {
      mask-image: var(--wall-ink-wear) !important;
      mask-size: 109px 59px !important;
      mask-repeat: repeat !important;
      mask-position: var(--mural-grain-offset) !important;
    }
    [data-mural="panel"] p:not(:has(input,select,textarea,button)),
    [data-mural="panel"] p :is(atelier-word,atelier-words,atelier-ink,atelier-ink-run,gdm-ink,gdm-text-run,gdm-type-fragment) {
      color: white !important;
      -webkit-text-fill-color: white !important;
      -webkit-text-stroke: .11em #100d0d !important;
      paint-order: stroke fill !important;
      text-shadow: none !important;
    }
    [data-mural="panel"] p:not(:has(input,select,textarea,button)) {
      box-sizing: border-box;
      line-height: 1.55 !important;
      text-wrap: pretty;
    }
    [data-mural="panel"]:is(.title-plaque,.gdm-shop-welcome,.footer-intro) {
      padding-inline: clamp(18px,5vw,56px) !important;
      padding-block: clamp(20px,3.4vw,40px) !important;
    }
    [data-mural="panel"]:is(.title-plaque,.gdm-shop-welcome,.footer-intro) p {
      max-inline-size: 54ch !important;
      margin-inline: auto !important;
    }
    .edition-wall-sign[data-mural-title] {
      max-width: calc(100% - 2rem) !important;
      margin: 0 auto clamp(16px,3.2vw,40px) !important;
      padding: .34em .72em .4em !important;
      font-size: clamp(1.9rem,5vw,3.65rem) !important;
    }
  }
}

/* Center each frame in its own column, including frames added after page load. */
@layer street-paint {
  @media screen {
    :is([data-mural], [data-surface], [data-gravure], [data-wall-marker],
        [data-ossuaire-kind], [data-gdm-wear], [data-felt], [data-gdm-felt]),
    :is([data-mural], [data-surface], [data-gravure], [data-wall-marker],
        [data-ossuaire-kind="panel"], [data-gdm-wear="paper"]) :where(
          h1,h2,h3,h4,h5,h6,p,div,li,dt,dd,figcaption,label,legend,summary,small,button,
          input:not([type=checkbox],[type=radio]),textarea,select) {
      text-align: center !important;
    }
    :is([data-mural], [data-mural-title], .reference-carousel-frame, .gdm-shop-welcome) {
      margin-inline: auto !important;
      max-inline-size: 100%;
    }
    :is([data-mural], [data-surface]) :where(p, h1, h2, h3, h4, legend, figcaption) {
      margin-inline: auto !important;
    }
    :is([data-mural], .gdm-product-copy) :where(ul,ol):not([role="list"]):has(> li) {
      padding-inline: 0;
      list-style-position: inside;
    }
  }
}
@layer street-paint {
  @media screen {
    :is(.piece-sheet,.tile,.brand-piece,.quote-inquiry,.rail-product,.destination-link,
        .footer-intro,.shipping-summary,.direct-card,.shipping-form),
    :is(.piece-sheet,.tile,.brand-piece,.quote-inquiry,.rail-product,.destination-link)
      :where(p,h1,h2,h3,h4,figcaption,label,legend,summary,small,button,input,textarea) {
      text-align: center !important;
    }
    :is(.piece-copy,.piece-actions,.inquiry-label,.gift-field-caption,.explorer-frame,
        .piece-page-content > h1,.quote-inquiry,.footer-intro,.edition-wall-sign) {
      margin-inline: auto !important;
    }
    :is(.shipping-form,.shipping-summary,.direct-card,.destination-link)[data-mural] {
      inline-size: 100%;
    }
    .piece-sheet .piece-actions, .footer-email-row, .piece-sheet .inquiry label {
      justify-content: center;
      justify-items: center;
    }
    .shipping-summary :is(dt,dd) { text-align: center !important; }
  }
}

@layer street-paint {
  @media screen {
    #atelier .bio-copy[data-surface] {
      box-sizing: border-box;
      width: min(100%, 43rem);
      margin-inline: auto;
      padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 3.5rem) !important;
    }
    #atelier .bio-copy[data-surface] p {
      max-width: 47ch !important;
      margin-inline: auto !important;
      text-align: center !important;
      text-indent: 0 !important;
      text-wrap: pretty;
    }
    #atelier .bio-copy[data-surface] p + p { margin-top: 1em !important; }
    body #main-content #atelier img:is(.crane-mural, .squelette-mural) {
      filter: none !important;
      background: transparent !important;
      border: 0 !important;
      height: auto !important;
      margin-inline: auto !important;
      opacity: .94;
    }
    body #main-content #atelier img.crane-mural { width: clamp(6rem, 11vw, 9rem) !important; }
    body #main-content #atelier img.squelette-mural {
      width: min(100%, 32rem) !important;
      max-width: 100% !important;
      filter: grayscale(1) brightness(1.3) contrast(1.27)
        drop-shadow(1px 0 #110e0e) drop-shadow(-1px 0 #110e0e)
        drop-shadow(0 1px #110e0e) blur(.42px) !important;
      opacity: .76;
      margin-block: .65rem .3rem !important;
    }
  }
}
