.photo-gallery-section-head {
    margin-bottom: 0.5rem;
}

.photo-gallery-section-head::after {
    content: '';
    width: max(5rem, calc(100% - 5rem));
    border-bottom: 2pt solid var(--primary);
    position: relative;
    transform: translate(2.5rem, 0.25rem);
    display: block;
}

ol.photo-gallery-list {
    column-width: 240px;
    column-gap: 1rem;

    margin: 0;
    padding: 0;
    list-style: none;
}

.photo-gallery-list>li {
    list-style-type: none;
    break-inside: avoid;
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
}

ol.photo-gallery-list>li a {
    display: inline-block;
    opacity: 0;
    position: absolute;
    width: 100%;
    align-content: center;
    bottom: 0.5rem;
    left: 1.5rem;
    height: 3rem;
    background: var(--code-bg);
    border-radius: 0.5rem;
    padding-left: 1rem;
    transform: translateY(1rem);
    transition: 500ms ease-in-out;
    z-index: 99;
}

ol.photo-gallery-list>li a::after {
    content: '';
    position: absolute;
    width: calc(100% + 5rem);
    height: 5rem;
    transform: translate(-2.5rem, -2.5rem);
}

ol.photo-gallery-list>li a:hover {
    opacity: 1.0;
    transform: translateY(0);
}

@media (hover: none) and (pointer: coarse) {
    ol.photo-gallery-list>li a {
        opacity: 1;
        transform: translateY(0);
    }

    ol.photo-gallery-list>li a::after {
        display: none;
    }
}

ol.photo-gallery-list>li .hint::before {
    content: "⟪";
    position: absolute;
    pointer-events: none;
    bottom: 0%;
    left: 50%;
    transform: rotate(90deg);
}

ol.photo-gallery-list>li .hint {
    opacity: 1.0;
}

ol.photo-gallery-list>li a:hover~.hint::before {
    opacity: 0.0;
    transition: 200ms ease-in-out;
}

ol.photo-gallery-list>li>img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.license-attribution>img {
    display: inline-block;
    height: 1.5rem;
    vertical-align: text-bottom;
}

.license-attribution {
    font-style: italic;
}

.image-metadata>summary {
    display: block;
}

.image-metadata>summary h2 {
    display: inline-block;
}

.image-metadata>summary::before {
    content: '+';
    display: inline-block;
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: bold;
    vertical-align: baseline;
    padding: 2px;
    margin-left: -0.5rem;
}

.image-metadata[open]>summary::before {
    content: "-"
}

.image-metadata-table td {
    padding: 1rem;
}

.image-metadata-table th:after {
    content: '';
    width: calc(100% + 1rem);
    border-bottom: 2pt solid var(--primary);
    position: relative;
    transform: translate(-0.5rem, 0.25rem);
    display: block;
}

.image-metadata-table td:after {
    content: '';
    width: calc(100% + 0.5rem);
    border-bottom: 1.5pt dotted var(--primary);
    position: relative;
    transform: translate(-0.25rem, 0.25rem);
    display: block;
}


.image-metadata-table th {
    padding: 1rem;
    padding-left: 1.5rem;
    text-align: left;
}

.photo-gallery-single {
    width: 100%;
    display: grid;
    justify-items: center;
}