/* Keep desktop geometry consistent across all legacy page templates. */
@media (min-width: 861px) {
  #mainContainer { position: relative; box-shadow: none; overflow: visible; }
  #header { width: 861px !important; max-width: 861px !important; height: 248px; }
  #bodyContainer { display: grid; grid-template-columns: 312px 548px; }
  #bodyContainer > p, #bodyContainer > br, #bodyContainer > div[style*="clear:"] { display: none; }
  #artistImage { grid-column: 1; grid-row: 1; width: 312px; padding: 0; background: white; }
  #rightBody { grid-column: 2; grid-row: 1; width: 535px; padding: 0; }
  #artistTitle { width: 280px; margin: 0; }
  #mainBody { box-sizing: content-box; width: 515px; padding: 0 10px 0 13px; margin: -4px 0 5px; font-size: 11px; line-height: 14px; letter-spacing: 1px; }
  #artistLink, #leftArtistLink { position: absolute !important; width: 225px !important; margin: 20px 0 0 !important; z-index: 1; }
  #artistLink { top: 377px; left: 0; right: auto; }
  #leftArtistLink { top: 377px; left: 0; right: auto; }
  #artistLink object, #leftArtistLink object { width: 225px !important; height: 335px !important; }
  .airplaytext { margin: 0 20px 10px; font: 9px/14px Verdana, Arial, sans-serif; text-align: center; }
  #bodyContainer:has(> .jessy-api-music) { display: block; }
  #bodyContainer:has(> .jessy-api-music) > #artistImage { display: none; }
  #mainBody.jessy-api-music { box-sizing: border-box; width: 100%; margin: 0 auto; padding: 0 20px 25px; }
  .menu-panel { gap: 0; }
  .jessy-main-menu { flex: 1; min-width: 0; justify-content: space-between; }
  #navigator .jessy-menu-link { padding: 0 16px; }
  #siteFooter { clear: both; }
  #bodyContainer:has(#leftArtistLink), #bodyContainer:has(#artistLink) { min-height: 455px; }
}
@media (max-width: 860px) {
  #mainContainer, #header, #navigator, #bodyContainer { width: 100% !important; max-width: none !important; }
  #navigator { height: auto; }
  .menu-toggle { display: block; width: 100%; padding: 12px 16px; background: #101a24; border: 0; color: white; text-align: left; cursor: pointer; }
  .menu-panel { display: none; height: auto; padding: 8px 12px 12px; flex-direction: column; align-items: stretch; }
  .menu-panel.is-open { display: flex; }
  .jessy-main-menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  #navigator .jessy-menu-link { height: auto; min-height: 44px; padding: 10px; line-height: 1.4; }
  .jessy-social-menu { justify-content: center; }
  #bodyContainer { display: flex; flex-direction: column; }
  #bodyContainer > p, #bodyContainer > br, #bodyContainer > div[style*="clear:"] { display: none; }
  #artistImage, #rightBody { width: 100% !important; min-width: 0; padding: 16px !important; }
  #mainBody { width: 100%; box-sizing: border-box; }
  #artistImage:empty, #artistImage:not(:has(a, img, iframe, object, ruffle-object, ruffle-player)) { display: none; }
  .youtubevideo iframe { width: 100% !important; max-width: none !important; height: auto !important; aspect-ratio: 16/9; }
  .sidebar-elfsight-wrapper { width: 100% !important; max-width: none !important; }
  #artistLink, #leftArtistLink { display: block !important; position: static !important; width: 100% !important; margin: 16px 0 !important; }
  #artistLink object, #leftArtistLink object, #artistLink ruffle-object, #leftArtistLink ruffle-object { width: 100% !important; max-width: none !important; height: auto !important; aspect-ratio: 225/335; }
  #mainBody.gallery-page .clear-gallery-grid { grid-template-columns: repeat(auto-fit,minmax(100px,1fr)); gap: 12px; }
  #mainBody.gallery-page .clear-gallery-item, #mainBody.gallery-page .clear-gallery-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
  .contact-form-panel { margin-left: 0 !important; }
  #mainBody { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
  #mainBody.jessy-api-music { padding: 16px; margin: 0; }
  .jessy-release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jessy-spotify-after-text { grid-template-columns: 1fr; }
  #mainBody iframe[src*="youtube.com"] { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }
  #mainBody form, #mainBody form table, #mainBody form tbody, #mainBody form tr, #mainBody form td { display: block; width: 100%; max-width: 100%; box-sizing: border-box; }
  #mainBody form td { padding: 4px 0; }
  #mainBody input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), #mainBody textarea, #mainBody select { width: 100% !important; max-width: 100%; min-width: 0; box-sizing: border-box; font-size: 16px; }
  #mainBody input[type="radio"], #mainBody input[type="checkbox"] { width: auto; }
  #mainBody table { table-layout: fixed; }
  #json_news_feed td, #json_gigs_feed td { display: block; width: 100%; padding: 8px 0 !important; }
  #mainBody .g-recaptcha { max-width: 100%; overflow-x: auto; }
  #musicAd { height: auto; }
  #footer { height: auto; padding: 12px; }
}
@media (max-width: 380px) {
  .jessy-release-grid { grid-template-columns: 1fr; }
}
