/* Dienst photo presentation only. Gate, picker, desktop and game logic keep their existing styling. */
@media (max-width:899px){
  #dienst.is-modal[data-dienst-photo-layout="split"]{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto minmax(min-content,1fr);
    grid-template-areas:"bars" "top" "photo" "content";
    align-content:start;
  }
  #dienst.is-modal[data-dienst-photo-layout="split"]>.fs__in{display:contents}
  #dienst.is-modal[data-dienst-photo-layout="split"] .story__bars{
    grid-area:bars;justify-self:center;width:calc(100% - 2 * var(--pad));max-width:600px;
  }
  #dienst.is-modal[data-dienst-photo-layout="split"] .fs__top{
    grid-area:top;align-self:start;box-sizing:border-box;width:100%;max-width:640px;margin:0 auto;
    padding-left:var(--pad);padding-right:var(--pad);background:var(--nacht,#17112C);
  }
  #dienst.is-modal[data-dienst-photo-layout="split"]>.story__bg{
    grid-area:photo;position:relative;inset:auto;z-index:0;overflow:visible;
    box-sizing:border-box;width:100%;max-width:640px;justify-self:center;padding:0 var(--pad);margin:12px auto 0;
  }
  #dienst.is-modal[data-dienst-photo-layout="split"]>.story__bg::after{display:none}
  #dienst.is-modal[data-dienst-photo-layout="split"]>.story__bg img{
    display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;transform:none;
  }
  #dienst.is-modal[data-dienst-photo-layout="split"] .fs__body{
    grid-area:content;align-self:start;box-sizing:border-box;min-width:0;width:100%;max-width:640px;
    margin:0 auto;padding:24px var(--pad) calc(28px + env(safe-area-inset-bottom,0px));background:var(--nacht,#17112C);
  }
  #dienst.is-modal[data-dienst-photo-layout="split"]:is([data-dienst-photo="none"],[data-dienst-photo="unavailable"])>.story__bg{display:none}
}
