/*
 *  Copyright (c) 2018-present, Evgeny Nadymov
 *
 * This source code is licensed under the GPL v.3.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

.shared-link {
    position: relative;
    background: transparent;
    padding: 10px 12px;
    display: flex;
    flex-direction: row;
}

.shared-link-text {
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
}

.shared-link-content {
    flex-grow: 1;
    flex-shrink: 1;
    margin-left: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shared-link-content .web-page-title {
    word-wrap: break-word;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.shared-link-content .web-page-title:first-letter {
    text-transform: capitalize;
}

.shared-link-content .web-page-description {
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
}

.shared-link-url {
    display: block;
    word-wrap: break-word;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.shared-link .photo-thumbnail {
    object-fit: cover;
}
