/* Shared compact layouts: preserve complete artwork and two-column comparisons. */
@media (max-width: 1023px) {
 body.portfolio-site .about-editorial-hero .editorial-hero-art {height:auto;min-height:0;overflow:visible;padding:24px;align-self:start;}
 body.portfolio-site .about-editorial-hero .editorial-hero-art img {position:static;width:min(100%,360px);height:auto;max-height:none;aspect-ratio:4/5;object-fit:cover;border-radius:50%;margin:auto;}
 body.portfolio-site .approach-panel {align-items:start;}
 body.portfolio-site .approach-panel article {align-self:start;margin-top:0;padding-top:20px;}
 body.portfolio-site .book-hero-slideshow {min-width:0;width:100%;max-width:100%;overflow:visible;}
 body.portfolio-site .book-hero-slideshow .services-slides {width:100%;max-width:100%;margin-inline:auto;overflow:hidden;}
 body.portfolio-site .book-hero-slideshow .services-slides img:nth-child(n) {width:100%;height:100%;object-fit:contain;object-position:center;transform:none;}
 body.portfolio-site #page-content .services-process ol {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
 body.portfolio-site #page-content .services-process li {min-width:0;}
 body.portfolio-site .inquiry-examples {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;}
 body.portfolio-site .inquiry-examples>.eyebrow,body.portfolio-site .inquiry-examples>h2 {grid-column:1/-1;}
 body.portfolio-site .inquiry-examples>article {display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;margin:0;padding:16px 0;border-top:1px solid #d6dde5;}
 body.portfolio-site .inquiry-examples>article img {max-width:100%;object-fit:contain;}
 body.portfolio-site .editorial-project-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
 body.portfolio-site .editorial-project-card {min-width:0;}
}
@media (max-width:600px) {
 body.portfolio-site .editorial-project-grid {gap:12px;}
 body.portfolio-site .editorial-project-copy {padding:14px 10px;}
 body.portfolio-site .editorial-project-copy h3,body.portfolio-site .editorial-project-copy .project-title {font-size:18px;}
 body.portfolio-site .editorial-project-copy p {font-size:14px;}
 body.portfolio-site .editorial-project-art {height:180px;min-height:0;}
 body.portfolio-site .editorial-project-art img {max-width:100%;max-height:100%;object-fit:contain;}
 body.portfolio-site .project-tags {white-space:normal;font-size:10px;}
 body.portfolio-site .inquiry-examples h3 {font-size:17px;}
 body.portfolio-site .inquiry-examples p {font-size:14px;}
 body.portfolio-site #page-content .services-process {padding:24px 16px;}
 body.portfolio-site #page-content .services-process h3 {font-size:19px;}
}

/* Reviewed compact-screen refinements. */
@media (max-width:1023px) {
 body.portfolio-site.editorial-services #page-content .services-process ol {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;}
 body.portfolio-site.editorial-services #page-content .services-process li {margin:0;max-width:none;padding:20px 8px;min-width:0;text-align:center;border:0;}
 body.portfolio-site.editorial-services #page-content .services-process li:nth-child(n+3) {border-top:1px solid #ccd4dd;}
 body.portfolio-site.editorial-services #page-content .services-process h3 {min-height:0;overflow-wrap:normal;}
 body.portfolio-site .inquiry-editorial-hero {grid-template-columns:minmax(0,1fr)!important;}
 body.portfolio-site .inquiry-editorial-hero .editorial-hero-art {display:none!important;}
 body.portfolio-site .inquiry-editorial-hero .editorial-hero-copy {width:100%;max-width:760px;margin-inline:auto;text-align:center;min-width:0;}
 body.portfolio-site .inquiry-editorial-hero .editorial-hero-copy>* {margin-inline:auto;}
 body.portfolio-site .editorial-project-card .project-description,
 body.portfolio-site .editorial-project-card .project-tags {display:none!important;}
 body.portfolio-site .editorial-project-card .project-circle-arrow {position:static;display:flex;margin:16px auto 0;}
 body.portfolio-site .about-editorial-hero {display:flex!important;flex-direction:column;}
 body.portfolio-site .about-editorial-hero .editorial-hero-art {order:-1;width:100%;align-self:center;padding:24px 16px 12px;}
 body.portfolio-site .about-editorial-hero .editorial-hero-art img {width:60%;max-width:216px;height:auto;aspect-ratio:4/5;margin-inline:auto;}
 body.portfolio-site .about-editorial-hero .editorial-hero-copy {width:100%;min-width:0;text-align:center;}
}

/* Center the complete content at the stacked-layout breakpoint. */
@media (max-width:1023px) {
 body.portfolio-site #page-content .about-editorial-hero .editorial-hero-copy,
 body.portfolio-site #page-content .work-editorial-hero .editorial-hero-copy {text-align:center;max-width:760px;margin-inline:auto;}
 body.portfolio-site #page-content .about-editorial-hero .editorial-hero-copy>*,
 body.portfolio-site #page-content .work-editorial-hero .editorial-hero-copy>* {text-align:center;margin-inline:auto;}
 body.portfolio-site #page-content .about-editorial-hero .editorial-hero-copy .story-actions {justify-content:center;}
 body.portfolio-site #page-content .inquiry-form-panel>.eyebrow,
 body.portfolio-site #page-content .inquiry-form-panel>h2 {text-align:center;max-width:100%;margin-inline:auto;}
 body.portfolio-site #page-content .software-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:640px;margin-inline:auto;padding:0;}
 body.portfolio-site #page-content .software-list li {min-width:0;white-space:normal;text-align:center;padding:12px 6px;}
 body.portfolio-site #page-content .editorial-project-card .editorial-project-copy {text-align:center;align-items:center;}
 body.portfolio-site #page-content .editorial-project-card .editorial-project-copy h3,
 body.portfolio-site #page-content .editorial-project-card .project-kind {display:block;width:100%;text-align:center;}
 body.portfolio-site #page-content .editorial-project-card .project-circle-arrow {justify-content:center;align-items:center;align-self:center;margin-inline:auto;}
}

/* Comfortable mobile wrapping and centered secondary experiences. */
h1,h2,h3,.process-tagline-headline {text-wrap:balance;}
p,li {text-wrap:pretty;}
@media (max-width:1023px) {
 body.portfolio-site #project-dialog .dialog-copy {text-align:center;}
 body.portfolio-site #project-dialog .dialog-copy .text-link {display:inline-flex;justify-content:center;margin-inline:auto;}
 body.portfolio-site .inquiry-form-panel button[type="submit"] {display:flex;width:fit-content;max-width:100%;margin-inline:auto;justify-content:center;}
 body.portfolio-site #page-content .inquiry-editorial-hero {min-height:0;padding-block:30px;}
 body.portfolio-site #page-content .inquiry-editorial-hero .editorial-hero-copy {padding-block:0;}
}

/* Journal thumbnails use a window into the full-size cover-and-spread artwork. */
body.portfolio-site.editorial-work .editorial-project-art .journal-cover-window > img {
  max-width:none;
  max-height:none;
  height:auto;
}
@media (max-width:1100px) {
  body.portfolio-site .about-editorial-hero .editorial-hero-actions {justify-content:center;}
}
