/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ========== Main style =========================================> */

:root
{
    --color-bg: black;
    --color-fg: #aaa;
    --grid-width: 200px;
}

:root
{
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
    font-size: 18px;
    background: var(--color-bg);
    color: var(--color-fg);
    line-height: 1.4;
}

@supports (font-variation-settings: normal)
{
    :root { font-family: InterVariable, sans-serif; }
}

h1
{
    font-size: 1.728rem;
    margin: 2rem 0px 2rem 0px;
}

h2
{
    font-size: 1.44rem;
    margin: 1.728rem 0px 1.728rem 0px;
}

h3
{
    font-size: 1.2rem;
    margin: 1.44rem 0px 1.44rem 0px;
}

a
{
    color: var(--color-fg);
    text-decoration: none;
}

nav
{
    text-align: center;
    margin: 32px 0 32px 0;
}

nav svg
{
    position: relative;
    top: 0.1rem;
}

#AlbumContent
{
    text-align: center;
}

a:hover
{
    color: var(--color-bg);
    background-color: var(--color-fg);
}

.ItemList
{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 2rem 0;
}

.ItemList > li
{
    width: var(--grid-width);
}

.AlbumLink > figcaption
{
    margin: 0.5rem 0 0.5rem 0;
}

#PhotoContent
{
    text-align: center;
}

#PhotoContent > figure
{
    /* These are nesseary to make the metadata the same width as the
       image. */
    position: relative;
    display: inline-block;
}

#PhotoContent > figure > img
{
    display: inline-block;
    max-width: 100vw;
}


#PhotoContent > figure > #Metadata
{
    text-align: initial;
    position: absolute;
    left: 0;
    right: 0;
}

#MetadataTable
{
    border-spacing: 0.3rem 0.7rem;
    border-collapse: separate;
    margin-top: 2rem;
}

@media screen and (min-width: 512px) {
    #MetadataTable
    {
        float: right;
    }
}

#MetadataTable tr
{
    min-height: 100px;
}

.Icon
{
    background-color: var(--color-fg);
    mask-position: center right;
    mask-size: 1.2rem 1.2rem;
    mask-repeat: no-repeat;
    min-width: 1.2rem;
    min-height: 1.2rem;
}
