.main-body {
    position: relative;
}

.card-excerpt > .block-secondary {
    position: relative;
}

.premium-highlight {
    position: absolute;
    text-align: center;
    bottom: 0;
    width: 100%;
    color: #ffffff;
    background-color: rgba(0,0,0,0.75);
    padding: 5px 10px;
    overflow: hidden;
    max-height: 2em;
}

.premium-highlight.premium-locked span:before {
    margin-right: 5px;
    font-size: 95%;
    
    content: "\e904";
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*.premium-highlight.premium-unlocked span:before {
    margin-right: 5px;
    font-size: 95%;
    
    content: "\e902";
    
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}*/

.post-premium-highlight {
    margin: 0 auto;
    max-width: 1010px;
    overflow: hidden;
}

.post-premium-highlight span {
    padding: 10px 15px;
    display: block;
    float: left;
    background: rgba(0,0,0,0.4);
    color: #ffffff;
    font-weight: normal;
    font-family: 'ff-more-web-pro', serif;
    font-size: 15px;
}

.entry-standfirst {
    color: #757575;
}

.protected-content-login-form {
    display: block !Important;
    width: 100% !Important;
}

.protected-registration-box {
    border: 1px solid #c4c4c4;
    margin-top: 20px;
    padding: 0 0 40px 0;
}

.protected-registration-box p {
    text-align: center;
}

.protected-registration-box-title {
    min-height: 60px;
    background: #f4f4f4;
    text-align: center;
    line-height: 60px;
    font-size: 150%;
    font-weight: normal;
    font-family: 'ff-more-web-pro', serif;
}

.protected-registration-box-title span:before {
    margin-right: 10px;
    font-size: 95%;
    vertical-align: text-bottom;
}

.protected-registration-box-description {
    text-align: center;
    font-weight: normal;
    font-size: 115%;
    padding: 20px 60px;
    font-family: 'ff-more-web-pro', serif;
}

a.protected-registration-box-registration-link {
    margin: 0 auto 25px;
    display: inline-block;
    padding: 9px 15px;
    background: #343443;
    color: #ffffff;
    text-decoration: none;
}

a.protected-registration-box-registration-link:hover {
    background: #343443;
    color: #ffffff;
    text-decoration: none;
}

.protected-registration-box-inner-heading {
    font-size: 18px;
}

.protected-content-login-form h2 {
    display: none;
}

.registered-content-box .login-boxes,
.protected-registration-box .login-boxes {
    width: 100%;
    display: block;
}

.protected-registration-box .login-password,
.protected-registration-box .login-username,
.protected-registration-box .login-remember,
.protected-registration-box .lost-password,
.protected-registration-box .login-submit,
.protected-registration-box .recover-submit {
    width: 50%;
}

.protected-content-login-form .login-password,
.protected-content-login-form .login-username,
.protected-content-login-form .recover-username{
    width: 40%;
    float: left;
    margin-bottom: 10px;
}

.protected-content-login-form .recover-username {
    width: 70%;
    text-align: right;
}

.protected-content-login-form .login-submit,
.protected-content-login-form .recover-submit {
    width: 20%;
    float: left;
}

.protected-content-login-form .recover-submit {
    width: 30%;
    text-align: left;
}

.content-login-form .login-password label,
.content-login-form .login-username label,
.content-login-form .recover-username label,
.protected-content-login-form .login-password label,
.protected-content-login-form .login-username label,
.protected-content-login-form .recover-username label,
.protected-registration-box .login-password label,
.protected-registration-box .login-username label,
.protected-registration-box .recover-username label {
    display: none !Important;
}

.protected-content-login-form .login-password input,
.protected-content-login-form .login-username input,
.protected-content-login-form .recover-username input{
    width: 90%;
    margin: 0 auto;
    padding: 10px 15px;
}

.protected-content-login-form .login-submit input,
.protected-content-login-form .recover-submit input {
    background: #019ac0;
    padding: 11px 20px;
    min-width: 140px;
}

.protected-content-login-form .recover-submit input {
    margin-left: 20px;
}

.protected-content-login-form .lost-password,
.protected-content-login-form .login-remember {
    float: left;
    width: 40%;
    text-align: left;
    margin-top: 0;
}

.protected-content-login-form .lost-password a,
.protected-content-login-form .login-remember label {
    width: 90%;
    margin: 0 auto;
    display: block;
    color: #ffffff;
}

.protected-registration-box .protected-content-login-form .lost-password a,
.protected-registration-box .protected-content-login-form .login-remember label {
    color: #757575;
}

.registered-content-overlay .login-back a {
    color: #fff;
}

.content-login-form .login-submit {
    float: none;
}

@media only screen and (max-width:640px) {
    
    .protected-content-login-form .login-password,
    .protected-content-login-form .login-username,
    .protected-content-login-form .recover-username {
        width: 100%;
        float: none;
        margin-bottom: 10px;
    }
    
    .protected-content-login-form .login-submit,
    .protected-content-login-form .recover-submit {
        width: 100%;
        float: none;
    }
    
    .protected-content-login-form .lost-password,
    .protected-content-login-form .login-remember {
        float: none;
        width: 100%;
        text-align: center;
        margin-top: 0;
    }
    
    .protected-content-login-form .login-submit input, .protected-content-login-form .recover-submit input {
        background: #019ac0;
        padding: 11px 20px;
        min-width: 140px;
        width: 90%;
    }
    
}

.tab-page-content .protected-registration-box {
    margin: 0 20px;
}

.registered-content-overlay {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 100;

    background-color: transparent;
    background-image: linear-gradient( transparent 100px, rgba(52, 52, 67, 0.92) 450px );
    /*background-image: linear-gradient( transparent 1%, rgba(52, 52, 67, 0.92) 15% );*/

}

.registered-content-box {
    margin-top: 420px;
    background: transparent;
    max-width: 1010px;
    margin: 420px auto 0;
    color: #ffffff;
    text-align: center;
    position: relative;
}

.registered-content-box a,
.registered-content-box a:visited,
.registered-content-box a:hover {
    color: #ffffff;
}

.registered-content-box .login-error {
    color: #000000;
}

.registered-content-box .registered-content-box-close {
    position: absolute;
    right: 20px;
    top: -15px;
    width: 38px;
    height: 38px;
    background-image: url( '../images/closebox.png' );
    background-color: transparent;
    display: block;
}

.registered-content-box h1.registered-content-box-title {
    font-size: 170%;
    font-weight: normal;
    font-family: 'ff-more-web-pro', serif;
}

.registered-content-box p.registered-content-box-description {
    font-weight: normal;
    max-width: 80%;
    margin: 20px auto;
}

.flexbox .registered-content-overlay .registered-content-box .columns-2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.column-half {
    padding: 25px 0 40px;
}

.flexbox .column-half {
    padding: 25px 0 40px;
    display: flex;
}

.registered-content-column-1 {
    margin-left: 60px;
    margin-right: 20px;
    background: #ffffff;
    padding: 40px;
    color: #000000;
    text-align: left;
    font-weight: normal;
    width: 100%;
}

.registered-content-column-2 {
    margin-right: 60px;
    margin-left: 20px;
    background: #ffffff;
    padding: 40px;
    color: #000000;
    text-align: left;
    font-weight: normal;
    width: 100%;
}

.registered-content-column-1 li,
.registered-content-column-2 li{
    list-style-position: inside;
}

.registered-content-column-1 .subscription-plan-header-details-link {
    display: block;
    width: 100%;
    min-height: 40px;
    text-align: center;
    margin: 0 auto 40px;
    border: 1px solid #E4003B;
    color: #E4003B;
    line-height: 40px;
    font-family: 'ff-more-web-pro', serif;
    font-size: 120%;
}

.registered-content-column-1 .subscription-plan-header-details-link:hover {
    color: #E4003B;
}

.registered-content-column-2 .subscription-plan-header-details-link {
    display: block;
    width: 100%;
    min-height: 40px;
    text-align: center;
    margin: 0 auto 40px;
    border: 1px solid #E4003B;
    background-color: #E4003B;
    color: #FFFFFF;
    line-height: 40px;
    font-family: 'ff-more-web-pro', serif;
    font-size: 120%;
}

.registered-content-column-2 .subscription-plan-header-details-link:hover {
    color: #FFFFFF;
}

@media only screen and (max-width:800px) {
    .registered-content-column-1 {
        width: 90%;
        margin: 0 auto;
    }
    
    .registered-content-column-2 {
        width: 90%;
        margin: 0 auto;
    }
}

/* Fix for links in subscription/registration overlay - GM 07/06/16 */
.registered-content-column-1 a, .registered-content-column-2 a {
    color: #000000;
    text-decoration: underline;
}

.protected-content-login-form #reminderform,
.protected-content-login-form #loginform {
    max-width: 80%;
    margin: 0 auto;
}

