.photo-metadata {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    background: #f8f9fa;
    color: #212529;
    font-size: 0.9em;
}

.photo-location-map {
    margin: 1rem 0;
    border-radius: 4px;
    background: #f8f9fa;
    color: #212529;

    summary {
        padding: 0.75rem 1rem;
        cursor: pointer;
        font-weight: bold;
    }

    figure {
        margin: 0;
        padding: 0 1rem 1rem;
    }

    iframe {
        display: block;
        width: 100%;
        height: 18rem;
        border: 1px solid var(--light_gray);
        border-radius: 4px;
    }

    figcaption {
        margin-top: 0.5rem;
        font-size: 0.9em;
        text-align: right;
    }
}

.photo-sets {
    margin-block: 2rem;

    ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem 1.5rem;
        padding: 0;
        list-style: none;
    }
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin-block: 2rem;
}

.photos-grid__item {
    margin: 0;

    a {
        display: block;
    }

    img {
        display: block;
        width: 100%;
        height: auto;
    }

    h2 {
        margin-top: 0.5rem;
        font-size: 1.17em;
    }
}

.photo-stage {
    position: relative;
    max-width: 100%;
    margin-block: 2rem;
    margin-inline: 0;
}

.photo-stage__open {
    position: relative;
    display: block;
    cursor: zoom-in;
}

.photo-stage__image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    max-height: 80dvh;
    width: auto;
    height: auto;
    margin-inline: auto;
}

.photo-full-page {
    margin: 0;
    background: #181818;
}

.photo-full {
    display: grid;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
}

.photo-full__close {
    display: grid;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    place-items: center;
    cursor: zoom-out;
}

.photo-full__image {
    display: block;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.photo-full__empty {
    color: white;
}

@media(prefers-color-scheme: dark) {
    .photo-metadata,
    .photo-location-map {
        background: #212529;
        color: #f8f9fa;
    }
}
