.item {
    color: #333;
    position: relative;
    cursor: pointer;
    display: inline-block;
    vertical-align: top;
    z-index: 1;
}
.item .bg-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}
.item .body {
    position: relative;
}
.cropper {
    position: relative;
    overflow: hidden;
}
.cropper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: inherit !important;
}

.container-modal .item-embed.twitter .caption {
    font-size: 2em;
    line-height: 1.25em;
}

.nsfw .body img {
    -webkit-filter: blur(40px); /* Prefixed CSS3 blur filters */
       -moz-filter: blur(40px); 
        -ms-filter: blur(40px); 
         -o-filter: blur(40px); 
            filter: blur(40px); /* Someday, sigh ... */ 
    filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='20'); 
}

/* square item */
.square .body {
    padding: 40%;
    overflow: hidden;
}
.square .body .inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* embed banner item */
.embed-banner .item .body {
    padding: 33%;
    overflow: hidden;
}
.embed-banner .item embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.item.youtube .embed,
.item.vine .embed {
    position: absolute;
    top: 0;
    left: 0;
}

.container-item .item.instagram .body .embed::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.container-item .item.instagram .body .embed img {
    margin-top: -100%;
}

.container-item .item.twitter .body blockquote a::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.item .logo {
    width: 22px;
    height: 22px;
    margin: 2px;
    border-radius: 50%;
    background-color: #000000;
    background-position: center;
    overflow: hidden;
    z-index: 2;
    display: inline-block;
}
.item .header {
    position: relative;
}
.item .header .title {
    font-size: 1.2em;
    margin-right: 30px;
}
.item .flair.origin:before {
    content:"Original";
}
.item .flair {
    background-image: linear-gradient(-135deg, #C02EE4 0%, #E87B2F 100%);
    background-repeat: no-repeat;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: .8em;
    display: inline-block;
}
.grid-item .item .header .logo {
    display: none;
}
.item-embed {
    width: 100%;
    padding: 4px;
}
.item-embed iframe {
    width: 100% !important;
    margin: 0 !important;
}
.item-embed img {
    width: 100%;
}

.embed.facebook, .embed.facebook span, .embed.facebook span iframe {
    width: 100% !important;
}

@media screen and (max-width: 480px) {
    .button-close {
        right: ;
    }

    .container-footer h2 {
        font-size: 26px;
    }

    #container-connected .tags .tag .title {
        font-size: 18px;
    }

    .navsub .share  {
        margin: 0 !important;
    }
}

.item.twitter .logo {
    background-color: #5DD7FC;
}
.item.instagram .logo {
    background-color: #3F729B;
}
.item.vine .logo {
    background-color: #2ED1A8;
}
.item.youtube .logo {
    background-color: #FC461D;
}
.item.facebook .logo {
    background-color: #4760a2;
}
.item.imgur .logo {
    background-color: #000000;
}
.item.urban-dictionary .logo {
    background-color: rgb(231, 99, 46);
}
.item .play {
    height: 25%;
    width: 37.5%;
    background-size: 100% 100%;
    margin: auto;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    z-index: 2;
}
.item.youtube .play {
    background-image: url(/static/img/icon-play.png);
}
.item.large.youtube .play {
    height: 75px;
    width: 75px;
}
.item .logo .image {
    height: 100%;
    width: 100%;
    float: left;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 65%;
}
.item.twitter .logo .image {
    background-image: url(/static/img/icon-twitter-white.png);
}
.item.instagram .logo .image {
    background-image: url(/static/img/icon-instagram-white.png);
}
.item.vine .logo .image {
    background-image: url(/static/img/icon-vine-white.png);
}
.item.youtube .logo .image {
    background-image: url(/static/img/icon-youtube-white.png);
}
.item.facebook .logo .image {
    background-image: url(/static/img/icon-facebook-white.png);
    background-size: 40%;
}
.item.imgur .logo .image {
    background-image: url(/static/img/icon-imgur.png);
    background-size: 15%;
}
.item.urban-dictionary .logo .image {
    background-image: url(/static/img/icon-urban-dictionary.png);
}
.item.tweet .hashtags {
    color: #cccccc;
}

.item .body .embed, .item .body .twitter-tweet {
    pointer-events: none;
}

.item.vine .body .embed {
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
}

.item.youtube .body .embed {
    width: 100%;
    height: 100%;
}

.item.instagram .body .embed {
    height: 100%;
    width: 100%;
}

.item.twitter .body iframe {
    margin: 0 auto 0 auto !important;
    width: 100% !important;
}

.item.urban-dictionary .body .heading {
    font-size: 1.1em;
}
.item.urban-dictionary .body p {
    white-space: pre-wrap;
    font-size: 1em;
}
.item.urban-dictionary .body {
    max-height: 400px;
    overflow: hidden;
    background-color: white;
    color: #333;
    padding: 5px;
}

/* story items */

.sidebar .story {
}
.story.item .header {
    padding: 6px;
}

.story.item .title {
    font-size: 0.8em;
    font-family: 'Roboto-Condensed', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin:0;
    color: #555;
}

.story.item .caption {
    font-size: .9em;
    padding: 6px 6px;
}

.story.item {
    border-radius: 4px;
}

.story {
    position: relative;
    overflow: hidden;
}
.story .hover-overlay, .story .overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
-webkit-transition: opacity .3s;
   -moz-transition: opacity .3s;
     -o-transition: opacity .3s;
        transition: opacity .3s;
    z-index: 10;
    color: white;
    font-size: 1em;
    font-family: 'Roboto-Condensed', sans-serif;
    padding:10px;
}
.story .overlay {
    opacity: 1;
}
.story .hover-overlay:hover {
    opacity: 1;
}
.hover-overlay .background, .story .overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: .85;
    z-index: -1;
}

.story .more-btn {
    background-color: transparent;
    border-width: 1px;
    border-color: white;
    text-align: center;
    padding: 12px;
    border-radius: 22px;
    width: 100%;
    overflow: hidden;
    white-space: normal; 
    word-break: break-word;
}
.story .more-btn:hover, .top-stories .more-btn:focus:hover{
    background-color: rgba(255, 255, 255, 0.15);
}

.story .more-btn:focus:hover:active,
.story .more-btn:hover:active,
.story .more-btn:active {
    background-color: rgba(255, 255, 255, 0.3);
    color: black;
}
.story .hover-overlay .description {
    padding: 8px;
    overflow: hidden;
    height: 105px;
    width: 100%;
    color: #FFFFFF;
}
#container .story .hover-overlay a {
    color: white;
}
.story .vertical-flex-container {
    width:100%;
    height:100%;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}