/* Subscription page */
.extended-subscription-page article .entry-header h1.page-title.large {
    font-size: 24pt;
    text-align: center;
    margin: 45px 0;
}

.extended-subscription-page .media {
    background: transparent;
}

.extended-subscription-page .entry-content {
    margin-bottom: 30px;
}

.extended-subscription-page .subscription-plan-container {
    padding-bottom: 10px;
}

.flexbox .extended-subscription-page .subscription-plan-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.extended-subscription-page .subscription-plan-container .subscription-plan-column {
    background: #ffffff;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 20px;
}

.flexbox .extended-subscription-page .subscription-plan-container .subscription-plan-column {
    flex: 1 1 33.33%;
    min-width: 250px;
    max-width: 300px;
    margin: 0 auto 20px;
    background: #f4f4f4;
    padding: 0;
}

.flexbox .extended-subscription-page .subscription-plan {
    border: 1px solid #c4c4c4;
    margin: 10px;
}

.extended-subscription-page .subscription-plan .subscription-plan-inner {
    border: 1px solid #c4c4c4;
}

.flexbox .extended-subscription-page .subscription-plan .subscription-plan-inner {
    border: none;
}

.flexbox .extended-subscription-page .subscription-plan-column-highlighted .subscription-plan {
    border: 1px solid #343443;
}

