:root{
    --page-bg:#f3f4f6;
    --image-bg:#ffffff;
    --text:#333333;
    --accent:#2b7cff;
}

body{
    margin:0;
    background:var(--page-bg);
    color:var(--text);
    font-family:Arial,Helvetica,sans-serif;
}

.top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:6px 18px 8px;
    max-width:1200px;
    margin:auto;
}

#c{
    font-weight:bold;
}

button{
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:#fff;
    color:#555;
    font-size:18px;
    cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,.18);
    transition:.2s;
}

button:hover{
    background:var(--accent);
    color:#fff;
}

#main{
    display:block;
    width:min(96vw,1200px);
    max-height:75vh;
    height:auto;
    object-fit:contain;
    margin:auto;
    background:var(--image-bg);
    border-radius:10px;
    box-shadow:0 4px 14px rgba(0,0,0,.18);
}

#title{
    max-width:1000px;
    margin:8px auto 8px;
    padding:0 20px;
    text-align:center;
    font-size:padding:6px 14px 10px;16px;
    line-height:1.45;
    color:var(--text);
    display:none;
}

#thumbs{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:4px 14px 6px;
    justify-content:flex-start;
}

#thumbs img{
    height:72px;
    cursor:pointer;
    opacity:.65;
    border-radius:6px;
    transition:transform .2s,opacity .2s;
}

#thumbs img:hover{
    transform:scale(1.05);
    opacity:1;
}

#thumbs img.active{
    opacity:1;
    outline:3px solid var(--accent);
}