div.photoflex {
    display: flex;
    justify-content: center;
}

div.photoflex > div.figure {
    width: 80%;
}
div.photoflex > div.figure > img {
    width: 100%;
}

div.photoflex > div.inactivebutton {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    align-items: center;

    text-align: center;
    width: 2.5em;
}

div.photoflex > div.activebutton {
    display: flex;
    flex-direction: column;

    text-align: center;
    width: 2.5em;
}
div.photoflex > div.activebutton > a {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    align-items: center;
    flex: auto;

    color: inherit;
    text-decoration: inherit;
}
div.photoflex > div.activebutton > a:hover {
    background: #333;
}

body {
    background: black;
    color: white;
}

h2 > a {
    color: inherit;
    text-decoration: inherit;
}
h2 > a:hover {
    text-decoration: revert;
}
