/* ===========================================================
   FACEBOOK PHOTO VIEWER
===========================================================*/

body{
    background:#f0f2f5;
}

/* Main layout */

.viewer-card{

    background:#000;

    border-radius:16px;

    overflow:hidden;

    display:flex;

    flex-direction:column;

    height:calc(100vh - 70px);

}

/*============================================================
 HEADER
============================================================*/

.viewer-header{

    height:65px;

    background:#111;

    color:#fff;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 20px;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.viewer-header .btn{

    border:none;

    background:rgba(255,255,255,.08);

    color:#fff;

}

.viewer-header .btn:hover{

    background:rgba(255,255,255,.15);

}

/*============================================================
 IMAGE AREA
============================================================*/

.viewer-image-area{

    flex:1;

    position:relative;

    background:#000;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

}

/* Main image */

.viewer-image{

    max-width:100%;

    max-height:100%;

    object-fit:contain;

    user-select:none;

    -webkit-user-drag:none;

}

/*============================================================
 NAVIGATION
============================================================*/

.viewer-nav{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:52px;

    height:52px;

    border-radius:50%;

    border:none;

    background:rgba(255,255,255,.20);

    backdrop-filter:blur(6px);

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:26px;

    cursor:pointer;

    transition:.25s;

    z-index:10;

}

.viewer-nav:hover{

    background:rgba(255,255,255,.35);

}

.viewer-nav.prev{

    left:25px;

}

.viewer-nav.next{

    right:25px;

}

/*============================================================
 FOOTER
============================================================*/

.viewer-footer{

    background:#111;

    padding:18px;

    color:#fff;

}

.image-counter{

    text-align:center;

    margin-bottom:12px;

    font-size:14px;

    color:#ccc;

}

/*============================================================
 THUMBNAILS
============================================================*/

.thumbnail-wrapper{

    display:flex;

    gap:12px;

    overflow-x:auto;

    padding-bottom:5px;

}

.thumbnail-wrapper::-webkit-scrollbar{

    height:7px;

}

.thumbnail-wrapper::-webkit-scrollbar-thumb{

    background:#444;

    border-radius:20px;

}

.thumb-image{

    width:95px;

    height:70px;

    object-fit:cover;

    border-radius:10px;

    cursor:pointer;

    opacity:.55;

    transition:.25s;

    border:3px solid transparent;

}

.thumb-image:hover{

    opacity:1;

}

.thumb-image.active{

    opacity:1;

    border-color:#1877f2;

}

/*============================================================
 RIGHT PANEL
============================================================*/

.detail-card{

    height:calc(100vh - 70px);

    display:flex;

    flex-direction:column;

    background:#fff;

    border-radius:16px;

    overflow:hidden;

}

.detail-card hr{

    margin:15px 0;

}

.avatar{

    width:48px;

    height:48px;

    border-radius:50%;

    background:#1877f2;

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:22px;

    margin-right:12px;

}

/*============================================================
 REACTION
============================================================*/

.reaction-preview{

    font-size:22px;

}

.detail-card button{

    border-radius:10px;

}

.detail-card button:hover{

    background:#e4e6eb;

}

/*============================================================
 COMMENTS
============================================================*/

.comments-wrapper{

    flex:1;

    overflow-y:auto;

    padding-right:8px;

}

.comments-wrapper::-webkit-scrollbar{

    width:8px;

}

.comments-wrapper::-webkit-scrollbar-thumb{

    background:#ccc;

    border-radius:20px;

}

/*============================================================
 COMMENT BOX
============================================================*/

.input-group{

    position:sticky;

    bottom:0;

    background:#fff;

    padding-top:10px;

}

/*============================================================
 RESPONSIVE
============================================================*/

@media(max-width:991px){

    .viewer-card{

        height:auto;

    }

    .viewer-image-area{

        height:60vh;

    }

    .detail-card{

        height:auto;

        margin-top:20px;

    }

}