/* Mobile layout proposal. ?vista=esferas keeps the previous mobile home intact. */
@media(max-width:699px) and (orientation:portrait){
 html.mobile-rectangles #home{--home-copy-width:100%;height:calc(100dvh - 70px - env(safe-area-inset-top));min-height:0;max-width:520px;margin-inline:auto;padding:8px 5% max(8px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:6px;box-sizing:border-box}
 html.mobile-rectangles #home .intro{flex:none;min-height:0;padding:4px 0 6px}
 html.mobile-rectangles #home .hero-copy{flex:none;max-width:100%}
 html.mobile-rectangles #home .intro h1{font-size:clamp(23px,6vw,28px);line-height:1.08;margin:0 0 5px}
 html.mobile-rectangles #home .intro-copy{font-size:14px;line-height:1.3;margin:0}
 html.mobile-rectangles #home .moments{display:flex;flex-direction:column;flex:1;min-height:0}
 html.mobile-rectangles #home .section-heading{flex:none;padding:0 0 7px;margin:0}
 html.mobile-rectangles #home .section-heading h2{font-size:clamp(17px,4.8vw,20px);line-height:1.2;margin:0;white-space:nowrap}
 html.mobile-rectangles #home .moment-grid{flex:1;min-height:0;max-width:none;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:8px;align-items:stretch}
 html.mobile-rectangles #home .home-footer{flex:none;padding:6px 0 0;margin:0;gap:0}
 html.mobile-rectangles #home .home-footer>span{font-size:11px;line-height:1.4;white-space:nowrap}
 html.mobile-rectangles #home .home-footer button{min-height:30px;font-size:12px}
}
@media(max-width:1100px) and (max-height:540px) and (orientation:landscape){
 html.mobile-rectangles #home{--home-copy-width:100%;height:calc(100dvh - 48px);min-height:0;max-width:1000px;margin-inline:auto;padding:5px max(4%,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(4%,env(safe-area-inset-left));display:flex;flex-direction:column;gap:4px;box-sizing:border-box}
 html.mobile-rectangles #home .intro{flex:none;min-height:0;padding:0 0 4px}
 html.mobile-rectangles #home .hero-copy{flex:none;max-width:100%}
 html.mobile-rectangles #home .intro h1{font-size:22px;line-height:1.1;margin:0 0 3px}
 html.mobile-rectangles #home .intro h1 br{display:none}
 html.mobile-rectangles #home .intro h1 em{margin-left:.2em}
 html.mobile-rectangles #home .intro-copy{font-size:13px;line-height:1.25;margin:0}
 html.mobile-rectangles #home .moments{display:flex;flex-direction:column;flex:1;min-height:0}
 html.mobile-rectangles #home .section-heading{flex:none;padding:0 0 6px;margin:0}
 html.mobile-rectangles #home .section-heading h2{font-size:17px;line-height:1.2;margin:0}
 html.mobile-rectangles #home .moment-grid{flex:1;min-height:0;max-width:none;width:100%;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
 html.mobile-rectangles #home .home-footer{flex:none;flex-direction:row;align-items:center;padding:4px 0 0;margin:0;gap:10px}
 html.mobile-rectangles #home .home-footer>span{font-size:10px;line-height:1.3;width:auto}
 html.mobile-rectangles #home .home-footer button{min-height:28px;font-size:12px;align-self:auto}
}
@media(max-width:699px) and (orientation:portrait),(max-width:1100px) and (max-height:540px) and (orientation:landscape){
 html.mobile-rectangles #home .moment-card{position:relative;width:100%;height:100%;min-height:0;aspect-ratio:auto;margin:0;padding:0;display:block;overflow:hidden;border-radius:15px;background:#102823;border:1px solid #efe5cc30;isolation:isolate}
 html.mobile-rectangles #home .moment-card>img{position:absolute;inset:0;width:100%;height:100%;margin:0;border-radius:inherit;object-fit:cover;transform:none}
 html.mobile-rectangles #home .moment-card .card-wash,html.mobile-rectangles #home .moment-card::after{inset:0;width:auto;height:auto;margin:0;border-radius:inherit}
 html.mobile-rectangles #home .moment-card .card-wash{background:linear-gradient(0deg,#04171145,transparent 70%)}
 html.mobile-rectangles #home .moment-card::after{border:1px solid #efe5cc20}
 html.mobile-rectangles #home .card-bottom{position:absolute;inset:auto 6px 6px;width:auto;display:flex;align-items:flex-end;justify-content:center;z-index:3;text-align:center}
 html.mobile-rectangles #home .card-bottom::after{display:none}
 html.mobile-rectangles #home .card-bottom>span{min-width:0;max-width:100%}
 html.mobile-rectangles #home .card-title{display:inline-block;min-height:0;max-width:100%;padding:5px 9px;border-radius:8px;background:#071b16b8;color:#f4eddd;font-size:clamp(18px,4.8vw,20px);line-height:1.1;white-space:normal;text-wrap:balance;text-shadow:0 1px 4px #0008}
 html.mobile-rectangles #home .moment-card.is-locked .card-title{color:#d0d5ca;background:#071711c9}
 html.mobile-rectangles #home .access-lock{top:7px;right:7px;left:auto;transform:none;z-index:4;width:24px;height:24px;border-radius:7px;background:#071b16a8}
 html.mobile-rectangles #home .access-lock svg{width:17px;height:17px}
 html.mobile-rectangles #home #random-ambience .random-art{justify-content:flex-end;align-items:flex-start;padding:8px;background:linear-gradient(0deg,#04171145,transparent)}
 html.mobile-rectangles #home .random-art svg{width:22px;height:22px}
}
@media(max-width:699px) and (orientation:portrait) and (max-height:640px){
 html.mobile-rectangles #home{padding-block:5px;gap:4px}
 html.mobile-rectangles #home .intro{padding:0 0 4px}
 html.mobile-rectangles #home .intro h1{font-size:22px;line-height:1.05;margin-bottom:3px}
 html.mobile-rectangles #home .intro-copy{font-size:13px;line-height:1.2}
 html.mobile-rectangles #home .moment-grid{gap:6px}
 html.mobile-rectangles #home .section-heading{padding-bottom:5px}
 html.mobile-rectangles #home .home-footer{padding-top:4px}
 html.mobile-rectangles #home .home-footer button{min-height:26px}
 html.mobile-rectangles #home .card-title{font-size:16px;padding:4px 7px}
}
@media(max-width:1100px) and (max-height:540px) and (orientation:landscape){html.mobile-rectangles #home .card-title{font-size:clamp(13px,2.1vw,17px);padding:4px 7px}html.mobile-rectangles #home .card-bottom{inset:auto 5px 5px}}
