/* =========================================================
   VANCE CEYLON — ADMIN WEBSITE MEDIA SLIDER
   Safe visual add-on. Does not replace admin.css.
   ========================================================= */

/* Make Website editor previews compact instead of huge. */
#websiteStudio .studio-preview:not(.vance-legacy-second-media){
  width:88px !important;
  height:88px !important;
  max-width:88px !important;
  max-height:88px !important;
  object-fit:cover !important;
  border-radius:12px !important;
  display:block;
  margin:10px 0 !important;
  background:#090909;
  border:1px solid rgba(255,255,255,.12);
}

#websiteStudio .studio-preview[hidden]{
  display:none !important;
}

#websiteStudio .vance-legacy-second-media{
  display:none !important;
}

.vance-slider-editor{
  margin:16px 0 6px;
  padding:16px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background:rgba(255,255,255,.025);
}

.vance-slider-editor-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.vance-slider-editor-head > div{
  display:grid;
  gap:4px;
}

.vance-slider-editor-head strong{
  font-size:15px;
}

.vance-slider-editor-head small,
.vance-slider-upload small{
  color:#999;
  line-height:1.45;
}

.vance-slider-count{
  flex:0 0 auto;
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  color:#ccc;
  font-size:12px;
}

.vance-slider-upload{
  position:relative;
  display:flex !important;
  align-items:center;
  gap:12px !important;
  padding:13px !important;
  border:1px dashed rgba(255,255,255,.24);
  border-radius:14px;
  cursor:pointer;
  background:rgba(255,255,255,.025);
}

.vance-slider-upload:hover{
  border-color:rgba(255,255,255,.46);
}

.vance-slider-upload > span:nth-child(2){
  display:grid;
  gap:3px;
}

.vance-slider-upload-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:10px;
  background:#fff;
  color:#111;
  font-size:24px;
  line-height:1;
}

.vance-slider-upload input{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  opacity:0 !important;
  cursor:pointer;
}

.vance-slider-status{
  min-height:18px;
  margin:11px 2px;
  color:#aaa;
  font-size:12px;
}

.vance-slider-status.is-error{
  color:#ffb3b3;
}

.vance-slider-thumbs{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:4px 2px 8px;
  scrollbar-width:thin;
}

.vance-slider-empty{
  width:100%;
  padding:16px;
  border-radius:12px;
  background:rgba(255,255,255,.025);
  color:#777;
  font-size:12px;
  text-align:center;
}

.vance-slider-thumb{
  position:relative;
  flex:0 0 104px;
  width:104px;
  padding:6px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:#0b0b0b;
}

.vance-slider-thumb-media{
  display:block;
  width:90px;
  height:90px;
  object-fit:cover;
  border-radius:9px;
  background:#050505;
}

.vance-slider-thumb-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  margin-top:6px;
  color:#aaa;
  font-size:9px;
}

.vance-slider-thumb-meta b{
  color:#fff;
  font-size:11px;
}

.vance-slider-thumb-actions{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:4px;
  margin-top:6px;
}

.vance-slider-thumb-actions button{
  min-height:27px !important;
  padding:0 !important;
  border-radius:7px !important;
  font-size:13px;
}

.vance-slider-thumb-actions button:disabled{
  opacity:.3;
  cursor:not-allowed;
}

.vance-slider-help{
  margin:10px 0 0 !important;
  font-size:11px;
  line-height:1.55;
}

@media (max-width:700px){
  .vance-slider-editor-head{
    align-items:center;
  }

  .vance-slider-upload{
    align-items:flex-start;
  }
}


/* Slider timing selector */
.vance-slider-timing{
  display:grid;
  gap:6px;
  margin:12px 0 4px;
  padding:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.02);
}

.vance-slider-timing label{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:12px !important;
}

.vance-slider-timing select{
  width:auto !important;
  min-width:130px;
}

.vance-slider-timing small{
  color:#888;
  line-height:1.45;
}

@media (max-width:700px){
  .vance-slider-timing label{
    align-items:flex-start;
    flex-direction:column;
  }

  .vance-slider-timing select{
    width:100% !important;
  }
}