.extended-subscription-page .subscription-plan .subscription-plan-header .subscription-plan-header-title {
    height: 60px;
    line-height: 60px;
    width: 100%;
    background: #f4f4f4;
    text-align: center;
    font-size: 180%;
    font-family: 'ff-more-web-pro', serif;
    font-weight: normal;
}

.extended-subscription-page .subscription-plan-column-highlighted .subscription-plan-header .subscription-plan-header-title {
    background-color: #212130;
    color: #ffffff;
}

.extended-subscription-page .subscription-plan .subscription-plan-header .subscription-plan-header-details {
    height: 250px;
    text-align: center;
    position: relative;
    background-color: #ffffff;
}

.extended-subscription-page .subscription-plan-column-highlighted .subscription-plan-header .subscription-plan-header-details {
    background-color: #343443;
    color: #ffffff;
}

.extended-subscription-page .subscription-plan .subscription-plan-footer {
    /*border: 1px solid #c4c4c4;*/
    /*border-top: 0;*/
    /*margin: 0 10px 10px;*/
}

.extended-subscription-page .subscription-plan .subscription-plan-footer .subscription-plan-footer-row-checked,
.extended-subscription-page .subscription-plan .subscription-plan-footer .subscription-plan-footer-row {
    min-height: 50px;
    line-height: 20px;
    background: #f4f4f4;
    margin-bottom: 0;
    padding-left: 55px;
    color: #343443;
    padding-top: 15px;
    padding-bottom: 15px;
    position: relative;
    border-top: 3px solid #ffffff;
}

.extended-subscription-page .subscription-plan .subscription-plan-footer .subscription-plan-footer-row-checked:first-child,
.extended-subscription-page .subscription-plan .subscription-plan-footer .subscription-plan-footer-row:first-child {
    margin-bottom: 0;
    border-top: 0;
}

.extended-subscription-page .subscription-plan .subscription-plan-footer .subscription-plan-footer-row-checked:last-child,
.extended-subscription-page .subscription-plan .subscription-plan-footer .subscription-plan-footer-row:last-child {
    border-bottom: 3px solid #ffffff;
}

.extended-subscription-page .subscription-plan:last-child .subscription-plan-footer .subscription-plan-footer-row-checked:last-child,
.extended-subscription-page .subscription-plan:last-child .subscription-plan-footer .subscription-plan-footer-row:last-child {
    border-bottom: 0;
}

.extended-subscription-page .subscription-plan .subscription-plan-footer .subscription-plan-footer-row span.icon-tick {
    position: absolute;
    left: 20px;
    top: 17px;
}

.extended-subscription-page .subscription-plan .subscription-plan-header .subscription-plan-header-details .subscription-plan-header-details-large {
    position: absolute;
    text-align: center;
    top: 45px;
    font-size: 190%;
    font-weight: bold;
    width: 100%;
}

.extended-subscription-page .subscription-plan .subscription-plan-header .subscription-plan-header-details .subscription-plan-header-details-link-holder {
    position: absolute;
    text-align: center;
    bottom: 40px;
    /*font-size: 190%;
    font-weight: bold;*/
    width: 100%;
}

