/* TrackCam gallery – styling aligned with the historical WebTruck site.
   Scope all visual changes to the gallery; do not modify the site's global stylesheet. */
*{box-sizing:border-box}
:root{--wt-blue:#28629a;--wt-red:#b82727;--wt-olive:#a3a58c;--wt-cream:#f7f7df;--wt-text:#181818;--wt-line:#b6b6b6}
body{margin:0;color:var(--wt-text);background:#fff;font:13px Arial,Helvetica,sans-serif}
a{color:var(--wt-blue)}a:hover{color:var(--wt-red)}
header{background:var(--wt-cream);color:#111;border:0;padding:0;min-height:0}
.masthead{min-height:26px;padding:2px 5px;display:flex;align-items:center;gap:18px}
.masthead .brand{font-size:16px;font-weight:bold;color:#111;text-decoration:none;flex:1}
.masthead .moving{font-weight:bold;color:var(--wt-red);font-size:11px;flex:1;text-align:center;text-decoration:none}
.masthead .mastnav{flex:2;justify-content:flex-end}
.masthead .mastnav a{color:#252525}
.statusbar{height:13px;background:var(--wt-olive);border-top:1px solid #969982}

header a{color:#252525;text-decoration:none}header a:hover{color:var(--wt-red);text-decoration:underline}
header nav{display:flex;gap:9px;align-items:center;justify-content:flex-end;flex-wrap:wrap}


main{max-width:1020px;margin:18px auto;padding:0 18px;min-height:300px}
h1{font-size:19px;margin:8px 0 18px;font-weight:700;color:#111}h2{font-size:17px}
.gallery-nav{margin:8px 0 14px}.gallery-nav .dot{color:#888;padding:0 5px}.intro{margin:6px 0 14px}
.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:12px 0 16px}
.toolbar label{font-weight:normal}.toolbar small{color:#666;font-size:11px}
select,input,button{font:inherit;padding:5px 7px;border:1px solid #aeb0a6;border-radius:0;background:#fff;color:#161616}
input{width:235px;max-width:100%}button{cursor:pointer}button:hover{background:var(--wt-cream)}button.current{background:var(--wt-olive);color:#fff;border-color:#848671}
.years{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}.years button{min-width:49px}
.result-count{color:#555}
/* fixed cards: a single matching search result is the same size as a full gallery card */
.grid{display:grid;grid-template-columns:repeat(auto-fill,195px);gap:12px;justify-content:start;align-items:start}
.tile{width:195px;max-width:100%;background:#fff;border:1px solid #d7d7d7;overflow:hidden}
.tile img{display:block;width:100%;aspect-ratio:2/1;object-fit:cover;background:#ddd}
.tile .details{padding:6px 5px 7px}.tile a{text-decoration:none}.tile a:hover strong{text-decoration:underline;color:var(--wt-red)}
.tile strong{display:block;font-weight:normal;color:var(--wt-blue)}
.pager{display:flex;align-items:center;gap:13px;margin:16px 0;flex-wrap:wrap}.muted{color:#8b8b8b}
.viewer{height:min(73vh,690px);width:100%;background:#151515;border:0;display:block}
.viewer-wrap{background:#fff;border:1px solid var(--wt-line);padding:6px}
.notice{padding:10px 12px;border-left:3px solid var(--wt-olive);background:var(--wt-cream);margin:14px 0}
footer{max-width:1020px;margin:24px auto;padding:14px 18px;color:#777;font-size:11px;border-top:1px solid var(--wt-line)}
.crumb{margin:15px 0;color:#666}.detail-pager{padding-bottom:8px}.hidden{display:none}
@media(max-width:500px){.masthead{flex-wrap:wrap}.masthead .brand,.masthead .moving{flex:0 0 auto}.masthead .mastnav{flex:1 0 100%;justify-content:flex-start}header nav{justify-content:flex-start}main{padding:0 12px;margin:12px auto}.grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}.tile{width:100%}h1{font-size:18px}}


/* Independent old-style panorama gallery. Consecutive JPEGs touch with zero gaps.
   The native image ratio is preserved; the row scrolls instead of wrapping. */
.tiled-years,.tiled-months{margin:14px 0;line-height:1.8}
.tiled-list{max-width:1050px}
.tiled-entry{border-bottom:1px solid #a7a99a;padding:10px 0 15px}
.tiled-entry h2{font-size:16px;margin:0 0 10px}
.tiled-strip,.tiled-seven{
  display:flex;
  flex-wrap:nowrap;
  align-items:flex-start;
  justify-content:flex-start;
  gap:0;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:0;
  margin:0;
}
.tiled-strip a,.tiled-seven a{
  display:block;
  flex:0 0 auto;
  width:auto;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  text-decoration:none;
  line-height:0;
}
.tiled-strip img,.tiled-seven img{
  display:block;
  width:auto;
  max-width:none;
  object-fit:unset;
  aspect-ratio:auto;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  vertical-align:top;
}
.tiled-strip img{height:100px}
.tiled-seven img{height:245px}
.tiled-seven{margin:12px 0 20px}
.tiled-single img{display:block;max-width:100%;height:auto}
@media(max-width:650px){
  .tiled-strip img{height:85px}
  .tiled-seven img{height:190px}
}

/* Classic WebTruck masthead, including original top navigation and search. */
.wt-header .masthead{display:grid;grid-template-columns:minmax(90px,1fr) minmax(90px,1fr) auto;gap:10px;min-height:26px;padding:2px 5px;align-items:center}
.wt-header .brand,.wt-header .moving{flex:initial}
.wt-header .moving{text-align:center}
.wt-header .header-right{display:flex;align-items:center;justify-content:flex-end;gap:4px}
.wt-header .mastnav{display:flex;flex:initial;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap}
.wt-header .site-search{display:flex;align-items:center;gap:1px;margin:0}
.wt-header .site-search input{width:115px;min-width:0;height:17px;padding:0 2px;border:1px solid #999;font-size:11px;background:#fff}
.wt-header .site-search button{border:0;border-radius:50%;width:20px;height:20px;padding:0;background:#283996;color:#fff;font-weight:bold;font-size:10px;line-height:20px;text-align:center}
@media(max-width:900px){.wt-header .masthead{grid-template-columns:auto 1fr}.wt-header .moving{text-align:right}.wt-header .header-right{grid-column:1 / -1;flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:500px){.wt-header .header-right{justify-content:flex-start}.wt-header .mastnav{flex-wrap:wrap;justify-content:flex-start;white-space:normal}}
