html {
    height: 100%;
}

body {
    background-color: #1a1d20;
    font-family: 'Varela Round', sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main {
    color: #c4c8cb;
}

div.container {
    margin-top: 0.5em;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}
.nav-link {
    color: #c4c8cb;
}
.nav-link:hover {
    color: azure;
}

div.frontpage-logo {
    margin-top: 15em;
}

div.frontpage-name {
    margin-top: 0.2em;
}

a {
    color: #c4c8cb;
    text-decoration: none;
}

a:hover {
    color: azure;
    text-decoration: none;
}

div.sub-album-wrapper {
    display: flex;
    flex-wrap: wrap;
    background-color: #2b3035;
    padding: 1em;
    border-radius: 10px;
    /*margin-bottom: 2em;*/
    max-width: 1200px;
    /*justify-content: space-around;*/
    margin: 0 auto 10px;
}

div.sub-album-item {
    background-color: rgba(94, 99, 115, 0.4);
    /*width: 170px;*/
    border: 0 solid #0a53be;
    margin: 10px 10px 10px 0;
    padding: 10px;
    border-radius: 10px;
    min-width: 130px;
    text-align: center;
}

div.sub-album-item h2 {
    margin-top: 0.2em;
    margin-bottom: 0;
    font-size: 1.3em;
}
div.sub-album-item h2 span, div.sub-album-item span  {
    font-size: 0.6em;
}

div.sub-album-item span {
    color: #b4b8bb;
}

div.sub-album-item span:hover {
    color: #c4c8cb;
}
div.album-wrapper, div.taxonomy-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #2b3035;
    padding: 1em;
    border-radius: 10px;
    /*margin-bottom: 2em;*/
    margin: 0 auto;
    max-width: 1200px;
}

div.album-item, div.term-item {
    /*background-color: rgba(94, 99, 115, 0.4);*/
    /*width: 200px;*/
    border: 0 solid #0a53be;
    /*margin-top: 10px;*/
    /*margin-bottom: 10px;*/
    padding: 0;
    /*border-radius: 10px;*/
    /*min-width: 130px;*/
    text-align: center;
}
div.album-item > div, div.term-item > div {

    margin: 0 auto;
}

div.album-item a, div.term-item a {
    position: relative;
}

div.album-item a span, div.term-item a span {
    display: none;
    position: absolute;
    bottom: -116px;
    width: 100%;
    padding: 10px;
    background: rgba(67,67,67,.8);
}

div.album-item a:hover span, div.term-item a:hover span {
    display: block
}

h1 {
    margin-top: 1em;
}

h1.picture-title::before, span.taxonomy-keyword::before {
    content: "“";
}

h1.picture-title::after, span.taxonomy-keyword::after {
    content: "”";
}

div.image-large {
    /*margin: 0 auto;*/
}
div.image-large {
    margin: 0 auto;
    max-width: 1500px;
    text-align: center;
}

div.image-large a.tag-btn {
    margin-bottom: 2px;
}

div.image-large figure img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

div.image-large figcaption {
    margin-top: 1em;
    margin-bottom: 3em;
}
dl.info-group {
    display: flex;
    flex-flow: row wrap;
    /*border: solid #333;*/
    border-width: 1px 1px 0 0;
}
dl.info-group dt {
    flex-basis: 20%;
    padding: 2px 4px;
    /*background: #333;*/
    text-align: right;
    /*color: #fff;*/
    margin-bottom: 0.3em;
    margin-right: 0.3em;
}
dl.info-group dd {
    flex-basis: 70%;
    flex-grow: 1;
    margin: 0;
    padding: 2px 4px;
    text-align: left;
    /*border-bottom: 1px solid #333;*/
    margin-bottom: 0.6em;
}
dl.info-group dd span {
    margin-right: 1em;
}

ul.cloud {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    line-height: 2.5rem;
}

ul.cloud a[data-weight="1"] { --size: 1; }
ul.cloud a[data-weight="2"] { --size: 2; }
ul.cloud a[data-weight="3"] { --size: 3; }
ul.cloud a[data-weight="4"] { --size: 4; }
ul.cloud a[data-weight="5"] { --size: 5; }
ul.cloud a[data-weight="6"] { --size: 6; }
ul.cloud a[data-weight="7"] { --size: 7; }
ul.cloud a[data-weight="8"] { --size: 8; }
ul.cloud a[data-weight="9"] { --size: 9; }

ul.cloud a {
    /*color: #a33;*/
    display: block;
    /*font-size: 1.5rem;*/
    padding: 0.125rem 0.25rem;
    text-decoration: none;
    position: relative;
    --size: 4;
    font-size: calc(var(--size) * 0.25rem + 0.5rem);
    opacity: calc((15 - (9 - var(--size))) / 15);
}

ul.cloud li[data-show-value] a::after {
    content: " (" attr(data-count) ")";
    font-size: 1rem;
}

div.taxonomy-year, div.taxonomy-equipment {
    text-align: center;
    margin: 0 auto;
}

div.taxonomy-year h2 {
    font-size: 3rem;
}

footer {
    color: #c4c8cb;
    padding: 20px;
}

.discreet {
    color: #6c757d;
}

@media (max-width: 768px) {
    .image-large {
        padding: 0 1em;
    }

    .image-large figure img {
        width: 100vw;
        max-width: 100vw;
        height: auto;
        image-rendering: auto;
        object-fit: contain;
    }

    dl.info-group dt,
    dl.info-group dd {
        flex-basis: 100%;
        text-align: left;
    }

    dl.info-group {
        flex-direction: column;
        padding: 0;
    }
}

.navbar-dark-custom {
    background-color: #1a1d20;
}

.navbar-dark-custom .navbar-nav .nav-link,
.navbar-dark-custom .navbar-brand {
    color: #c4c8cb;
}

.navbar-dark-custom .navbar-nav .nav-link:hover,
.navbar-dark-custom .navbar-brand:hover {
    color: #ffffff;
}

.navbar-dark-custom .navbar-toggler {
    border-color: #c4c8cb;
}

.navbar-dark-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23c4c8cb' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-dark-custom .nav-link i {
    stroke: #c4c8cb;
}

#breadcrumbs, #breadcrumbs a {color: #6c757d; text-decoration: none;}
#breadcrumbs a:hover {color: azure;}
#breadcrumbs {position: relative; z-index: 2; margin: 0;}
#breadcrumbs li {list-style: none; display: inline;}
#breadcrumbs li::before {content: "/"; display: inline-block; margin: 0 0.25rem;}
#breadcrumbs li:first-child:before {content: none;}

div.pn-nav-wrapper {
    position: relative;
}
.pn-link {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 4em;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.pn-nav-wrapper:hover .pn-link {
    opacity: 1;
}

.pn-left {
    left: 0;
    background: rgba(0, 0, 0, 0);
    justify-content: left;
}

.pn-right {
    right: 0;
    background: rgba(0, 0, 0, 0);
    justify-content: right;
}

.pn-link svg {
    height: 50px;
    width: 50px;
}

@media (hover: none) {
    .pn-nav-wrapper:hover, .pn-link, .pn-link svg {
        opacity: 0;
    }
}
