.top-header-menu .piano-user-button {
    float: right;
    display: none;
}

.top-header-menu.loaded .piano-user-button {
    display: inline-block;
}

.top-header-menu .piano-user-button a {
    margin-right: 0;
    margin-left: 16px;
    color: #fff !important;
}

.piano-user-button .piano-user-hide {
    display: none;
}

.td-header-sp-top-menu,
.menu-top-container,
.top-header-menu {
    width: 100%;
}

.top-header-menu .piano-user-welcome {
    pointer-events: none;
    display: none;
}

.top-header-menu .piano-user-welcome.show {
    display: inline-block;
}

@media (max-width: 767px) {
    .td-header-top-menu-full,
    .td-header-top-menu-full .td-header-sp-top-menu {
        display: block !important;
        line-height: 1 !important;
    }

    .td-header-top-menu-full .td-header-sp-top-menu .menu-item {
        display: none;
    }

    .td-header-top-menu-full .td-header-sp-top-menu .piano-user-button {
        display: inline-block;
    }
}

/* .piano-container {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    z-index: 10;
} */

.excerpt-cropped {
max-height: 265px;
overflow-y: hidden;
}

.excerpt {
    position: relative;
    margin-bottom: 20px;
}

.excerpt > .tp-container-inner::before {
    content: '';
    height: 150px;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0) 100%);
}

[data-logged-in-show],
[data-subscribed-show],
[data-subscribed-only-show] {
    display: none;
}

body.logged-in [data-logged-in-show],
body.is-subscribed [data-subscribed-show],
body.allow-content [data-subscribed-show],
body.is-subscribed [data-subscribed-only-show] {
    display: block;
}

body.logged-in [data-logged-in-hide],
body.is-subscribed [data-subscribed-hide],
body.allow-content [data-subscribed-hide],
body.is-subscribed [data-subscribed-only-hide] {
    display: none;
}

.piano-post-content {
    position: relative;
    max-height: 400px;
    overflow: hidden;
}

.piano-post-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 350px, rgba(255, 255, 255, 1) 100%);
    z-index: 1001;
}

body.is-subscribed .piano-post-content,
body.allow-content .piano-post-content {
    overflow: initial;
    max-height: none;
}

body.is-subscribed .piano-post-content::before,
body.allow-content .piano-post-content::before {
    display: none;
}

body.is-registered .excerpt {
    margin-bottom: 0;
}

body.is-registered .piano-post-content {
    overflow: initial;
    max-height: none;
}

body.is-registered .piano-post-content::before {
    display: none;
}

body.is-subscribed .excerpt,
body.allow-content .excerpt {
    margin-bottom: 0;
}

#piano-ribbon {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 10;
}
