/* AVA IMAGE 1.22.5 — Grille éditoriale des pages projet, sans modification des vidéos ni des autres pages. */
/* Desktop: offrir une largeur de lecture adaptée aux écrans, avec alternance de doubles colonnes. */
@media (min-width: 1120px) {
  html body.premium-interior main article.project-page {
    box-sizing:border-box;
    width:min(1260px, calc(100% - 96px));
    max-width:none;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:clamp(26px,3.6vw,58px);
    row-gap:0;
    align-items:start;
    margin:34px auto 75px;
  }
  html body.premium-interior main article.project-page > * {
    grid-column:1 / -1;
    min-width:0;
  }
  html body.premium-interior main article.project-page > section:not(.ava-case-study):not(.ava-project-wide) {
    grid-column:auto;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    max-width:none;
    margin:32px 0 0;
    padding:27px 0 18px;
  }
  html body.premium-interior main article.project-page > section.ava-project-wide,
  html body.premium-interior main article.project-page > section.ava-case-study {
    grid-column:1 / -1;
    box-sizing:border-box;
    width:100%;
    max-width:none;
  }
  html body.premium-interior main article.project-page > section.ava-project-wide:not(.ava-case-study) {
    width:min(100%, 1080px)!important;
    max-width:1080px!important;
    margin:32px auto 0!important;
    padding:27px 0 18px;
  }
  html body.premium-interior main article.project-page > h1 {max-width:1200px}
  html body.premium-interior main article.project-page > p {max-width:96ch}
  html body.premium-interior main article.project-page > :is(.project-video, .video-watch-header, figure) {
    grid-column:1 / -1;
  }
  html body.premium-interior main article.project-page > .project-video {
    width:100%!important;
    max-width:1120px!important;
    margin-inline:auto!important;
  }
  html body.premium-interior main article.project-page > figure {
    width:100%!important;
    max-width:1120px!important;
    margin-inline:auto!important;
  }
  html body.premium-interior main article.project-page > section h2 {
    font-size:clamp(25px,2.35vw,35px);
    overflow-wrap:anywhere;
  }
  html body.premium-interior main article.project-page > section :is(p,li,dd) {
    overflow-wrap:break-word;
  }
  html body.premium-interior main article.project-page > section.ava-case-study .ava-case-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
/* Intermediate tablets and phones: retain vertical order and comfortable text measure. */
@media (max-width: 1119px) {
  html body.premium-interior main article.project-page {display:block;}
}
/* Wide reference band uses existing shared styles; ensure it is not constrained by article width. */
html body.premium-interior main > section.ava-trust {
  position:relative;
  z-index:3;
  width:100%;
  max-width:none;
  margin:0;
}
