/* 
    Created on : Sep 11, 2019, 9:44:00 AM
    Help will be the replacement for the current trainingcontent page.
    Author     : bgoodrich
*/


/** ****** PRINTING **********  **/
@media print {
    
    body {
        display: block;
        height: unset;
    }
    
    #header,
    #t4l_build,
    .widget.searchbox,
    .panel.folders,
    .material-icons.help-print,
    .helpful.bottom,
    .hd > :first-child {
        display: none;
    }
    
    .hd {
        background-color: transparent;
        border-bottom: 0;
    }
    
    h3,
    article.panel.content,
    section.panel.content {
        display:block;        
    }
    
    .hd h3.print-title {display: inline;}
    .hd h3#h3-title {margin-left: 10px;}
    
    article.panel.content,
    section.panel.content {
        padding-left:4px;
    }
    
}
/** ****** END PRINTING ******  **/

body,
body p {
    line-height: 1.3em;
}

section {
    padding:0;
}

strong {
    font-weight: 500;
    font-family: 'Roboto', verdana, sans-serif;
}

video {
    width:100%;
    max-width:500px;
}

iframe {
    max-width:500px;
    aspect-ratio: 4/3;
}

iframe.book {
    aspect-ratio: 16/9;
}

.survey-holder iframe {
    max-width:unset;
    aspect-ratio: unset;
}

img {
    max-width:500px;
}

div.small img {
    max-width: 300px;
}

button.help-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    height:32px;
    padding: 0 14px 0 14px;
    font-family: 'Roboto', Verdana, Arial, sans-serif;
    font-size: 1em;
    background: var(--white);
    margin-left:20px;
}

button.help-button:hover {
    background: var(--primary-color-light);
}

button.wixie-template {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #0072ac;
    border-radius: 27px;
    padding: 5px 22px 5px 18px;
    font-family: 'Roboto', Verdana, Arial, sans-serif;
    font-size: 1em;
    background: none;
    margin-left: 20px;
}

button.wixie-template svg {
    height: 32px;
    width: 32px;
    margin-right: 10px;
    fill: #0072ac;
}

.page-help h1 {
    margin-left:20px;
    font-size: 1.2em;
    color:var(--primary-text);
    font-weight: 500;
    text-align:left;
}

.page-help .widget.tab-layout .tabs {
    display:none;
}

h3.print-title {display: none;}

.nostudents,
.loggedin.student .nostudents {
    display: none;
}

.loggedin .nostudents {
    display: block;
}

.material-icons.help-print {
    font-size: 24px;
    color: var(--primary-color);
    margin-left:auto;
    padding: 4px;
    border-radius: 50%;
}

.embedded button.material-icons.help-print {
    display: none;
}

section.panel .topics {
    background-color: var(--white);
    overflow-y: auto;
    flex:1;
}

section.panel .topics li {
    color: var(--primary-color-dark);
}

section.panel .topics li svg.folder {
    fill: var(--primary-color-dark);
    height: 20px;
    width: 20px;
    margin-right:0px;
}

section.panel .topics li.header {
    pointer-events:none;
    cursor:default;
}

section.panel .topics li.header:hover {
    background:transparent;
}

section.panel .topics li.header svg.folder {
    margin-right:5px;
}

section.panel .bottom {
    border-top: 1px solid var(--middlegrey);
    padding: 10px;
    background: var(--white);
    display: flex;
    align-items: center;
}

body.student section.panel .bottom
body:not(.loggedin) section.panel .bottom {
    display:none;
}

section.panel .helpful.bottom {
    margin-top:20px;
    padding-top:20px;
}

section.panel .helpful.bottom .initial{
    align-items:center;
}

section.panel .helpful.bottom .initial *{
    margin-right:15px;
}

section.panel .helpful.bottom .suggestion{
    width: 100%;
}

section.panel .helpful.bottom .suggestion label{
    margin-top: 15px;
    margin-bottom: 5px;
}

section.panel .helpful.bottom .suggestion textarea{
    width: 100%;
    max-width: 500px;
    padding: 8px;
    margin-bottom: 10px;
}

section.panel .helpful.bottom .suggestion button{
    margin-left:0;
}

