/* =========================================================
   TRAIN MOBIL – Airbrush V60 Lightbox Match 1.0
   ========================================================= */

.tm-pa-lightbox{
  padding:26px 34px 24px !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(0,0,0,.93) !important;
}

.tm-pa-lightbox__panel{
  width:min(1420px,96vw);
  max-height:94vh;
  display:flex;
  flex-direction:column;
  background:#0b0e10;
  border:1px solid #20262a;
  box-shadow:0 24px 80px rgba(0,0,0,.55);
}

.tm-pa-lightbox__head{
  flex:0 0 auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:20px 22px 10px;
}

.tm-pa-lightbox__title{
  margin:0;
  color:#f5f5f3;
  font-size:18px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:.01em;
  text-transform:uppercase;
}

.tm-pa-lightbox__count{
  margin:4px 0 0 !important;
  color:#b9c0c4 !important;
  font-size:13px !important;
  line-height:1.3;
}

.tm-pa-lightbox__close{
  position:static !important;
  flex:0 0 auto;
  width:38px !important;
  height:38px !important;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 !important;
  border:0 !important;
  background:none !important;
  border-radius:0 !important;
  color:#fff !important;
  font-size:30px !important;
  line-height:1;
}

.tm-pa-lightbox__stage{
  position:relative;
  width:auto !important;
  height:auto !important;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:0 22px;
}

.tm-pa-lightbox__image-wrap{
  position:relative;
  width:100%;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.tm-pa-lightbox__image-wrap > img{
  width:auto !important;
  max-width:100% !important;
  max-height:calc(94vh - 190px) !important;
  object-fit:contain;
  display:block;
  margin:0 auto;
}

.tm-pa-lightbox__prev,
.tm-pa-lightbox__next{
  position:absolute !important;
  top:50% !important;
  transform:translateY(-50%);
  z-index:2;
  width:52px !important;
  height:72px !important;
  border:1px solid #2a3035 !important;
  background:rgba(8,10,12,.92) !important;
  color:#ffd000 !important;
  font-size:34px !important;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.tm-pa-lightbox__prev{left:-1px !important}
.tm-pa-lightbox__next{right:-1px !important}

.tm-pa-lightbox__prev[hidden],
.tm-pa-lightbox__next[hidden]{
  display:none !important;
}

.tm-pa-lightbox__thumbs{
  flex:0 0 auto;
  width:100%;
  display:flex;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:14px 22px 16px !important;
  margin:0 !important;
  scrollbar-width:thin;
  scrollbar-color:#4a5055 #111518;
  box-sizing:border-box;
}

.tm-pa-lightbox__thumbs button{
  flex:0 0 110px;
  width:110px !important;
  height:68px !important;
  padding:0 !important;
  border:2px solid transparent !important;
  background:#090b0d !important;
  overflow:hidden;
  cursor:pointer;
}

.tm-pa-lightbox__thumbs button img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.tm-pa-lightbox__thumbs button.active{
  border-color:#ffd000 !important;
}

.tm-pa-lightbox__thumbs button:hover{
  border-color:#8c9499 !important;
}

.tm-pa-lightbox__thumbs button.active:hover{
  border-color:#ffd000 !important;
}

body.tm-pa-lightbox-open{
  overflow:hidden;
}

@media(max-width:760px){
  .tm-pa-lightbox{
    padding:10px !important;
  }

  .tm-pa-lightbox__panel{
    width:100%;
    max-height:97vh;
  }

  .tm-pa-lightbox__head{
    padding:14px 14px 8px;
  }

  .tm-pa-lightbox__title{
    font-size:15px;
  }

  .tm-pa-lightbox__stage{
    padding:0 12px;
  }

  .tm-pa-lightbox__image-wrap > img{
    max-height:calc(97vh - 175px) !important;
  }

  .tm-pa-lightbox__prev,
  .tm-pa-lightbox__next{
    width:42px !important;
    height:60px !important;
    font-size:28px !important;
  }

  .tm-pa-lightbox__thumbs{
    padding:10px 14px 12px !important;
  }

  .tm-pa-lightbox__thumbs button{
    flex-basis:86px;
    width:86px !important;
    height:56px !important;
  }
}
