/* =========================
   Image Detail
========================= */


/* comments */

.comment-box{
    margin-top:20px;
}


.comment-input{

    width:100%;

    padding:12px;

    border-radius:12px;

    border:1px solid #555;

    background:#111;

    color:white;

    box-sizing:border-box;

    font-size:16px;

}


.comment-text{

    height:120px;

    resize:none;

    margin-top:10px;

}


.comment-btn{

    margin-top:10px;

    padding:12px 25px;

    border-radius:20px;

    border:none;

    background:#ff66cc;

    color:white;

    font-weight:bold;

    cursor:pointer;

}


.comment-card{

    background:#222;

    border:1px solid #444;

    border-radius:15px;

    padding:15px;

    margin-top:12px;

}


.comment-name{

    color:#ff66cc;

    font-weight:bold;

}


.comment-date{

    font-size:12px;

    color:#aaa;

}


.comment-profile-image{

    width:32px;

    height:32px;

    border-radius:50%;

    object-fit:cover;

    vertical-align:middle;

    margin-right:8px;

}


.comment-user-link {

    color:inherit;

    text-decoration:none;

    display:inline-flex;

    align-items:center;

    gap:8px;

}


.comment-user-link:hover {

    opacity:.8;

}


/* image delete */

.image-delete-btn{

}


.image-delete-btn:hover{

}



.translation-container{
    position:relative;
    display:inline-block;
    max-width:100%;
}


#translationLayer{
    position:absolute;
    inset:0;
    pointer-events:auto;
    z-index:10;
}


.translation-note-box{
    position:absolute;
    border:2px solid #ff66cc;
    background:rgba(255,102,204,0.15);
    color:white;
    padding:5px;
    font-size:14px;
    border-radius:6px;
    pointer-events:auto;
}




#translationLayer{
    position:absolute;
    inset:0;
}




.translation-form{

    position:absolute;

    z-index:999;

    background:white;

    padding:10px;

    border-radius:10px;

    box-shadow:0 5px 20px rgba(0,0,0,.3);

    width:220px;

}


.translation-form textarea{

    width:100%;

    height:60px;

    margin-bottom:8px;

}


.translation-form button{

    width:100%;

    padding:8px;

}



.saved-translation{

    position:absolute;

    background:rgba(255,255,255,0.35);

    backdrop-filter:blur(2px);

    padding:8px;

    border-radius:8px;

    border:1px solid rgba(255,102,204,0.5);

    font-weight:bold;

    color:#111;

    text-shadow:
        0 1px 2px white,
        0 0 3px white;

    z-index:20;

    overflow:hidden;

}



.saved-translation{

    position:absolute;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;


    background:rgba(255,255,255,0.45);

    backdrop-filter:blur(1px);


    padding:8px;


    border-radius:40%;


    border:2px solid rgba(0,0,0,0.15);


    color:#111;


    font-weight:bold;


    line-height:1.3;


    word-break:break-word;


    text-shadow:
        0 1px 2px white,
        0 0 4px white;


    z-index:20;


    overflow:hidden;


    box-sizing:border-box;


}


.saved-translation:hover{

    background:rgba(255,255,255,0.65);

}




.translation-editor{

    background:white;

    padding:15px;

    border-radius:12px;

    box-shadow:
    0 5px 20px rgba(0,0,0,.3);

    width:260px;

}


.translation-editor textarea{

    width:100%;

    height:80px;

}


.translation-editor input[type=range]{

    width:100%;

}


.translation-editor button{

    width:100%;

    margin-top:10px;

}



.translation-editor{

    position:absolute;

    left:10px;

    top:10px;

    z-index:3000;

    background:white;

    padding:12px;

    border-radius:10px;

    box-shadow:0 5px 20px rgba(0,0,0,.4);

    width:260px;

}


.translation-editor textarea{

    width:100%;

    height:80px;

    margin-bottom:10px;

}


.translation-editor input{

    width:100%;

}


.translation-editor button{

    width:100%;

    margin-top:10px;

    padding:8px;

}

