/* All layout experiments are confined to mobile and to this new route. */
@media(max-width:900px){
  .g-slide:nth-child(4) .mobile-slider-room-photo{object-position:50% 50%}
  html[data-photo-layout=B] #classroom,
  html[data-photo-layout=C] #classroom,
  html[data-photo-layout=B] #photo-gallery,
  html[data-photo-layout=C] #photo-gallery{display:none!important}
  .photo-story-room .photo-story-inner{display:block}
  .photo-story-room .photo-story-photo,
  #classes .photo-story-detail{padding:0;border:0;border-radius:0;overflow:hidden}
  .photo-story-photo img{display:block;width:100%;max-width:none;height:auto;border-radius:0}
  .photo-story-copy{padding:0;border:0}
  .photo-story-copy>p{max-width:none}
  .photo-story-intro{margin:10px 0 28px}
  .photo-story-space{margin:0 0 30px}
  .photo-story-space img{aspect-ratio:4/3;height:auto;object-fit:cover;object-position:50% 54%}
  .photo-story-comfort{margin:0 0 30px}
  .photo-story-people{margin:0 0 30px}
  html[data-photo-layout=B] .photo-story-people img{aspect-ratio:4/3;object-fit:cover;object-position:50% 35%}
  .photo-story-space>.photo-story-people-crop{display:block;width:100%;height:auto;aspect-ratio:4/3;overflow:hidden}
  .photo-story-assurance{margin:0}

  /* C alternates broad space, an intimate portrait, and a small detail. */
  html[data-photo-layout=C] .photo-story-intro{margin:14px 0 34px}
  html[data-photo-layout=C] .photo-story-space{width:calc(100% + 28px);margin:0 -14px 42px}
  html[data-photo-layout=C] .photo-story-space img{aspect-ratio:1/1;object-position:50% 48%}
  html[data-photo-layout=C] .photo-story-comfort{margin:0 0 36px}
  html[data-photo-layout=C] .photo-story-people{width:86%;margin:0 auto 38px}
  html[data-photo-layout=C] .photo-story-assurance{margin:0 0 8px}
  html[data-photo-layout=C] #classes .photo-story-detail{width:74%;margin:8px auto 36px}
  html[data-photo-layout=C] #classes .photo-story-detail img{aspect-ratio:4/3;object-fit:cover;object-position:50% 38%}
}

/* Explicit PC comparison request: same approved classroom photo, existing frame. */
@media(min-width:901px){
 .prose-comparison.serif-layout .g-slide:nth-child(4) .g-front>.mobile-slider-room-photo{object-position:50% 54%!important}
}

/* Two-line requested room heading; retain existing hierarchy and side gutters. */
@media(max-width:900px){
 html[data-typography-variant=C] .home-heading.room-study-heading{font-size:clamp(19px,6vw,28px)!important}
}

/* Requested mobile B photo pair before the owner's story; compact landscape group. */
@media(max-width:900px){
 #message .message-photo-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;width:100%;margin:0 0 36px;padding:0;border:0}
 #message .message-photo-pair>img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:0}
 #message .message-photo-pair>img:first-child{object-position:50% 52%}
 #message .message-photo-pair>img:last-child{object-position:50% 35%}
}

/* A single compact photograph follows the three introductory lines on mobile B. */
@media(max-width:900px){
 .home-intro .intro-hands-photo{display:block;width:100%;margin:28px 0 0;padding:0;border:0;overflow:hidden}
 .home-intro .intro-hands-photo>img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:50% 30%;border-radius:0}
}

/* If the opening sentence wraps, break only after the requested comma. */
@media(max-width:900px){
 .photo-story-assurance .opening-date-phrase{display:inline-block;white-space:nowrap}
}
