/* Thumbnail buttons and the image viewer. */
button.shot{
    display: inline-block;
    position: relative;
    padding: 0;
    margin: 0.3em;
    border: 0.2em solid #000000;
    border-radius: 0.1em;
    background: #111;
    cursor: pointer;
}

button.shot img{display: block;}

button.shot.video::after{
    content: "\25B6";
    position: absolute;
    right: 0.3em;
    bottom: 0.3em;
    padding: 0.1em 0.5em;
    border-radius: 0.2em;
    background: #000000cc;
    color: #ffffff;
}

dialog#image_viewer{
    width: min(70em, 95vw);
    max-width: none;
    max-height: 95vh;
    padding: 0.4em;
    border: none;
    background: transparent;
    overflow: auto;
}

dialog#image_viewer::backdrop{background-color: #000000aa;}

dialog#image_viewer section{
    display: block;
    width: auto;
    margin: 0;
}

dialog#image_viewer h3{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5em;
}

dialog#image_viewer button{
    padding: 0.2em;
    border: none;
    background: none;
    cursor: pointer;
}

button#image_viewer_close img{
    width: 1.6em;
    height: 1.6em;
}

div#image_viewer_container{
    display: flex;
    align-items: center;
    gap: 0.5em;
}

div#image_viewer_container button img{width: 2em;}

div#image_viewer_media{
    flex: 1;
    min-width: 0;
    text-align: center;
}

div#image_viewer_media img, div#image_viewer_media video{
    max-width: 100%;
    max-height: 65vh;
}

@media screen and (max-width : 800px){
    div#image_viewer_container button img{width: 1.2em;}
}

/* The icons are black; show them in white over the blue box. */
dialog#image_viewer button img{filter: invert(1);}
