/* Responsive fixes on top of the canvas page styles */
html{-webkit-text-size-adjust:100%}
img,video{max-width:100%}
a[href^="mailto"]{overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}
#top h1 + *{max-width:100%}

@media (max-width: 1100px){
  /* hero: text above, proof cards below */
  #top{grid-template-columns:1fr !important}
}
@media (max-width: 760px){
  /* fixed two-column layouts stack */
  #site [style*="grid-template-columns: 1fr 6"],
  #site [style*="grid-template-columns: 1fr 5"],
  #site [style*="grid-template-columns: 1.1fr"],
  #site [style*="grid-template-columns: 1fr 1.1fr"],
  #site [style*="grid-template-columns: 1fr 1fr"]{grid-template-columns:1fr !important}
  /* galleries with a fixed number of columns become two per row */
  #site :not([aria-hidden="true"])[style*="grid-template-columns: repeat(3"],
  #site :not([aria-hidden="true"])[style*="grid-template-columns: repeat(4"],
  #site :not([aria-hidden="true"])[style*="grid-template-columns: repeat(5"],
  #site :not([aria-hidden="true"])[style*="grid-template-columns: repeat(6"],
  #site :not([aria-hidden="true"])[style*="grid-template-columns: repeat(7"]{grid-template-columns:repeat(2, minmax(0, 1fr)) !important}
  #top h1{font-size:44px !important}
  #top{padding-top:24px !important;padding-bottom:48px !important}
  #top [style*="grid-template-rows: 290px"]{grid-template-rows:240px 240px !important}
  .curA,.curB,.curC{display:none !important}
}
#site [style*="display: grid"] > *{min-width:0}
#site [style*="flex: 1 1"],#site [style*="flex: 2 1"]{min-width:0;max-width:100%}
@media (max-width: 760px){
  #site [style*="bottom: -56px; right: -28px"]{right:-8px !important}
}

/* case covers are laid out for desktop: shrink them as one picture on small screens */
@media (min-width: 0px) and (max-width: 359px){#site [style^="position: relative; height: 640px"], #site [style^="position: relative; height: 760px"], #site [style^="position: relative; height: 820px"], #site [style^="position: relative; height: 900px"]{width:1248px;zoom:0.23}}
@media (min-width: 360px) and (max-width: 399px){#site [style^="position: relative; height: 640px"], #site [style^="position: relative; height: 760px"], #site [style^="position: relative; height: 820px"], #site [style^="position: relative; height: 900px"]{width:1248px;zoom:0.26}}
@media (min-width: 400px) and (max-width: 439px){#site [style^="position: relative; height: 640px"], #site [style^="position: relative; height: 760px"], #site [style^="position: relative; height: 820px"], #site [style^="position: relative; height: 900px"]{width:1248px;zoom:0.29}}
@media (min-width: 440px) and (max-width: 519px){#site [style^="position: relative; height: 640px"], #site [style^="position: relative; height: 760px"], #site [style^="position: relative; height: 820px"], #site [style^="position: relative; height: 900px"]{width:1248px;zoom:0.32}}
@media (min-width: 520px) and (max-width: 599px){#site [style^="position: relative; height: 640px"], #site [style^="position: relative; height: 760px"], #site [style^="position: relative; height: 820px"], #site [style^="position: relative; height: 900px"]{width:1248px;zoom:0.38}}
@media (min-width: 600px) and (max-width: 679px){#site [style^="position: relative; height: 640px"], #site [style^="position: relative; height: 760px"], #site [style^="position: relative; height: 820px"], #site [style^="position: relative; height: 900px"]{width:1248px;zoom:0.44}}
@media (min-width: 680px) and (max-width: 760px){#site [style^="position: relative; height: 640px"], #site [style^="position: relative; height: 760px"], #site [style^="position: relative; height: 820px"], #site [style^="position: relative; height: 900px"]{width:1248px;zoom:0.5}}
@media (max-width: 760px){
  #top [style*="left: 18px; bottom: 18px"]{left:8px !important;bottom:8px !important;padding:6px 8px !important}
  #top [style*="left: 18px; bottom: 18px"] strong{font-size:13px !important}
  #top [style*="left: 18px; bottom: 18px"] span{display:none}
}
#site [style*="display: flex; gap: 14px; align-items: baseline"]{flex-wrap:wrap}
@media (max-width: 1100px){#site [style*="bottom: -56px; right: -28px"]{right:-6px !important}}
