:root .video-library {
    --transition-drawer-smooth: .3s cubic-bezier(1, 0.41, 0, 1.01);
}
:root .video-library.diamond{
    --color-primary: #837873;
    --color-primary-light: #83787370;
    --color-primary-dark: #837873dd;
    --color-highlight: #B46A55;
    --color-text-dark-1: #2D2A2A;
    --color-text-dark-2: #545559;
}
:root .video-library.schrock{
    --color-primary: #c5ced9;
    --color-primary-light: #c5ced970;
    --color-primary-dark: #4471a7dd;
    --color-highlight: #006aa6;
    --color-text-dark-1: #2D2A2A;
    --color-text-dark-2: #545559;
    --font-bold: 'Foundry Sans W01 Demi';
    --font-light: 'Foundry Sans w01 Lt';
}
:root .video-library.kemper{
    --color-primary: #8f1336;
    --color-primary-light: #34353870;
    --color-primary-dark: #8f1336dd;
    --color-highlight: #a70b32;
    --color-text-dark-1: #2D2A2A;
    --color-text-dark-2: #545559;
    --font-bold: 'Nexa W01 Bold';
    --font-light: 'Nexa W01 light';
}
:root .video-library.Thomasville,
:root .video-library.Thomasvilleca {
    --color-primary: #041c2c;
    --color-primary-light: #041c2ce6;
    --color-primary-dark: #041c2ce6;
    --color-highlight: #041c2c;
    --color-text-dark-1: #041c2c;
    --color-text-dark-2: #565059;
    --font-bold: 'Old Standard TT', sans-serif;
    --font-light: 'Raleway', sans-serif;
}

.video-library .category-wrapper h1 {
    font-family: var(--font-bold);
    line-height: 1.2;
}
.video-library:not(.diamond)  h2,
.video-library:not(.diamond) .mb-lightbox-mainTitle {
    font-weight: normal;
    font-family: var(--font-bold);
    text-transform: none;
    border-bottom: none;
}
.video-library:not(.diamond)  h2 {
    line-height: 1.2;
}
.video-library:not(.diamond)  p,
.video-library:not(.diamond) .mb-lightbox-category,
.video-library:not(.diamond) .mb-lightbox-subTitle,
.video-library:not(.diamond) .mb-lightbox-close {
    font-family: var(--font-light);
    font-weight: normal;
}
.video-library:not(.diamond) .breadcrumb-video ul li > a {
    font-weight: normal;
    font-family: var(--font-bold);
}
.video-library:not(.diamond) .breadcrumb-video ul li {
    font-family: var(--font-light);}

.video-library.kemper .breadcrumb-video ul li > a,
.video-library.kemper .breadcrumb-video ul li {
    color: #fff;
}
.main-content.video-library {
    padding-top: 50px;
}

.hero-video-wrapper,
.hero-video-wrapper *,
.video-catergory, 
.video-catergory *  {
    box-sizing: border-box;
}
.play-icon--flat {
    position: absolute;
    top: calc(50% - 50px);
    left: calc(50% - 43px);
    height: 100px;
    width: 86px;
    background: #fff;
    clip-path: polygon(100% 50%, 0 0, 0 100%);
    height: 100px;
    width: 86px;
    background: #fff;
    clip-path: polygon(100% 50%, 0 0, 0 100%);
    transition: .2s cubic-bezier(1, -0.53, 0, 1.39);
}   
.hero-video-wrapper  {
    width: 100%;
    height: 530px;
    position: relative;
    overflow: hidden;
}

.hero-video-wrapper .img-wrapper {
    height: 100%;
    cursor: pointer;
}
.hero-video-wrapper .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-video-wrapper .video-text-overlay {
    position: absolute;
    width: 100%;
    padding: 20px 25px 35px;
    bottom: 0;
    background: var(--color-primary-light);
}
.hero-video-wrapper:hover .play-icon--flat {
    transform: scale(1.2);
}
.video-text-overlay h2 {
    font-weight: bold;
    font-size: 35px;
    color: #fff;
    margin: 0.5em 0;
    text-transform: none;
    border-bottom: none;
}
.video-text-overlay p {
    font-size: 16px;
    color: #fff;
}

