.graph-post {
    margin: 0;
    font-size: var(--post-font-size);
    font-family: Arial, Helvetica, sans-serif;

    text-align: left;
}

.graph-post .post-core {
    width: max-content;
    max-width: 720px;
    min-width: 360px;
    background-color: var(--bgcolor-post-node-bg);

    font-family: var(--text-font);
    color: var(--text-color);

    cursor: auto;
}

#post-delete-popup {
    position: absolute;
    left: -116px;
    top: 16px;
    background-color: var(--bgcolor-post-node-bg);
    padding: 5px;
    z-index: -5;
}

#post-delete-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.post-border {
    width: max-content;
    padding: var(--grabbable-section-padding);
    background-color: var(--bgcolor-post-grabbable-border);
    border: var(--grabbable-section-border);
    cursor: move;
    display: grid;
    place-items: center;

    border-image-source: var(--grabbable-border-image-source);
    border-image-slice: var(--grabbable-border-image-slice);
    border-image-outset: var(--grabbable-border-image-outset);
    border-image-width: var(--grabbable-border-image-width);
    image-rendering: var(--grabbable-border-image-rendering);
}
.selected-post .post-border::after {
    content: "";
    position: absolute;
    /* Negative inset values must match your border-width to cover the border image */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    /* Apply your translucent tint color here */
    background-color: rgb(255, 255, 255);
    
    /* Use mix-blend-mode to blend the tint into the underlying image textures */
    mix-blend-mode: difference;
    
    /* Prevent the overlay from blocking mouse clicks on content */
    pointer-events: none; 
}

.post-header {
    padding: 6px;
    border-bottom: var(--post-section-separator);
}

.post-header-items {
    display: flex;
    flex-direction: row;
}

.post-body {
    padding: 6px;
    overflow-wrap: break-word;
    white-space: pre-line;
}

.post-body > section {
    margin: 0;
    min-height: 150px;
    max-height: 600px;
    overflow-y: auto;
}

.post-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.post-edited-section {
    opacity: 0.6;
    font-size: 0.6rem;
    padding-left: 6px;
    padding-bottom: 4px;
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.post-editor-link {
    color: var(--poster-name-color);
}

.post-footer-buttons {
    border-top: var(--post-section-separator);
    display: flex;
    flex-direction: row;
    align-items: center;
}
.post-footer-buttons .soft_deleted_icon {
    width: 16px;
    margin: 4px;
}
.post-footer-buttons > .post-footer-left-side {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: start;
}
.post-footer-buttons > .post-footer-right-side {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: end;
}
.post-footer-buttons .pin-target-id {
    display: none;
}

.post-image-grid {
    margin-bottom: 5px;
    display: grid;
    place-items: center;
}

.post-image {
    max-height: 280px;
    max-width: 100%;
    cursor: pointer;
}
.post-image[data-media-supertype='AUDIO'] {
    max-height: 64px;
    max-width: 64px;
    padding: 12px;
    background-color: var(--bgcolor-grabbable-border);
    border: 4px solid var(--border-color-03);
}

.post-image-holder {
    position: relative;
    display: inline;
}

.post-image-type {
    position: absolute;
    left: 0;
    padding: 4px;
    background-color: var(--bg-color-02);
    color: var(--text-color-02);
    font-weight: bold;
    border-radius: 0 0 4px 0;
}

.post-underline-text {
    text-decoration: underline;
}

.post-spoiler-image {
    cursor: pointer;
}

.post-banned-image {
    cursor: default;
}

.spoiler-image {
    max-width: inherit;
    height: 120px;
    border-bottom: var(--post-section-separator);

    background-color: #000;
    color: #fff;
    font-weight: bold;
    font-size: 3em;

    display: grid;
    place-items: center;
}

.spoiler-image:hover {
    background-color: #666;
    cursor: pointer;
}

span.spoiler-image-label {
    background-color: #000;
    color: #fff;
    font-weight: bold;

    position: absolute;
    padding: 4px;
    margin: 16px;
    top: 5px;
    left: 5px;
}

.poster-name {
    font-weight: 700;
    color: var(--poster-name-color);
    margin-right: 10px;
}
.poster-name[data-user-ulid] {
    cursor: pointer;
}

.post-datetime {
    margin-right: 30px;
    flex-grow: 1;
}

.post-id:hover {
    color: var(--color-link);
    cursor: pointer;
}

.post-backlink {
    color: var(--color-link);
}

.post-quote {
    color: var(--color-quote);
    font-style: var(--font-style-quote);
}

.post-spoiler {
    color: black;
    background-color: black;
}
.post-spoiler:hover {
    color: white;
}

details.post-block-spoiler {
    border: var(--post-section-separator);
    margin: 4px;
}

details.post-block-spoiler > summary {
    font-weight: bold;
    border-bottom: var(--post-section-separator);
    padding: 4px;
}

.media_grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.media_grid_row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}
.media_grid_row > .post-image-holder, .media_grid_row > .post-spoiler-image {
    flex-grow: 1;
}
.media_grid_row img {
    object-fit: cover;
}