/* CM Studio mobile V1B - gallery */
@media (max-width:760px) {
  header {padding:14px 16px;gap:8px 16px;}
  header .brand {display:inline-flex;align-items:center;min-height:44px;max-width:100%;overflow-wrap:anywhere;}
  header nav {flex:1 1 100%;min-width:0;flex-wrap:wrap;gap:4px 14px;align-items:center;}
  header nav a, header nav button {display:inline-flex;align-items:center;min-height:44px;max-width:100%;overflow-wrap:anywhere;}
  main {padding:30px 16px;min-width:0;}
  h1 {font-size:clamp(32px,8vw,50px);line-height:1.12;overflow-wrap:anywhere;}
  .filters {gap:12px;margin:22px 0;}
  .filters > * {min-width:0;max-width:100%;}
  .filters select {width:100%;min-width:0;min-height:44px;font-size:16px;}
  .grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0 28px;}
  .tile {min-width:0;}
  .copy {padding:14px;}
  .copy h3 {font-size:18px;line-height:1.35;}
  .copy p {font-size:15px;line-height:1.6;}
  dialog {box-sizing:border-box;width:calc(100% - 20px);max-width:none;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);padding:12px;overscroll-behavior:contain;}
  #close {min-width:44px;min-height:44px;}
  #view-media {min-width:0;}
  #view-media img,#view-media video {display:block;width:100%;max-height:65vh;max-height:65dvh;object-fit:contain;}
}
@media (max-width:520px) {
  .grid {grid-template-columns:minmax(0,1fr);}
  .filters {flex-direction:column;align-items:stretch;}
  .filters > * {width:100%;}
}
