.photo-link {
    cursor: zoom-in;
}
.photo-link:focus-visible {
    outline: 3px solid #d8ad25;
    outline-offset: 4px;
}
.photo-hero {
    display: block;
}
.photo-hero img {
    display: block;
    width: 100%;
    height: auto;
}
html.photo-viewer-open {
    overflow: hidden;
}
.photo-viewer {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
    border: 0;
    background: rgba(15, 23, 29, 0.97);
    color: #fff;
    font:
        16px/1.5 Arial,
        sans-serif;
}
.photo-viewer[open] {
    display: flex;
    flex-direction: column;
}
.photo-viewer::backdrop {
    background: #10171d;
}
.photo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.photo-viewer button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #73818a;
    border-radius: 4px;
    background: #303e48;
    color: white;
    font:
        36px/1 Arial,
        sans-serif;
    cursor: pointer;
}
.photo-viewer button[hidden] {
    display: none;
}
.photo-viewer button:hover {
    background: #4b5c69;
}
.photo-viewer button:focus-visible {
    outline: 3px solid #efc02e;
    outline-offset: 2px;
}
.photo-stage {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-height: 0;
    padding: 12px 0;
}
.photo-stage button {
    flex-shrink: 0;
}
.photo-frame {
    flex: 1;
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.photo-caption {
    text-align: center;
    margin: 4px 0;
    max-height: 15vh;
    overflow: auto;
    flex-shrink: 0;
}
.photo-status {
    text-align: center;
    margin: 0;
    color: #efc02e;
    flex-shrink: 0;
}
.photo-status:empty {
    display: none;
}
@media (max-width: 700px) {
    .photo-viewer {
        padding: 10px;
    }
    .photo-stage {
        position: relative;
        gap: 0;
        padding-bottom: 62px;
    }
    .photo-prev,
    .photo-next {
        position: absolute;
        bottom: 6px;
    }
    .photo-prev {
        left: calc(50% - 60px);
    }
    .photo-next {
        right: calc(50% - 60px);
    }
    .photo-caption {
        font-size: 14px;
    }
}
