﻿.post .win-backbutton {
    border-color: #1E8CBE;
    color: #1E8CBE;
}

.post .win-backbutton:hover {
    border-color: #1E8CBE;
}

.post .win-backbutton:hover:active {
    border-color: #1E8CBE;
    background: #1E8CBE;
    color: #fff;
}

.post header[role=banner] .titlearea {
    line-height: 42pt;
}

#reblogUI {
	width: 320px;
	height: 190px;
	padding: 12px 15px 10px;
}

#reblogUI textarea {
	height: 125px;
	width: 307px;
    padding: 4px 6px;
}

#reblogUI input[type=button] {
	float: right;
	margin: 8px 0 0 0;
    background-color: #1e8cbe;
    color: #fff;
    border: none;
    outline: 2px solid #1e8cbe;
}

#reblogUI input[type=button]:hover:active {
    background-color: #f1831e;
    outline: none;
}

#reblog-container {
    padding: 10px;
    background-color: #EEE;
}

.post section[role=main] {
    display: block;
    overflow-x: auto;
    margin: -35px 0 0 0;
    padding-bottom: 35px !important; 
    overflow-y: hidden;
}

.post section[role=main] article {
    column-fill: auto;
    column-width: 560px;
    column-gap: 0;
    height: 95%;
    width: 560px;
    margin-left: 120px;
}

.post section[role=main] article .win-body {
    margin-right:  80px;
    height:100%;
}

.post section[role=main] article img {
	max-width: 100%;
}

.post section[role=main] article div.meta {
    margin-bottom: 10px;
    line-height: 1.5em;
    overflow: hidden;
}

.post section[role=main] article div.meta img {
    vertical-align: middle;
    float: left;
}

.post section[role=main] article div.meta div.meta-txt {
    margin-left: 50px;
}

.post a {
    color: #1e8cbe;
}

.post a:hover, .post a:visited, .post a:active {
    color: #2ea2cc;
}

/* Media Styles */

.content img {
    display: block;
}

.content img[class*="align"],
.content img[class*="wp-image-"],
.content img[class*="attachment-"] {
    height: auto;
}

.content img.size-full,
.content img.size-large {
    max-width: 100%;
    width: auto;
    height: auto;
}

.content img.wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
    display: inline;
}

.content .alignleft,
.content .alignright,
.content .aligncenter {
    margin-bottom: 10px;
    margin-top: 10px;
}

.content .alignleft {
    display: inline;
    float: left;
    margin-right: 20px;
}

.content .alignright {
    display: inline;
    float: right;
    margin-left: 20px;
}

.content .aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.content .wp-caption {
    background: rgba(0,0,0,0.05);
    padding: 10px;
    max-width: 97%;
    break-inside: avoid;
    max-height: 100%;

    overflow:hidden;
    position:relative;
}

.content .wp-caption a {
    display:inline-block;
    width:100%;
    height:auto;
}

.content .wp-caption p {
    display:block;
    position:absolute;
    bottom:0px;
    background: rgb(242,242,242);
    width:100%;
}

.content .wp-caption br {
    display: none;
}

.content .wp-caption img {
    width: auto;
    height: 100%;
    max-height:80%;

    margin-left:auto;
    margin-right:auto;
}

.content .wp-caption .wp-caption-text,
.content .wp-caption .wp-caption-dd {
    margin: 4px 0 0;
    padding: 0;
}

.content object, 
.content embed, 
.content video, 
.content iframe {
    max-width: 100%;
}

ul.thumb-list {
    display: block;
    list-style: none;
    margin: 0 0 0 -1px;
    padding: 0 !important;
    clear: both;
    line-height: 1em;
}

ul.thumb-list li {
    display: inline;
    margin: 0;
    padding: 0 1px;
    border: 0;
}

ul.thumb-list li a {
    border: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: inline-block;
}



/* Typography */

.content p,
.content li,
.content span,
.content address {
    line-height: 20pt !important;  /* These styles must be important to override inline CSS in articles */
    text-align: left !important;
    font-family: "Segoe UI" !important;
    font-size:  11pt !important;
    font-style: normal;
    color: rgb(0,0,0) !important;
}

