/* Keep the panorama's height independent of the project description. */
.modal-view iframe,.modal-view video{display:block}
@media(max-width:780px){
  .modal{padding:8px}
  .modal-card{height:calc(100vh - 16px);height:calc(100dvh - 16px);grid-template-rows:auto minmax(0,1fr)}
  .modal-head{gap:12px;padding:10px 14px}
  .modal-title{min-width:0}
  .modal-title small{font-size:10px}
  .modal-title strong{display:block;font-size:16px;line-height:1.3}
  .modal-close{flex:0 0 44px;width:44px;height:44px}
  .modal-body{display:block;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .modal-view{height:clamp(420px,68vh,620px);height:clamp(420px,68svh,620px);flex-shrink:0}
  .modal-info{overflow:visible;padding:24px 20px}
  .modal-info h3{font-size:30px}
}
@media(max-width:780px) and (max-height:500px){
  .modal-view{height:calc(100vh - 90px);height:calc(100svh - 90px);min-height:260px}
}
