.pit-photo-link {
    display: block;
    width: min(240px, 100%);
    max-width: 100%;
    border: 1px solid currentColor;
    border-radius: 10px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #0002;
}

.pit-photo-link img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.pit-photo-link [hidden] {
    display: none !important;
}

.pit-photo-link [data-pit-photo-fallback],
[data-chat-messages] .pit-attachment {
    display: block;
    padding: 6px 8px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

[data-chat-messages] .pit-photo-link {
    width: min(190px, 100%);
}
