
/* ==========================================================
   FOCUS — GALERÍA FINAL
   Solo afecta las miniaturas del editor actual
   ========================================================== */

html body .caption-photo-thumb{
    position:relative!important;
    overflow:hidden!important;
    padding:0!important;

    border-radius:14px!important;
    border:1px solid rgba(70,108,220,.80)!important;

    background:#071747!important;
    isolation:isolate!important;

    opacity:1!important;
}

/* FOTO */
html body .caption-photo-thumb > img{
    position:absolute!important;
    inset:0!important;

    width:100%!important;
    height:100%!important;

    object-fit:cover!important;

    z-index:1!important;
    opacity:1!important;
}

/* ==========================================================
   DEGRADADO AZUL FOCUS
   transparente arriba -> azul intenso abajo
   ========================================================== */

html body .caption-photo-thumb::after{
    content:""!important;

    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:0!important;

    width:100%!important;
    height:76%!important;

    z-index:3!important;
    pointer-events:none!important;

    background:linear-gradient(
        to top,
        rgba(4,17,70,.98) 0%,
        rgba(5,20,77,.94) 18%,
        rgba(6,23,86,.78) 36%,
        rgba(7,26,92,.52) 52%,
        rgba(8,28,98,.22) 70%,
        rgba(8,28,98,0) 100%
    )!important;
}

/* ==========================================================
   NÚMERO — ARRIBA IZQUIERDA
   ========================================================== */

html body .caption-photo-thumb .thumb-index{
    position:absolute!important;

    top:10px!important;
    left:10px!important;
    right:auto!important;
    bottom:auto!important;

    z-index:20!important;

    width:38px!important;
    height:38px!important;

    display:grid!important;
    place-items:center!important;

    margin:0!important;
    padding:0!important;

    border-radius:10px!important;

    background:rgba(4,16,59,.91)!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;

    color:#fff!important;

    font-size:17px!important;
    font-weight:900!important;
    line-height:1!important;

    box-shadow:0 4px 12px rgba(0,0,0,.16)!important;
}

/* ==========================================================
   PESO — ABAJO IZQUIERDA
   ========================================================== */

html body .caption-photo-thumb .thumb-size{
    position:absolute!important;

    left:12px!important;
    bottom:12px!important;
    top:auto!important;
    right:auto!important;

    z-index:20!important;

    width:auto!important;
    height:38px!important;

    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;

    margin:0!important;
    padding:0!important;

    background:transparent!important;
    border:0!important;

    color:#fff!important;

    font-size:14px!important;
    font-weight:900!important;
    line-height:1!important;

    white-space:nowrap!important;

    text-shadow:
        0 2px 5px rgba(0,0,0,.95),
        0 0 10px rgba(0,0,0,.45)!important;
}

html body .caption-photo-thumb .thumb-size i{
    font-size:16px!important;
    line-height:1!important;
    color:#fff!important;
}

/* ==========================================================
   PAPELERA — ABAJO DERECHA
   ========================================================== */

html body .caption-photo-thumb .thumb-delete{
    position:absolute!important;

    right:10px!important;
    bottom:10px!important;
    left:auto!important;
    top:auto!important;

    z-index:21!important;

    width:42px!important;
    height:42px!important;

    display:grid!important;
    place-items:center!important;

    margin:0!important;
    padding:0!important;

    border:0!important;
    border-radius:11px!important;

    background:rgba(4,16,59,.92)!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;

    color:#fff!important;

    box-shadow:0 5px 14px rgba(0,0,0,.22)!important;

    cursor:pointer!important;
}

html body .caption-photo-thumb .thumb-delete i{
    font-size:20px!important;
    line-height:1!important;
    color:#fff!important;
}

html body .caption-photo-thumb .thumb-delete:hover{
    background:rgba(196,40,61,.96)!important;
}

/* ==========================================================
   FOTO SELECCIONADA
   ========================================================== */

html body .caption-photo-thumb.active{
    border:3px solid #d7ff18!important;

    box-shadow:
        0 0 0 1px rgba(215,255,24,.20),
        0 0 14px rgba(215,255,24,.10)!important;
}

/* Los controles deben quedar encima del degradado */
html body .caption-photo-thumb .thumb-index,
html body .caption-photo-thumb .thumb-size,
html body .caption-photo-thumb .thumb-delete{
    opacity:1!important;
    visibility:visible!important;
}
