/* Samsung Galaxy Tab A11+ (1920 x 1200; commonly 1280 x 800 CSS pixels). */
.rotate-message,.orientation-mismatch .rotate-message{display:none!important}

@media (min-width:900px) and (max-width:1400px) and (orientation:landscape){
  .kiosk{grid-template-rows:68px 1fr}
  .kiosk-header{padding-inline:max(1rem,env(safe-area-inset-left));gap:.75rem}
  .brand span{display:none}
  .art-stage{grid-template-columns:64px 1fr 64px}
  .artwork-image-wrap{padding:.8rem 1rem}
  .artwork-image-wrap img{max-height:calc(100vh - 172px)}
  figcaption{padding:.65rem 1rem .85rem}
  figcaption h1{font-size:clamp(1.45rem,2.6vw,2.35rem)}
  .gallery-grid{height:calc(100vh - 68px);grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:minmax(220px,calc((100vh - 104px)/2))}
}

@media (orientation:portrait) and (max-width:900px){
  .kiosk{grid-template-rows:116px 1fr}
  .kiosk-header{grid-template-columns:1fr auto;grid-template-areas:"brand cart" "views views";gap:.45rem .75rem;padding:.55rem max(.8rem,env(safe-area-inset-right)) .6rem max(.8rem,env(safe-area-inset-left))}
  .brand-tools{grid-area:brand}.cart-button{grid-area:cart}.view-tools{grid-area:views;justify-self:stretch}.view-tools button{flex:1;min-height:44px}.progress{display:none}.brand span{display:inline}
  .art-stage{grid-template-columns:54px minmax(0,1fr) 54px}
  .nav-arrow{font-size:4rem}
  .artwork-image-wrap{padding:.8rem .35rem}
  .artwork-image-wrap img{max-height:calc(100vh - 300px);max-width:100%}
  .artwork-image-wrap img[data-orientation="portrait"]{max-height:calc(100vh - 258px)}
  figcaption{align-items:stretch;flex-direction:column;gap:.7rem;padding:.7rem .55rem max(.85rem,env(safe-area-inset-bottom))}
  figcaption h1{max-width:none;font-size:clamp(1.35rem,5vw,2.15rem)}
  .artwork-actions{justify-content:space-between}.artwork-actions span{max-width:55%;text-align:left;font-size:.86rem}.artwork-actions button{padding:.9rem 1.25rem}
  .gallery-grid{height:calc(100vh - 116px);grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(220px,calc((100vh - 156px)/3));padding:.75rem;gap:.65rem}
  .gallery-card img{height:calc(100% - 54px)}.gallery-card span{min-height:54px;padding:.45rem .55rem}.gallery-card strong{font-size:.86rem}.gallery-card small{font-size:.72rem}
  .option-dialog,.checkout-dialog{width:96vw;max-height:94vh}.option-dialog form,.checkout-dialog form{padding:1rem}.option-artwork{grid-template-columns:120px 1fr}.option-artwork img{width:120px;height:130px}.checkout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (orientation:portrait) and (max-width:650px){
  .brand span{display:none}
  .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(195px,calc((100vh - 150px)/4))}
  .art-stage{grid-template-columns:44px minmax(0,1fr) 44px}
}

.result-dialog{max-height:96dvh;overflow:auto}.result-dialog .payment-handoff img{width:min(420px,68vw)}