article.panel.content,
section.panel.content {
    padding:12px 30px;
    background-color:var(--white);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

:not(button).link {
    color:var(--primary-color);
    cursor:pointer;
    display:flex;
    flex-direction: row;
}

.link:hover {
    background-color:var(--lightgrey);
}

#ul-folders > li > .flexrow {
    align-items:center;
}

#ul-folders > li > .flexrow > .material-icons {
    margin:-3px 8px 0 0;
}

section.panel.folders section.topics > ul > li {
    align-items: center;
    min-height:34px;
    padding: 0;
}

section.panel.folders section.topics > ul > li.active {
    background-color: var(--white);
    height:unset;
}

section.panel.folders > section.topics > ul > li.active div:first-child {
    background-color:var(--primary-color-light);
}

section.panel.folders > section.topics > ul > li > div:first-child {
    padding-left:12px;
    height: 42px;
}

section.panel.folders > section.topics > ul > li div.name{
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

section.panel.folders > section.topics > ul > li div.arrows{
    height:32px;
    width:32px;
}

section.panel.folders > section.topics > ul > li div.arrows svg{
    display:none;
    fill:var(--darkgrey);
    height:32px;
    width:32px;
}

section.panel.folders > section.topics > ul > li:hover:not(.active) div.arrows svg.arrowdown{
    display:block;
}

section.panel.folders > section.topics > ul > li.active div.arrows svg.arrowup{
    display:block;
}

section.panel.folders > section.topics > ul > li > ul > li {
    padding-left:14px;
    overflow: unset;
    text-overflow: unset;
    white-space: normal;
    margin-left:10px;
}

section.panel.folders > section.topics > ul > li > ul > li.active {
    background:var(--lightgrey);
}

/**  content in right panel  **/
.panel.content.fill p,
.panel.content.fill div {
    line-height:1.3em;
    max-width: 1000px;
}

.panel.content.fill .content {
    line-height:1.5em;
    padding-bottom:48px;
    max-width: 1000px;
}

.panel.content.fill .content img{
    max-width: 100%;
    border: 1px solid var(--middlegrey);
}

.panel.content.fill .description {
    margin-bottom:1.5em;
    padding-top:1em;
    max-width: 1000px;
}

.panel.content.fill > .search.results > h4 {
    background-color: var(--lightgrey);
    border:1px solid var(--middlegrey);
    box-sizing: border-box;
    display:block;
    font-size:1em;
    height:34px;
    line-height:28px;
    margin:4px 0;
    padding: 4px;
}


.panel.content.fill > .search.results > ul {
    margin:12px 0;
}

.panel.content.fill > .search.results > ul > li {
    min-height:34px;
    margin:4px 0;
    padding-left:4px;
}

.panel.content.fill > .search.results > ul > li > .link {
    display:flex;    
    flex:0 0 34px;
    width:auto;
    padding-left:8px;
    font-weight:500;
    line-height: 1.3em;
    align-items: center;
}

.panel.content.fill > .search.results > ul > li > :last-child {
    border-bottom: none;
    display: flex;
    line-height: 1.3em; 
    margin-bottom:4px;
    min-height: 2em;
    padding: 0;
    padding-left:8px;
}

.panel.content.fill > .search.results > ul > li.article {
    cursor:pointer;
    border-radius:10px;
}

.panel.content.fill > .search.results > ul > li.article:hover {
    background:var(--lightgrey);
}

/**  end content in right panel  **/

/** welcome **/

.page-help .hd.flex.container.flexrow {
    background:var(--primary-color-light);
}

section.welcome .help-print {
    display:none;
}

section.welcome h1 {
    text-align:center;
    font-size: 1.4em;
}

section.welcome .back-holder {
    display:none;
}

section .back-holder {
    margin-left:10px;
    width:250px;
}

.holder.search {
    width: 50%;
    margin: 0 auto;
    flex:unset;
}

.holder.search > input {
    font-size: 12pt;
}

.help-welcome {
    width: 95%;
    max-width: 1100px;
}

.help-welcome h1 {
    margin: 20px 0;
    padding:0;
    font-size:1.5em;
}

.help-welcome h3 {
    margin: 15px 0;
    color: var(--primary-color-dark);
}

.help-topics {
    display:grid;
    grid-gap:20px;
    grid-template-columns: 1fr 1fr 1fr;
    margin-left: 5px;
}

.help-item {
    border: 1px solid var(--middlegrey);
    border-radius: 6px;
    padding: 8px;
    cursor:pointer;
}

.help-item.popular p {
    font-size:.9em;
}

.help-item.popular:hover {
    background:var(--primary-color-light);
}

body:not(.loggedin) .help-item.learningcenter {
    display:none;
}

.help-item h4 {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom:5px;
    font-size: 1em;
    color: var(--primary-color-dark);
}

.help-item h4 svg {
    margin-right: 8px;
    border-radius: 10px;
    fill: var(--grey);
    height: 35px;
    width: 35px;
    padding: 5px;
}

.help-item h4.green svg {
    background-color: #ddf9da;
}

.help-item h4.talkie  svg{
    fill: var(--primary-purple);
}

.help-item h4.dictation svg {
    fill: var(--primary-green);
}

.help-item h4.book svg,
.help-item h4.embed svg {
    fill: var(--primary-orange-dark);
}

.help-item h4.inspect svg {
    fill: var(--primary-green);
}

.help-item h4.assignments svg {
    fill: var(--primary-red);
}

.help-item h4.showcase svg {
    fill: var(--primary-color-dark);
}

.help-item h4 svg.privacy {
    background-color: var(--primary-color-dark);
}

.help-item h4 svg.wx101 {
    background-color: var(--primary-orange-dark);
}

.help-item h4 svg.lessons {
    background-color: var(--primary-purple);
}

.help-item h4 span {
    flex:1;
}

.help-topics.other .help-item:hover {
    background:var(--primary-color-light);
}

.help-topics.other h4 {
    flex-direction:column;
    text-align: center;
}

.help-topics.other h4 svg{
    margin:20px 0;
    fill:var(--white);
}

/** end welcome **/

/** help request form **/

.modal-content.help-form {
    height:90%;
}

.modal-content.help-form .modal-body {
    flex:1;
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
    box-sizing: border-box;
}

.modal-content.help-form .modal-body label {
    margin: 12px 0 6px 0;
}

.modal-content.help-form .modal-body form{
    flex:1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.modal-content.help-form .modal-body form .description{
    flex:1;
}

.modal-content.help-form .modal-body form .description textarea{
    flex: 1;
    overflow-y: scroll;
    resize: none;
}

.modal-content.help-confirm .modal-body p {
    margin:20px;
}

/** end help request form **/

/** help content tables **/

table {
    text-align: left;
    width: 100%;
    border-spacing: 0px;
    border: 1px solid lightgrey;
    border-collapse: collapse;
    padding: 6px;
}

td,
th {
    border: 1px solid lightgrey;
    border-collapse: collapse;
    padding: 6px;
}

tr {
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

td {
    vertical-align: top;
}

/** end help content tables **/

/** help in iframe **/

body.loggedin.page-help.iframe {
    display:flex;
}

.iframe header.toolbar,
.iframe .hd .back-holder,
.iframe .hd .help-print,
.iframe .bd .fixed-width {
    display:none;
}

/** end help in iframe **/

/** ask for help callout **/
.help-callout {
    display:flex;
    align-items:center;
    text-align:left;
}

.help-callout img {
    margin-right:10px;
}

.help-callout svg {
    fill: var(--primary-green-dark);
    height: 28px;
    width: 28px;
    min-width: 28px;
}

.help-callout p {
    color: var(--primary-green-dark);
    margin:0 5px;
    font-size:.9em;
    font-weight:500;
}

.help-callout p.signup {
    background: var(--primary-green-dark);
    color:var(--white);
    font-size: .85em;
    padding: 2px 14px 1px;
    border-radius: 18px;
    width:fit-content;
    border: 1px solid var(--white);
    margin-top: 5px;
}

/** end ask for help callout **/

/**  helpful form  **/

.helpful.bottom {
    border-top: 1px solid var(--middlegrey);
    padding-top: 10px;
    margin-top: 10px;
}

.helpful .initial {
    align-items: center;
}

.helpful .initial button {
    margin-left:10px;
}

.helpful .suggestion textarea {
    margin:5px 0 10px;
}

/**  end helpful form  **/

@media (max-width: 599px) {
    
    .hd.flex.container.flexrow {
        height: initial;
        padding: 10px 15px;
        box-sizing: border-box;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hd.flex.container.flexrow .back-holder{
        margin-bottom:10px;
        margin-left:0;
    }
    
    .hd > .widget.searchbox {
        position: absolute;
        top: 7px;
        right: 5px;
        width: 70%;
    } 
    
    .holder.search {
        margin:0;
        width: 100%;
        padding: 10px;
        border-radius: 0;
        border: 0;
    }
    
    .hd h1 {
        margin: 0;
        padding: 0;
        white-space: normal;
    }
    
    .bd .panel.fixed-width {
        display: none;
    }
    
    button.help-print {
        display:none;
    }
    
    .bd article.panel.content,
    .bd section.panel.content {
        padding: 10px 15px;
    }
}

@media (min-width: 800px) {
    .panel.content.fill .content img{
        max-width: 500px;
    }
}

@media (min-width: 900px) {
    .linkSignIn {
        color: #ffffff;
        background-color: #d74800;
        cursor: pointer;
        display: inline-block;
        padding: 0 20px;
        display: flex;
        align-items: center;
        height: 50px;
        border: none;
        font-size: 1em;
        font-weight: 500;
        font-family: 'Roboto', verdana, helvetica, arial, sans-serif;
    }
    .linkSignIn:hover,
    .linkSignIn:active{
        background-color: #c14e02;
    }
    .header-link {
        padding: 0 14px;
        color: #ffffff;
        fill: #ffffff;
        height: 50px;
        display: flex;
        align-items: center;
    }
    .header-link:hover {
        color: #ffffff;
        fill: #ffffff;
        background-color: #00ac39;
    }
}

@media (max-width: 950px) {
    .help-topics {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 600px) and (max-width: 1200px) {
    .holder.search {
        width: 40%;
        margin: 0 auto 0 250px;
    }
}

@media (min-aspect-ratio: 16 / 10) and (max-height: 500px) {
    section.panel .bottom {
        display:none;
    }
    
    section.welcome h1 {
        display:none;
    }
    
    .page-help .holder.search {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
}

/** HELP EDITOR **/

body.page-helpeditor {
    margin:0;
    display: flex;
    height: 100vh;
    max-height: -webkit-fill-available;
    flex-grow: 1;
}

.page-helpeditor #catlist_options {
    padding: 2px 10px;
    box-sizing: border-box;
    border-right: 1px solid var(--middlegrey);
    border-bottom: 1px solid var(--middlegrey);
}

.page-helpeditor #catlist_options div {
    display: flex;
    margin-bottom: 2px;
    align-items: center;
}

.page-helpeditor .holder.contenttype {
    margin:5px 0;
    padding-bottom:5px;
    border-bottom:1px solid var(--middlegrey);
}

.page-helpeditor label {
    width: 86px;
    font-size: .9em;
}


.page-helpeditor .resp-table-row label {
    width:100px;
} 


.page-helpeditor .contenttype label {
    width: unset;
    font-size: .9em;
}

.page-helpeditor label.date {
    width: 100px;
}

.page-helpeditor textarea,
input[type="text"]{
    flex:1;
    font-family: 'Roboto', Verdana, Arial, sans-serif;
    font-size: 12pt;
    border:1px solid lightgrey;
}

input.image-filter {
    flex: unset;
    margin-left: auto;    
}

.page-helpeditor .resp-table-row.body #topic_html {
    font-family: Courier, serif;
}

.page-helpeditor select {
    flex: 1;
    height: 24px;
}

.page-helpeditor .toolbar > :nth-child(3) {
    margin-left:auto;
}

.page-helpeditor .toolbar button {
    margin-right:10px;
}

.page-helpeditor button.secondary {
    cursor:pointer;
}

.page-helpeditor button.secondary[disabled="disabled"],
.page-helpeditor button.secondary[disabled]{
    cursor:initial;
    opacity:.5;
    pointer-events:none;
}

.page-helpeditor .bd .fixed-width {
    overflow:auto;
}

.page-helpeditor .bd > .fixed-width li {
    display:flex;
    white-space:unset;
}

#helplist_output {
    overflow: auto;
}

.page-helpeditor ul {
    list-style-type:none;
    padding: 0px;
    margin: 0px; 
    overflow: auto;
}

.page-helpeditor .body ul,
.page-emailmanager .resp-table-row ul,
.page-help .content ul:not(.popular):not(.features) {
    list-style-type: disc;
    padding: 0 20px;
    margin: 0 1em;
    overflow: auto;
}

.page-helpeditor .body ul li,
.page-help .content ul:not(.popular):not(.features) li {
    border-bottom:none;
}

.page-helpeditor dl {
    margin: 0;
}

.page-helpeditor dl p {
    margin: 0;
    padding: 5px;
    border-bottom: 1px solid var(--grey);
    border-top: 1px solid var(--grey);
    font-weight: bold;
}

.page-helpeditor li {
    border-bottom: 1px solid var(--middlegrey);
}
.page-helpeditor li:last-child {
  border-bottom: none;
}
.page-helpeditor .fixed-width li:nth-child(even) {
  background: var(--lightgrey);
}

.page-helpeditor .selected{
    color:blue;
    border-left:5px solid blue;
    font-weight: bold;
}

.page-helpeditor .box {
    display: flex;
}

.page-helpeditor .editable_div {
    border: 1px solid var(--middlegrey);
    /* leave inline-blovk */
    display:inline-block; 
    overflow: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    flex:1;
}

.page-helpeditor .form-holder {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.page-helpeditor article.panel.content,
.page-helpeditor section.panel.content {
    overflow:hidden;
    padding: 8px 20px;
}

.page-helpeditor .resp-table-row.body {
    flex: 1;
    display: flex;
    overflow: auto;
    align-items: flex-start;
    flex-direction: column;
}

.page-helpeditor .resp-top {
    width: 100%;
    display: flex;
    flex-wrap:wrap;
}

.page-helpeditor .resp-table-column{
    flex:1;
    margin-right:20px;
}

.page-helpeditor .resp-table-row {
    min-height: 28px;
    display: flex;
    align-items: center;
}


.page-helpeditor .resp-table-row.poster img {
    height:32px;
    margin-left:32px;
}

.page-helpeditor .resp-table-row.poster button.remove svg {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
}

.page-helpeditor .resp-table-row.poster button.remove {
  border:0;
  background: none;
  height: 24px;
  width: 24px;
  margin-left: 12px;
  position: relative;
}

.page-helpeditor .resp-table-row.poster img[src=""] + button.remove {
    display:none;
}


body.page-helpeditor .resp-table-row.desc {
    align-items: unset;
}

body.page-helpeditor .resp-table-row.desc label{
    position: relative;
    top: 3px;
}

.page-helpeditor .resp-table-column.iddate{
    flex:unset;
}

.page-helpeditor .resp-table-column.iddate a{
    vertical-align:middle;
}

.page-helpeditor .resp-table-column.iddate svg{
    margin-left:5px;
    height:20px;
    width:20px;
    position:relative;
    top:1px;
}

.page-helpeditor .resp-table-column.checks{
    flex:unset;
    width:80px;
    border: 1px solid var(--middlegrey);
    margin-right: 0;
    padding: 0 5px;
    background: var(--lightgrey);
}

.page-helpeditor .resp-table-full{
    width:100%;
    border-top:1px solid var(--middlegrey);
    margin-top:10px;
    padding: 10px 0;
}

.page-helpeditor .resp-table-header {
    display:flex;
    border-top:1px solid var(--middlegrey);
    padding:5px 0;
}

.page-helpeditor .resp-table-header > .editor.raw_html_toggle.first {
    margin-left:auto;
}

.page-helpeditor .resp-main {
    display:flex;
    flex-direction:column;
    overflow: hidden;
    flex: 1;
}

.page-helpeditor button.editor {
    border:1px solid grey;
    background: var(--lightgrey);
    border-radius:2px;
    padding:2px 4px;
    margin:0 2px;
    cursor:pointer;
}


.page-helpeditor button.editor.image.dialog {
    margin: 3px 12px 3px 0;
} 

.page-helpeditor button.editor:hover {
    background: var(--middlegrey);
}

.page-helpeditor button.editor[disabled] {
    opacity:.5;
    pointer-events:none;
    cursor:initial;
}

.page-helpeditor button.editor.formatting {
    height:30px;
    width:30px;
}

.page-helpeditor button.editor svg {
    position:relative;
    top:2px;
    pointer-events: none;
}

.page-helpeditor button.editor.image-smaller,
.page-helpeditor button.editor.button {
    margin-left:10px;
}

.page-helpeditor button.editor.template {
    margin-right:10px;
}

.page-helpeditor input::-webkit-calendar-picker-indicator {
    opacity: 100;
}

.page-helpeditor .toolbar_button {
    display: inline-flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 10px;
    font-size: .9em;
    height: 50px;
    justify-content: center;
}

.page-helpeditor .toolbar_button:hover {
    background-color: var(--primary-green);
    outline: none;
}

@media (max-width: 550px) {
    
    body.page-help:not(.loggedin) #t4l_primary {
        display:none;
    }
    
    body.page-help:not(.loggedin) .toolbar ul li a img {
        margin-left:0;
    }
    
    .toolbar #split-nav-left li {
        margin-right: 10px;
        padding: 0;
        margin-left: 8px;
    }
    
    body.page-help:not(.loggedin) .toolbar {
        flex-wrap: unset;
        height: 50px;
    }
    
    .holder.search > input {
        width: 90%;
    }
    
    img {
        max-width: 100%;
    }
    
    div.small img {
        max-width: 200px;
    }
}

.page-helpeditor .modal-content.image.show .library-tabs,
.page-emailmanager .modal-content.image.show .library-tabs {
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid var(--middlegrey);
}

.page-helpeditor .modal-content.image.show .library-tab,
.page-emailmanager .modal-content.image.show .library-tab {
    width: 150px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    border: 1px solid var(--middlegrey);
    border-bottom:none;
    box-sizing: border-box;
    background-color:var(--lightgrey);
}


.page-helpeditor .modal-content.image.show  .library-tab.file,
.page-emailmanager .modal-content.image.show  .library-tab.file{
    background-color: white;
    border-width: 0 0 1px 0;
}

.page-helpeditor .modal-content.image.show .library-tab-icon.file,
.page-emailmanager .modal-content.image.show .library-tab-icon.file {
    background-image: url(/images/themes/1/library_computer.svg);
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-size: 30px 30px;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}


.page-helpeditor .modal-content.image.show .library-tab:not([data-action="file"]):not([data-action="wasabi"]),
.page-emailmanager .modal-content.image.show .library-tab:not([data-action="file"]):not([data-action="wasabi"],[data-action="helpblog"]) {
    display:none;
}


.page-helpeditor .modal-content.image.show ul.wasabi,
.page-emailmanager .modal-content.image.show ul.wasabi {
    margin-top:12px;
    flex-wrap:wrap;
    padding:12px;
}

.page-helpeditor .modal-content.image.show ul.wasabi > li,
.page-emailmanager .modal-content.image.show ul.wasabi > li, 
.page-emailmanager .modal-content.image.show ul.images > li{
    background-color: #FFF;
    cursor: pointer;
    display:flex;
    flex-flow:column nowrap;
    align-items: center;
    justify-content:flex-start;
    border:1px solid var(--lightgrey);
    border-radius: 4px;
    box-sizing: border-box;
    height:200px;
    width:150px;
    margin:0 12px 24px 0;
    overflow: hidden;
}

.page-helpeditor .modal-content.image.show ul li.chosen,
.page-emailmanager .modal-content.image.show ul li.chosen{
    background: var(--primary-color-light);
    border-color: var(--primary-color);
}

.page-helpeditor .modal-content.image.show ul.wasabi > li.chosen,
.page-emailmanager .modal-content.image.show ul.wasabi > li.chosen {
    box-shadow: 0 0 5px var(--primary-color);
} 

.page-helpeditor .modal-content.image.show ul.wasabi > li > img,
.page-emailmanager .modal-content.image.show ul.wasabi > li > img {
    --max-height: 200px;
    /* And limit it with our function above (pick 100% with min() if this size is bigger than parent's width to prevent overflowing) */
    max-width: min(100%, calc(var(--max-height, 200px) * var(--img-ratio, 1)));
}

.page-helpeditor .modal-content.image.show ul.wasabi > li > span,
.page-emailmanager .modal-content.image.show ul.wasabi > li > span {
    display:flex;    
    font-size:70%;
    max-width:100%;
    overflow-x: hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    margin: auto 5px 5px;
}