.content p {
    padding: 0 !important;
}

.content .wp-caption p {
    font-size: 9pt !important;
    line-height:  15pt !important;
    margin-bottom: 0;
}

.content p,
.content ul,
.content ol,
.content address {
    margin-bottom: 20pt;
}

.content ul, 
.content ol {
    padding-left:  16px;
}

/* External Iframe for Links */

iframe#external-link {
    position: absolute;
    top: 0;
    left: 120px;
    height: 100%;
    width: calc(100% - 120px);
    border: none;
    background: #fff;
}

div#backbar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 120px;
    background: #fff;
}

div#backbar button.win-backbutton {
    border-color: rgb(30, 140, 190);
    color: rgb(30, 140, 190);
    margin: 59px 0 0 39px;
}

#iframe-loader {
    color: rgb(30, 140, 190);
    width: 40px;
    height: 40px;
    position: absolute;
    bottom: 60px;
    left: 39px;
    z-index: 999;
}
/* --- */

.post section[role=main] .image {
    width: 460px;
    height: 240px;
    background: rgba(209, 211, 212, 1);
}

@media screen and (-ms-view-state: snapped) {    
    .post {
        overflow-y: auto;
        overflow-x:  hidden;
        display: block;
    }
    
    .post .win-contentTitle {
        font-size: 11pt;
        line-height: 15pt;
    }

    .post header[role=banner] {
        display: block;
    }

    .post section[role=main] .image {
        width: 260px;
        height: 140px;
    }

    .post section[role=main] {
        overflow-y: visible;
        display: inline;
    }

    .post section[role=main] article {
        display: block;
        width: 280px;
        padding-left: 20px;
        margin-left: 0;
        padding-right: 20px;
        overflow-y: visible;
        overflow-x: visible;
        height: auto;
    }
    
    .post section[role=main] article .win-body {
        margin-right:  0;
    }

    .post header[role=banner] h1 {
        margin: 0 0 30px 12px;
        font-size: 20pt;
        line-height: 1.2; /* 32px when font-size is 20pt */
        white-space: normal;
        overflow: visible;
        width: 244px;
        float: left;
    }

    .post header[role=banner] .titlearea {
        margin-top: 20px;
        margin-bottom: 20px;
        height:  auto;
        line-height: 1.2;
    }

    .post header[role=banner] .win-backbutton {
        margin-top: 24px;
        margin-left: 18px;
        float: left;
    }

    .post section[role=main] {
        margin-top: 0;
    }

    .post section[role=main] .content img {
        height: auto;
    }
    
    #reblogUI {
	    width: 276px;
	    height: 190px;
	    padding: 12px 15px 10px;
    }

    #reblogUI textarea {
	    height: 125px;
	    width: 263px;
        padding: 4px 6px;
    }
    
    .alignleft,
    .alignright,
    .aligncenter {
        clear: both;
        display: block;
        float: none;
        margin-left: auto;
        margin-right: auto;
    }

    div#backbar {
        position: absolute;
        top: 0;
        left: 0;
        height: 74px;
        width: 100%;
        background: #fff;
    }

    iframe#external-link {
        position: absolute;
        top: 74px;
        left: 0;
        height: calc(100% - 74px);
        width: 100%;
        border: none;
        background: #fff;
    }
    iframe#external-link.loaded {
        height: calc(100% - 74px);
    }
    div#backbar button.win-backbutton {
        border-color: rgb(30, 140, 190);
        color: rgb(30, 140, 190);
        margin: 24px 0 0 18px;
    }
    #iframe-loader {
        width: 30px;
        height: 30px;
        top: 22px;
        left: auto;
        right:  18px;
        z-index: 999;
    }
}

@media screen and (-ms-view-state: fullscreen-portrait) {
    .post section[role=main] article {
        margin-left: 104px;
    }

    .post header[role=banner] h1 {
        margin-right: 20px;
    }

    .post header[role=banner] .win-backbutton {
        margin-top: 60px;
    }

    .post section[role=main] article {
        padding-top: 30px;
    }
}

@media (-ms-high-contrast) {
    div#backbar {
        background: ButtonFace;
    }

    iframe#external-link {
        background: ButtonFace;
    }
}