/* Give the guest page a definite height so portrait intrinsic sizes cannot grow grid tracks. */
.guest-preview{container-type:inline-size}
.guest-preview .guest-single-page:not(.single-book-page){height:max(640px,calc(min(100cqw,440px) / var(--page-ratio)));min-height:0!important;max-height:none;aspect-ratio:auto!important;grid-template-rows:repeat(2,minmax(0,1fr))}
.guest-preview .guest-single-page.guest-square-page{height:max(360px,min(100cqw,440px));grid-template-rows:minmax(0,1fr)}
/* Sample pictures are real images, not a background sprite stretched to each box. */
.message-tile img.memory-photo{background-image:none!important;object-fit:contain!important;object-position:center;aspect-ratio:auto!important;min-width:0;width:100%!important;max-width:100%!important}
.message-tile img.message-photo,.message-tile video.message-photo{object-fit:contain!important;object-position:center;min-width:0}
.guest-preview .guest-single-page .message-tile{min-height:0;min-width:0}
.guest-preview .guest-single-page .message-tile>.message-photo,.guest-preview .guest-single-page .message-tile>img.memory-photo{height:55%!important;flex:0 0 55%!important;max-height:55%!important;width:100%!important;margin:0!important}
.guest-preview .guest-square-page .message-tile>.message-photo,.guest-preview .guest-square-page .message-tile>img.memory-photo{height:45%!important;flex-basis:45%!important;max-height:45%!important}