.extended-subscription-page .subscription-plan .subscription-plan-header .subscription-plan-header-details .subscription-plan-header-details-link {
    display: block;
    width: 160px;
    height: 40px;
    text-align: center;
    margin: 0 auto;
    border: 1px solid #E4003B;
    color: #E4003B;
    line-height: 40px;
}

.extended-subscription-page .subscription-plan-column-highlighted .subscription-plan-header .subscription-plan-header-details .subscription-plan-header-details-link {
    background-color: #E4003B;
    color: #FFFFFF;
}

.extended-subscription-page .subscription-plan .subscription-plan-header .subscription-plan-header-details .subscription-plan-header-details-small {
    position: absolute;
    top: 85px;
    width: 100%;
    padding: 0 10px;
}

.extended-subscription-page .subscription-plan .subscription-plan-header .subscription-plan-header-details .subscription-plan-header-details-small p {
    margin: 0;
}

/* Test flex stuff */
.subscription-plan-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.unverified-user-message {
    text-align: center;
    margin: 40px 0;
}

.unverified-user-message a {
    text-align: center;
    font-size: 150%;
    color: #E4003B;
}

.login-error {
    max-width: 80%;
    margin: 0 auto;
}

.registered-content-help-details {
    width: 80%;
    margin: 20px auto 0;
    text-align: center;
}

p.registered-content-help-details-description {
    font-weight: normal;
    margin-top: 5px;
}

/* Subscription footer */
.extended-subscription-page .entry-footer p {
    width: 90%;
    font-weight: normal;
    padding: 20px;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 90%;
}

.extended-subscription-page .entry-footer p a {
    color: #19f;
}

/*
* Thumbnail image re-display
*/

@media only screen and (max-width:559px) {
    .card-excerpt > :first-child:nth-last-child(2) {
        display: block;
    }
}

@media only screen and (min-width:300px) {
    .columns-2.lead-row > .card-excerpt:nth-child(2) > :nth-last-child(2):first-child,
    .columns-2.lead-row > .card-excerpt:nth-child(2) > :nth-last-child(2):first-child ~ *,
    .columns-3.lead-row > .card-excerpt:nth-child(2) > :nth-last-child(2):first-child,
    .columns-3.lead-row > .card-excerpt:nth-child(2) > :nth-last-child(2):first-child ~ *,
    .columns-4.lead-row > .card-excerpt:nth-child(2) > :nth-last-child(2):first-child,
    .columns-4.lead-row > .card-excerpt:nth-child(2) > :nth-last-child(2):first-child ~ * {
        display: block;
    }

    .columns-4.lead-row > :first-child ~ .card-excerpt > .block-lead ~ *,
    .columns-4.lead-row > :first-child ~ .card-excerpt > header,
    .columns-3.lead-row > :first-child ~ .card-excerpt > .block-lead ~ *,
    .columns-3.lead-row > :first-child ~ .card-excerpt > header,
    .columns-2.lead-row > :first-child ~ .card-excerpt > .block-lead ~ *,
    .columns-2.lead-row > :first-child ~ .card-excerpt > header,
    .columns-1.lead-row > :first-child ~ .card-excerpt > .block-lead ~ *,
    .columns-1.lead-row > :first-child ~ .card-excerpt > header {
        display: block;
    }
}

@media only screen and (max-width:399px) {

    .short-card {
        height: 350px;
    }

    .short-card .entry-thumbnail.fixed-height {
        display: block;
        height: 50%;
    }
}

/* Test */
.fluid-width-video-wrapper:after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: yellow;
}

.concurrent-content-overlay {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 100;

    background-color: rgba(0,0,0,0.90);
}

.concurrent-content-box {
    z-index: 1011;
    position: fixed;
    top: 250px;
    left: calc(50% - 35%);
    width: 70%;
    background: #ffffff;
}

.concurrent-content-box-close {
    position: absolute;
    display: inline-block;
    top: -17px;
    right: -17px;
    cursor: pointer;
    border: solid 1px #888;
    border-radius: 50%;
    background-color: #fff;
    text-align: center;
    width: 37px;
    height: 37px;
}

.concurrent-content-box-close a {
    line-height: 37px;
    font-size: 1.5em;
}

.concurrent-content-box-title {
    font-weight: bold;
}

.concurrent-content-box-description {
    font-weight: normal;
}