/* Responsive layouts for the archive pages */
html,body{max-width:100%;overflow-x:hidden}
body:not([data-page="uvod"]) .canvas{width:100%;max-width:100%;margin:0 auto;overflow:visible}
body:not([data-page="uvod"]) main{position:relative;inset:auto}
/* Skicák and Typespotting: one row-major grid, preserving source proportions. */
body[data-page="skicak"] .canvas,body[data-page="typespotting"] .canvas{height:auto!important;min-height:100vh}
.sketch-grid,.typespotting-grid{position:relative!important;left:auto!important;top:auto!important;width:min(1296px,calc(100% - 48px))!important;margin:46px auto 80px;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;column-gap:24px;row-gap:24px;align-items:start}
.sketch-grid>img,.typespotting-grid>img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
@media(max-width:1199px){.sketch-grid,.typespotting-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:20px}}
@media(max-width:599px){.sketch-grid,.typespotting-grid{width:calc(100% - 40px)!important;margin-top:28px;grid-template-columns:minmax(0,1fr)!important;row-gap:20px}}
/* Projects: a fluid single column accordion. */
body[data-page="projekty"] .canvas{height:auto!important;min-height:100vh}
.project-list{position:relative!important;left:auto!important;top:auto!important;width:min(1296px,calc(100% - 48px))!important;margin:46px auto 80px}
.project-item{height:90px}
.project-trigger{height:89px;font-size:clamp(22px,2vw,30px)}
.project-item.is-open{height:auto;min-height:90px;padding-bottom:24px}
.project-item.is-open .project-panel{padding-top:90px}
.project-panel .project-image{width:auto;max-width:min(856px,100%);height:auto}
.font-project-specimen{width:min(856px,100%);max-width:100%;margin:0 auto 30px;padding:0 12px}
.font-project-sample{font-size:clamp(36px,6vw,76px)}
@media(max-width:599px){.project-list{width:calc(100% - 40px)!important;margin-top:28px}.project-item{height:76px}.project-trigger{height:75px}.project-item.is-open .project-panel{padding-top:76px}.project-panel .project-image{margin-top:16px}.font-project-name{font-size:20px}.font-project-sample{font-size:clamp(32px,9vw,48px)}}
/* Kinofilm: centered single column, naturally flowing images. */
body[data-page="kinofilm"] .canvas{height:auto!important;min-height:100vh}
body[data-page="kinofilm"] main{width:min(856px,calc(100% - 40px));margin:46px auto 80px;display:flex;flex-direction:column;gap:24px}
.kinofilm-photo{position:relative!important;left:auto!important;top:auto!important;display:block;width:100%!important;height:auto!important;max-width:100%;object-fit:contain}
@media(max-width:599px){body[data-page="kinofilm"] main{margin-top:28px;gap:16px}}
/* Playlist: consistent section spacing; rules align with the text column. */
body[data-page="playlist"] .canvas{height:auto!important;min-height:100vh;padding-bottom:60px}
body[data-page="playlist"] main{width:min(1296px,calc(100% - 48px));margin:46px auto 0;display:flex;flex-direction:column;align-items:stretch;gap:0}
body[data-page="playlist"] .rule{position:relative!important;left:auto!important;top:auto!important;width:100%!important;flex:0 0 1px;margin:24px 0}
body[data-page="playlist"] .rule:first-child{margin-top:0}
body[data-page="playlist"] .txt{position:relative!important;left:auto!important;top:auto!important;white-space:normal;line-height:23px;margin:0;font-size:18px!important;overflow-wrap:anywhere}
body[data-page="playlist"] .playlist-heading{margin:0 0 12px!important;font-weight:700}
@media(max-width:599px){
  body[data-page="playlist"] main{width:calc(100% - 40px);margin-top:28px}
  body[data-page="playlist"] .rule{margin:18px 0}
  body[data-page="playlist"] .rule:first-child{margin-top:0}
  body[data-page="playlist"] .txt{font-size:16px!important;line-height:22px}
  body[data-page="playlist"] .playlist-heading{margin-bottom:10px!important}
}
/* Čundry already uses a fluid content grid; keep the global nav in flow. */
body[data-page="cundry"] .canvas{height:auto!important;min-height:100vh}
body[data-page="cundry"] .cundry-main{margin-top:46px}
@media(max-width:599px){body[data-page="cundry"] .cundry-main{width:calc(100% - 32px);margin-top:28px}}
/* Final Playlist spacing correction: keep clear vertical air on both sides of separators. */
body[data-page="playlist"] .txt{line-height:23px;margin:0;font-size:18px!important}
body[data-page="playlist"] .playlist-heading{margin:0 0 0;font-weight:700}
body[data-page="playlist"] .rule{margin:24px 0!important}
body[data-page="playlist"] .rule:first-child{margin-top:0!important}
@media(max-width:599px){body[data-page="playlist"] .txt{font-size:16px!important;line-height:22px}body[data-page="playlist"] .rule{margin:18px 0!important}body[data-page="playlist"] .rule:first-child{margin-top:0!important}}

