/* Toy Car Collection — photo viewer (shared by admin, public site and mobile app) */
.tcc-lb{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;background:rgba(10,12,18,.97);color:#fff;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.tcc-lb[hidden]{display:none}
.tcc-lb-head{display:flex;align-items:flex-start;gap:12px;padding:12px 14px}
.tcc-lb-titles{flex:1;min-width:0}
.tcc-lb-title{font-weight:700;font-size:16px;line-height:1.3}
.tcc-lb-sub{color:#b8bfcc;font-size:13px}
.tcc-lb-count{color:#b8bfcc;font-size:13px;white-space:nowrap;padding-top:2px}
.tcc-lb-btn{flex:0 0 auto;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;
  font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tcc-lb-btn:hover{background:rgba(255,255,255,.24)}
.tcc-lb-btn:disabled{opacity:.25;cursor:default}
.tcc-lb-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
.tcc-lb-scroll{width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:pan-y pinch-zoom}
.tcc-lb-img{max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in;user-select:none;-webkit-user-drag:none;background:#fff;border-radius:4px}
.tcc-lb.zoomed .tcc-lb-scroll{overflow:auto;display:block;touch-action:auto}
.tcc-lb.zoomed .tcc-lb-img{max-width:none;max-height:none;cursor:zoom-out;border-radius:0}
.tcc-lb-prev,.tcc-lb-next{position:absolute;top:50%;transform:translateY(-50%);z-index:2}
.tcc-lb-prev{left:10px} .tcc-lb-next{right:10px}
.tcc-lb.zoomed .tcc-lb-prev,.tcc-lb.zoomed .tcc-lb-next{display:none}
.tcc-lb-hint{text-align:center;color:#8d95a5;font-size:12px;padding:4px}
.tcc-lb-thumbs{display:flex;gap:8px;overflow-x:auto;padding:8px 14px 12px;justify-content:center}
.tcc-lb-thumbs button{flex:0 0 auto;padding:0;border:2px solid transparent;border-radius:6px;background:#fff;cursor:pointer;opacity:.6}
.tcc-lb-thumbs button.active{border-color:#ff5a4e;opacity:1}
.tcc-lb-thumbs img{display:block;width:60px;height:46px;object-fit:contain}
.tcc-lb-details{margin:0 auto;padding:4px 14px 12px;max-width:720px;width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 14px;font-size:13px}
.tcc-lb-details div{display:flex;flex-direction:column;border-top:1px solid rgba(255,255,255,.1);padding-top:4px}
.tcc-lb-details span{color:#8d95a5;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.tcc-lb-empty{color:#b8bfcc}
body.tcc-lb-open{overflow:hidden}
@media (max-width:600px){
  .tcc-lb-prev,.tcc-lb-next{width:34px;height:34px;font-size:18px}
  .tcc-lb-details{grid-template-columns:1fr 1fr}
}
