
/*-----------------------------------------------------------------------------------

Program

-----------------------------------------------------------------------------------*/

.page section.program::before, .page section.program >h2::before, .icons .program, .page aside section.program > h2, .categories a.program:hover  {
    background-color: #963028;
    color: #fff;
}
.page  section.program > h2::after, .icons .program::after {
    background-image: url(../../images/program.png);
}
.page aside section.program > h2::after {
    border-bottom-color: #963028;
}
.page  section.items.program .item {
    border-bottom: 1px dotted #d1d1d1;
}
.page  section.items.program .item:last-child {
    border-bottom: none;
}

section.program > a {
    margin-left: 15px; 
    display: inline-block;
    position: relative;
    line-height: 1.2;
}

section.program > a::before {
    content: ' ';
    display: inline-block;
    height: 15px;
    width: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 3px;
    left: -20px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg height='48' viewBox='0 0 48 48' width='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath clip-rule='evenodd' d='M37 47H11c-2.21 0-4-1.79-4-4V5c0-2.21 1.79-4 4-4h19c.32 0 .593.16.776.395l9.83 9.83c.234.182.394.455.394.775v31c0 2.21-1.79 4-4 4zM31 4.38V11h6.62L31 4.38zM39 13h-9c-.553 0-1-.448-1-1V3H11c-1.104 0-2 .896-2 2v38c0 1.104.896 2 2 2h26c1.104 0 2-.896 2-2V13zm-6 26H15c-.553 0-1-.447-1-1 0-.552.447-1 1-1h18c.553 0 1 .448 1 1 0 .553-.447 1-1 1zm0-8H15c-.553 0-1-.447-1-1 0-.552.447-1 1-1h18c.553 0 1 .448 1 1 0 .553-.447 1-1 1zm0-8H15c-.553 0-1-.447-1-1 0-.552.447-1 1-1h18c.553 0 1 .448 1 1 0 .553-.447 1-1 1z' fill-rule='evenodd'/%3E%3C/svg%3E");
}



.program-table {
    width: 100%;
    display: flex;
    flex-flow: column;
}
.program-table.admin {
    margin: 12px 0; 
}
.program-table .row {
    display: flex;
    align-items: center;
    margin: 0;
}
.program-table div.time {
    flex: 0 0 65px;  
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wp-admin .program-table div.time {
    cursor: pointer;  
}
.wp-admin .program-table div.time:hover,
.program-table div.time.active {
    background: #eee;
}

.program-table div.events {
    display: flex;
    width: 100%;
    flex: 1;
    flex-flow: row wrap;
}
.program-table .event {
    border: 1px solid #eee;
    padding: 6px;
    position: relative;
    flex: 1;
    flex: 1 1 calc(50% - 65px);
}
.program-table .events.multiple .event {
    max-width: calc(50% - 14px);
}
.wp-admin .program-table .event {
    cursor: pointer;
}
.wp-admin .program-table .event:hover,
.program-table .event.active {
    background: #eee;
    border-color: #777;
}
.program-table .event header {
    font-weight: bold;
    position: relative;
}
.program-table .event p {
    margin: 6px 0;
    line-height: 1.2;
}
.program-table .event p.speakers,
.program-content p.speakers {
    font-style: italic;
    margin-top: 6px;
}
.program-table .event p.location,
.program-content p.location {
    text-transform: uppercase;
    margin-top: 8px;
    color: #666;
}
.program-content .top {
    background: #eee;
    padding: 24px 24px 12px;
    border: 1px solid #dad9d9;
}
.program-content header {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}
.program-content p {

}
.program-content .content {
    padding: 24px 24px 12px;
}
.program-table.admin .event p.content {
    font-weight: bold;
    font-size: 80%;
    margin-top: 4px;
}
.program-toolbar {
    background: #f6f7f7;
    margin: -6px -12px 0;
    border-bottom: 1px solid #dcdcde;
    padding: 6px 12px;
}
.program-toolbar button {

}
.program-edit {
    border-bottom: 1px solid #dcdcde;
    margin: 0 -12px;
    padding: 6px 12px;
    background: #f6f7f7;
    display: flex;
    min-height: 38px;
}
.program-edit.event {
    min-height: 120px;
    align-items: flex-start;
}
.program-edit-content {
    flex: 1;
    display: flex;
    flex-flow: row wrap;
}
.program-edit-content-row {
    display: flex;
    flex: 1 0 100%;
}
.program-edit input {
    flex: 1;
    height: 38px;
    border-radius: 0;
    margin: 0
}
.program-edit button {
    height: 38px;
}
.program-edit textarea {
    flex: 1
}
.public-program {
    margin-top: 24px;
}
.public-program  .row {
    margin: 1px 0;
}

.public-program .events {
}
.public-program .event {
    background: #fafafa;
    margin: 0 2px 2px 0;
    flex: 1 1 calc(50% - 65px);
    border: none;
    position: relative;
}
.public-program .event.have-content {
    padding-bottom: 24px;
}
.public-program .event header {
    font-size: 15px;
    line-height: 1.2;
}
.public-program .event p {
    font-size: 15px;
}
.public-program .event .read-more {
    margin-top: 5px;
    text-align: right;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 0.3px;
    position: absolute;
    bottom: 0;
    width: calc(100% - 16px);
}
.public-program .event .read-more a {
    color: #eb690a;
}
.hidden-content {
    display: none;
}


#program-content-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: #e9eaece3;
    z-index: 999;
    xdisplay: flex;
    align-items: center;
    justify-content: center;
    padding: 5%;
    display: none;
}
#program-content-overlay .inner {
    background: #fff;
    flex: 1 1 50%;
    max-width: 950px;    
    max-height: calc(100% - 100px);
    overflow: scroll;
}
#program-content-overlay.open {
    display: flex;
}
#program-content-overlay .program-content {
}
#close-program-content-overlay {
    text-align: right;
    position: relative;
    top: -11px;
}
#close-program-content-overlay a {
    color: #eb690a;
    text-align: right;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.3px;
    background: #f6f6f7;
    padding: 12px;
    border-radius: 4px;
    margin: 12px;
}


@media (max-width: 450px) {
    .public-program .row {
        margin: 6px 0;
        flex-flow: column;
    }
    .public-program div.time {
        flex: 0 0 30px;
        justify-content: left;
        padding-left: 12px;
    }
}
@media (max-width: 610px) {
    .public-program .event {
        flex: 1 1 100%;
    }
    .program-table .events.multiple .event {
        max-width: inherit;
    }
}
