body.single-post figure.photo-caption-info__figure {
    margin: 0;
}

body.single-post .photo-caption-info {
    position: relative;
}

body.single-post .photo-caption-info__button {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    padding: 0;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

body.single-post .photo-caption-info__button span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #171717;
    color: #fff;
    font: bold 19px/1 Georgia, serif;
}

body.single-post .photo-caption-info__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #171717;
}

body.single-post figure.photo-caption-info > figcaption.photo-caption-info__text {
    position: absolute;
    z-index: 3;
    inset: 52px 8px auto auto;
    box-sizing: border-box;
    margin: 0;
    width: min(calc(100% - 16px), 30rem);
    max-height: min(52vh, 18rem);
    overflow: auto;
    padding: 0.75rem 0.9rem;
    border-radius: 0.35rem;
    background: #171717;
    color: #fff;
    text-align: left;
    font: 0.9375rem/1.45 system-ui, sans-serif;
    overflow-wrap: anywhere;
}

body.single-post figure.photo-caption-info > figcaption.photo-caption-info__text[hidden] {
    display: none !important;
}

body.single-post .photo-caption-info__text a {
    color: inherit;
    text-decoration: underline;
}