.category-wrapper > h1 + p {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

/* Thomasville override */

.Thomasville .img-wrapper.thumb-image,
.Thomasvilleca .img-wrapper.thumb-image {
    background: #041c2c;
}
.Thomasville .video-item .video-description,
.Thomasvilleca .video-item .video-description {
    bottom: -73%;
}
.Thomasville .main-content.video-library,
.Thomasvilleca .main-content.video-library {
    padding-top: 0;
}
.Thomasville .pagetools-section,
.Thomasvilleca .pagetools-section {
    padding-top: 20px;
    margin-bottom: 0;
}
 
.Thomasville .category-wrapper,
.Thomasvilleca .category-wrapper {
    padding-top: 0;
}

.Thomasville .category-wrapper h1,
.Thomasville .category-header h2,
.Thomasvilleca .category-wrapper h1,
.Thomasvilleca .category-header h2 {
    color: #041c2c;
}

.Thomasville .category-wrapper h1,
.Thomasvilleca .category-header h1 {
    margin-bottom: 10px;
}
.Thomasville .category-wrapper h1 + p,
.Thomasvilleca .category-header h1 + p {
    margin-bottom: 30px;
}
.Thomasville .category-header-description p,
.Thomasvilleca .category-header-description p  {
    color: #565059;
}

@media (max-width: 767px) {
   
    .infoBox.lg-div, .link-box.lg-div  {
        display: none;
    }
    .infoBox.xs-div, .link-box.xs-div  {
        display: block;
        margin-bottom: 35px;
    }
    .main-content.Thomasville, .main-content.Thomasvilleca {
        padding: 0;
    }
    .video-item .video-copy-text {
        opacity: 1!important;
    }
}

@media (min-width: 768px) {
    .infoBox.lg-div, .link-box.lg-div  {
        display: none;
    }
    .infoBox.xs-div, .link-box.xs-div  {
        display: block;
        margin-bottom: 50px;
    }
  
}

@media (min-width: 992px) {
    .infoBox.lg-div, .link-box.lg-div  {
        display: block;
        margin-top: 30px;
        font-size: 16px;
    }
    .infoBox.xs-div, .link-box.xs-div  {
        display: none;
    }
}
.video-detail-page {
    padding-bottom: 50px;
    padding-top: 0!important;
}
.video-detail-page .middle-content p {
    padding-bottom: 20px;
}
.video-detail-page .flex-wrapper .pagetools-section {
    padding-top: 0;
}

/* video category */
.video-library .middle-content {
    margin-top: 15px;
}
.category-wrapper {
    padding-top: 15px;
}
.category-wrapper .video-category {
    margin-bottom: 50px;
}
.category-header h2 {
    font-size: 32px;
    color: var(--color-text-dark-2);
    margin: 0.5em 0;
    font-weight: bold;
}
.category-header .category-header-description p {
    font-size: 18px;
    color: var(--color-text-dark-1);
}
.category-header-description {
    margin-bottom: 15px;   
}
.category-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 25px;
}
.video-item .thumb-image img {
    width: 100%;
    position: relative;
}
.video-item {
    position: relative;
    overflow: hidden;
}
.video-item .video-description {
    text-decoration: none;
    position: absolute;
    left: 0;
    bottom: -70%;
    z-index: 999;
    width: 100%;
    height: 100%;   
    background: var(--color-primary-dark);
    padding: 15px;
    color: #fff;
    transition: var(--transition-drawer-smooth);
    cursor: pointer;
    box-sizing: border-box;
}
.video-description p.video-title:first-child {
    padding: 4px 0px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

.video-item .video-copy-text {
    margin-top: 2px;
    height: 50px;
    overflow-y: auto;
    padding: 5px 0;
    margin-bottom: 10px!important;
    opacity: 0;
    transition: .2s linear;
}
.video-item:hover .video-copy-text {
    opacity: 1;
}

.video-item .video-copy-text span {
    word-break: normal;
}
.video-item .video-copy-text,
.video-item .play-icon {
    font-size: 12px;
    line-height: 15.6px;
    color: #fff;

}

.video-item .play-icons {
    display: inline-block;
    padding-top: 4px;
    padding-left: 10px;
}

.video-item .play-icon--circle {
    margin-right: 5px;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: #00000090;
    display: inline-block;
    position: relative;
}
.video-item span.play-icon--circle:after {
    content: '';
    width: 11px;
    height: 14px;
    position: absolute;
    background: #fff;
    clip-path: polygon(100% 50%, 0 0, 0 100%);
    left: calc(50% - 4px);
    top: calc(50% - 7px);
}
.video-description .play-icon {
    display: flex;
    align-items: center;
}
.video-item:hover .video-description {
    position: absolute;
    bottom: 0;
}

/* Lightbox */
.mb-lightbox-overlay {
    display: none;
    position: fixed;
    height: 100%;
    width: 100%;
    background: #000000dd;
    top: 0;
    left: 0;  
    z-index: 99999;
}
.mb-lightbox-overlay iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mb-lightbox-overlay .mb-lightbox-wrapper {
    width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    max-width: 1000px;
    margin: 5% auto;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 10px;
    background: #f6f4f1;
    position: relative;
}

.mb-lightbox-overlay .mb-lightbox-close {
    background: var(--color-highlight);
    display: inline-block;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    border-radius: 3px;
    position: absolute;
    right: 10px;
    cursor: pointer;
    height: 20px;
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.schrock .mb-lightbox-overlay .mb-lightbox-close {
    padding-bottom: 2px;
}
.mb-lightbox-overlay .mb-lightbox-content {
    padding: 30px 80px;
}

.mb-lightbox-overlay .mb-lightbox-category {
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 5px solid var(--color-highlight);
    padding-left: 10px;
}

.mb-lightbox-overlay .mb-lightbox-mainTitle {
    font-size: 36px;
    line-height: 1.4;
    font-weight: bold;
    color: var(--color-text-dark-2);
}

.mb-lightbox-overlay .mb-lightbox-subTitle {
    font-size: 16px;
    color: var(--color-text-dark-2);
    padding: 10px 0 30px
}
.mb-lightbox-youtube {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.mb-lightbox-youtube .previous,
.mb-lightbox-youtube .next {
    content: "";
    position: absolute;
    top: calc(50% - 19px);
    font-size: 50px;
    height: 38px;
    width: 20px;
    cursor: pointer;
    opacity: .8;
    transform: scale(0.9);
    transition: .2s linear;
}

.mb-lightbox-youtube .previous:hover,
.mb-lightbox-youtube .next:hover {
    opacity: 1;
    transform: scale(1);
}
.mb-lightbox-youtube .previous {
    left: -40px;
}
.mb-lightbox-youtube .next {
    right: -40px;
}

.diamond .mb-lightbox-youtube .previous {
    background: url(../png/previous.png) no-repeat;
}

.diamond .mb-lightbox-youtube .next { 
    background: url(../png/next.png) no-repeat;
}

.kemper .mb-lightbox-youtube .previous {
    background: url(../png/previous-2.png) no-repeat;
}

.kemper .mb-lightbox-youtube .next { 
    background: url(../png/next-2.png) no-repeat;
}
.schrock .mb-lightbox-youtube .previous {
    background: url(../png/previous-3.png) no-repeat;
}

.schrock .mb-lightbox-youtube .next { 
    background: url(../png/next-3.png) no-repeat;
}
.Thomasville .mb-lightbox-youtube .previous,
.Thomasvilleca .mb-lightbox-youtube .previous {
    background: url(../png/previous-4.png) no-repeat;
}

.Thomasville .mb-lightbox-youtube .next,
.Thomasvilleca .mb-lightbox-youtube .next { 
    background: url(../png/next-4.png) no-repeat;
}

/* Modified breadcrumb nav and print.share section*/
.video-library .breadcrumb-video {
    float: left;
    width: 75%;
}
.video-library .right-content {
    margin-top: -50px;
}
.breadcrumb-video ul {
    margin: 0;
    padding: 0;
}
.breadcrumb-video ul  li {
    display: flex;
    align-items: center;
}
.breadcrumb-video ul  li > * {
    display: inline-block;
    padding-right: 5px;
}
.breadcrumb-video ul  li > span:last-child {
    font-size: 12px;
}

.breadcrumb-video ul  li > a {
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    color: #66656a;
}
@media (min-width: 768px) {
    .video-description p.video-title:first-child {
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    .video-library .pagetools-section:not(.no-adjust) {
        float: right;
        transform: scale(.8);
        position: relative;
        top: -15px;
    }
    .video-item .video-copy-text {
        display: -webkit-box;
        max-width: 767px;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 54px;
    }

}

@media (max-width: 767px) {
    .video-library .right-content {
        margin-top: 0;
    }
    .video-library .interior-content {
        padding-bottom: 15px;
    }
    .video-library.Thomasville .category-wrapper,
    .video-library.Thomasvilleca .category-wrapper {
        padding-top: 0;
        margin-bottom: 10px;
        background: #fff;
    }
    .Thomasville .video-library .category-wrapper h1,
    .Thomasvilleca .video-library .category-wrapper h1 {
        font-size: 26px;
    }
    .video-library .content-banner {
        display: block;
    }
    .video-text-overlay h2 {
        font-size: 24px;
    }
    .video-text-overlay p,
    .category-wrapper > p {
        line-height: 1.3;
        font-size: 14px;
    }
    .hero-video-wrapper {
        margin-top: 15px;
        height: auto;
    }
    .hero-video-wrapper .img-wrapper {
        height: auto;
    }
    .hero-video-wrapper .img-wrapper img {
        height: 345px;
        margin-bottom: 10px;
    }
    .hero-video-wrapper .video-text-overlay {
        padding: 0;
        background: none;
        color: black;
        position: unset;
    }
    .hero-video-wrapper .video-text-overlay  > * {
        color: var(--color-text-dark-1)
    }
    .category-content {
        grid-template-columns: 1fr;
    }
    .play-icon--flat {
        width: 42px;
        height: 58px;
        top: calc(172px - 29px);
        left: calc(50% - 21px);
    }
    .mb-lightbox-overlay .mb-lightbox-content {
        padding: 20px 10px;
    }
    .mb-lightbox-overlay .mb-lightbox-mainTitle {
        font-size: 18px;
    }
    .category-header h2 {
        margin: 0;
        background: var(--color-highlight);
        font-size: 16px;
        padding: 24px 10px;
        position: relative;
        cursor: pointer;
    }
    .video-category.open .category-header h2 {
        color: #fff;
    }
    .Thomasville .video-category .category-header h2,
    .Thomasvilleca .video-category .category-header h2 {
        color: #fff!important;
    }
    .video-category.open .category-header h2:after {
        content: '-';
    }
    .category-header h2:after {
        content: '+';
        position: absolute;
        right: 20px;
        font-size: 38px;
        font-weight: 100;
        top: 11px;
    }
    .category-header-description p{
        font-size: 14px;
        padding-top: 20px!important;
    }
    .video-category:not(.open) .category-header-description,
    .video-category:not(.open) .category-content {
        display: none;
    }
    .video-category .category-header-description,
    .video-category .category-content {
        padding: 0 20px;
    }

    .video-item .video-description {
        position: unset!important;
        display: block;
        padding: 0;
        background: none;
    }
    .video-description p.video-title:first-child {
        color: var(--color-highlight);
        font-size: 18px;
        font-weight: bold;
        padding-bottom: 5px;
    }
    .video-item .video-description > .video-copy-text {
        color: var(--color-text-dark-1);
        font-size: 13px;
        height: auto;
    }
    .video-item .video-description .play-icon--text {
        display: none;
    }
    .video-item .video-description .play-icon {
        position: absolute;
        top: 44px;
        left: 25%;
        padding: 45px 22%;
        transform: scale(2);
    }
    .category-wrapper .video-category {
        margin-bottom: 1px;
    }
    .video-item {
        padding-bottom: 15px;
    }
    .video-item:not(:last-child) {
        border-bottom: 1px solid #c1bbbb;
    }
    .middle-content {
        margin-top: 15px;
    }
    .breadcrumb-video {
        display: none;
    }
    
    /* site specific overrides */
    .video-library:not(.diamond) .video-category {
        border: 1px solid var(--color-highlight);
    }
    .video-library:not(.diamond) .video-category:not(.open) .category-header h2 {
        color: #000;
    }
    .video-library.kemper .video-category:not(.open) .category-header h2 {
        color: #fff;
    }
    .video-library.schrock .video-category:not(.open) .category-header h2 {
        color: #fff;
    }
    .Thomasville.video-library .video-category:not(.open) .category-header h2 {
        color: #fff;
    }
    .Thomasvilleca.video-library .video-category:not(.open) .category-header h2 {
        color: #fff;
    }
}
@media screen and (min-device-width: 768px) and (max-device-width: 1023px) {
    .video-library .right-content {
        margin-top: 0;
    }
    .video-item .video-copy-text {
        height: 40px;
    }
    .category-content {
        grid-template-columns: 1fr 1fr;
    }
    .video-description p.video-title:first-child {
        font-size: 11px;
    }
}
