instadiff-feed-modal-post {
    border-bottom: 1px solid rgb(0, 0, 0);
}

instadiff-feed-modal {
    z-index: 999;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
    pointer-events: none;
    visibility: hidden;
    overflow-x: hidden;
    overflow-y: auto;
}

.instadiff-feed-modal-content {
    background-color: rgb(255, 255, 255);
    position: relative;
    margin: 0 auto;
    max-width: 640px;
    padding-bottom: 1vh;
}

.instadiff-feed-modal-post-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding-left: 1em;
    padding-right: 1em;
}

.instadiff-feed-modal-post-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.instadiff-feed-modal-post-seperator {
    opacity: 0.1;
}

.instadiff-feed-modal-post-media img, video {
    width: 100%;
    min-height: 300px;
}

.instadiff-feed-modal-post-follow-link {
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    margin-left: auto;
}

.instadiff-feed-modal-post-follow-link a {
    text-decoration: none;
    color: rgb(56, 151, 240);
}

@media only screen and (max-width: 319px){
    .instadiff-feed-modal-post-follow-link {
        display: none;
    }

    .instadiff-feed-modal-post-media img, video {
        min-height: 160px;
    }
}

.instadiff-feed-modal-post-instagram {
    margin-left: 10px;
}

.instadiff-feed-modal-post-content {
    padding: 10px;
    font-size: 14px;
}

.instadiff-feed-modal-text {
    white-space: pre-wrap;
    margin-top: 12px;
}

.instadiff-feed-modal-text > a {
    text-decoration: none;
    color: rgb(0, 53, 105);
}

.instadiff-feed-modal-username-url {
    color: rgb(0, 0, 0) !important;
    font-weight: 600;
}

.instadiff-feed-modal-meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.instadiff-feed-modal-likes-share {
    display: flex;
    flex-direction: row;
    position: relative;
    margin-left: auto;
}

.instadiff-feed-modal-date {
    font-size: 10px;
    line-height: 12px;
    text-transform: uppercase;
    margin-top: 8px;
    opacity: 0.6;
}

.instadiff-feed-modal-likes-count {
    font-weight: 600;
}

.instadiff-feed-modal-post-user {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.instadiff-feed-modal-post-user-image {
    background: linear-gradient(40deg, #f99b4a 15%, #dd3071 50%, #c72e8d 85%);
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 4px;
    box-sizing: border-box;
    margin-right: 12px;
}

.instadiff-feed-modal-post-user-image img {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-sizing: border-box;
    margin: 0 !important;
}

.instadiff-feed-modal-post-user-username {
    font-weight: 600;
    font-size: 14px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.instadiff-feed-modal-post-user-username a {
    text-decoration: none;
}

.instadiff-feed-modal-share-popover {
    visibility: hidden;

    width: 162px;

    position: absolute;
    bottom: 100%;
    right: 0;
    padding-bottom: 11px;
    z-index: 6;
}

.instadiff-feed-modal-share-item {
    color: rgb(255, 255, 255);
    cursor: pointer;
    text-align: left;
    padding: 12px;
    line-height: 1;
    font-weight: 400;
    font-size: 13px;
}

.instadiff-feed-modal-share-item:hover {
    background-color: rgb(70, 70, 82);
}

.instadiff-feed-modal-share-content::before {
    content: '';
    background: #2f353a;
    position: absolute;
    bottom: -5px;
    width: 10px;
    height: 10px;
    transform: rotateZ(-45deg);

    right: 40px;
    left: auto;
    margin-left: auto;
}

.instadiff-feed-modal-share-content {
    display: flex;
    flex-direction: column;

    position: relative;
    background-color: #2f353a;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.instadiff-feed-modal-share-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.instadiff-feed-modal-close {
    position: fixed;
    cursor: pointer;
    top: 30px;
    left: 50%;
    margin-left: 332px;
    height: 32px;
    width: 32px;
    transform: rotate(45deg);
    z-index: 6;
}

.instadiff-feed-modal-close::after {
    width: 2px;
    height: 24px;
    margin: -12px 0 0 -1px;
}

.instadiff-feed-modal-close::before {
    width: 24px;
    height: 2px;
    margin: -1px 0 0 -12px;
}

.instadiff-feed-modal-close::before,.instadiff-feed-modal-close::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: rgb(255, 255, 255);
}

@media only screen and (max-width: 767px) {
    .instadiff-feed-modal-close {
        left: 12px;
        top: 14px;
        margin: 0;
    }

    .instadiff-feed-modal-close::before,.instadiff-feed-modal-close::after {
        background-color: rgb(0, 0, 0);
    }

    .instadiff-feed-modal-content {
        top: 37px;
    }

    .instadiff-feed-modal-mobile-header {
        background-color: rgb(255, 255, 255);
        height: 56px;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1;
    }
}