/** variables **/

:root {
    --top-height: 78vh;
    --top-ad-height: 18vh;
    --top-content-height: calc(var(--top-height) - var(--top-ad-height));
}


/** modifiers **/

.border-right {
    border-color: hsla(165,6%,86%,0.4) !important;
}

/** videos main structure **/
.videos__top {
    width:100%;
    position: relative;

    margin-top: -6rem;
    padding-top: 6rem;
}

.videos__top .row{
    height:100%;
}

.videos__divider {
  width:100%;
  height:2px;
  background-color:hsla(165,6%,86%,0.7);
  margin-top:1rem;
  margin-bottom:1rem;
}


.videos__top-content {
    position: relative;
    overflow:hidden;
}

.videos__top-promo {
    height:var(--top-ad-height);
    text-align:center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.videos__top-promo img {
    max-height: var(--top-ad-height);
    width:auto;
}

.videos__promo .promo-wrapper img {
    max-height: var(--top-ad-height);
    width:auto;
}

/** videos sidebars **/
.videos__top-content .videos__top-sidebar--left,
.videos__top-content .videos__top-sidebar--right {
    background-color:white;

    color:black;
    writing-mode: vertical-rl;
    text-align: center;

    position:absolute;
    height:100%;
    width:50px;
    top:0;
}

.videos__top-content .videos__top-sidebar--left a,
.videos__top-content .videos__top-sidebar--right a {
    color: black !important;
}

.videos__top-sidebar--left {
    left:0;
}

.videos__top-sidebar--right {
    right: 0;
}

@media(max-width:567px) {
    .videos__top-sidebar--right, .videos__top-sidebar--left {
        box-shadow: 0px 0px 8px rgba(0,0,0,.6);
        z-index:99;
    }

    .videos__top-sidebar--right {
        transform:translateX(32px);
        transition: right .5s cubic-bezier(0.5, 0.05, 0.6, 0.2);
    }

    .videos__top-sidebar--right:hover {
        transform:translateX(0px);
        transition: right .5s cubic-bezier(0.5, 0.05, 0.6, 0.2);
    }

    .videos__top-sidebar--left {
        transform:translateX(-32px);
        transition: left .5s cubic-bezier(0.5, 0.05, 0.6, 0.2);
    }

    .videos__top-sidebar--left:hover {
        transform:translateX(0px);
        transition: left .5s cubic-bezier(0.5, 0.05, 0.6, 0.2);
    }
}


.videos__top-content .videos__top-sidebar--left h1, 
.videos__top-content .videos__top-sidebar--right h1 {
    font-size: 1.4em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin:unset;
}

@media(max-width:567px) {
    .videos__top-sidebar--right, .videos__top-sidebar--left {
        box-shadow: 0px 0px 8px rgba(0,0,0,.6);
        z-index:99;
        width:25px !important;
    }

    .videos__top-sidebar--right i, .videos__top-sidebar--left i {
        font-size:.9em;
    }
}

/** videos main featured widget **/
.videos__top-widget {
    width:calc(100% - 200px);
    margin:0 auto;
}

.videos__top-widget__box {
    position:relative;
    background-color:white;
    width:100%;
}

.videos__top-widget__box.show {
    background-color: transparent;
}

.videos__top-widget__box .row:first-child {
    position:relative;
}

.videos__top-widget__box-content {
    width:100%;
    padding:1rem;
    color: hsla(0,0%,0%,1) !important;
}

@media(min-width:768px) {
    .videos__top-widget__box-content {
        position:absolute;
        top:50%;
        left:50%;
        transform:translate(-50%, -50%);
    }
}

.videos__top-widget__box-header h1 {
    color:black;
    font-size:1.5rem;
    font-weight:600;
    text-transform: uppercase;
    margin-bottom:.8rem;
}


.videos__top-widget__box-media {
    width:100%;
    height:100%;
}

.videos__top-widget__box-media iframe {
    width:100%;
    height:100%;
}

.videos__top-widget__box-blurb {
    font-size:1rem;
    color:black;
    padding-top:.5rem;
    padding-bottom:.5rem;
}

.videos__top-widget__box-meta {
    margin-top:1rem;
    font-size:.7em;
}

.videos__top-widget__box-action {
    text-align:center;
    margin-top:.5rem;
    font-size:1rem;
    color:black;
}

.videos__top-widget__box-action span:before {
    margin-top:.5rem;
    border-color:black !important;
}

.videos__top-widget__box-action a {
    color: black !important;
    text-transform: uppercase;
}

@media(max-width:767px) {
    .videos__top-widget {
        width:100%;
    }

    .videos__top-widget .row {
        flex-direction: column-reverse;
    }

    .videos__top-widget__box {
        padding:1rem 0;
    }

    .videos__top-widget__box.show {
        padding:0 18px;
    }

    .videos__top-widget__box-content {
        padding:.5rem .25rem;
    }

    .videos__top-widget__box-header h1 {
        font-size: 1.2em;
        margin-bottom:0;
        margin-top:.5rem;
    }

    .videos__top-widget__box-blurb {
        font-size:.9em;
    }
}

@media(max-width:567px) {
    .videos__top-widget__box-header h1 {
        font-size: .9em;
    }

    .videos__top-widget__box-blurb {
        font-size:.7em;
    }
}

@media(min-width:768px) and (max-width:1024px) {

    .videos__top-widget {
        width:calc(100% - 100px);
    }

    .videos__top-widget__box-content {
        padding:.5rem;
    }

    .videos__top-widget__box-header h1 {
        font-size:.8em;
        margin-bottom:.3rem;
    }

    .videos__top-widget__box-blurb {
        font-size:.5em;
        padding:unset;
    }

    .videos__top-widget__box-meta {
        font-size:.4em;
        margin-top:.25rem;
    }

    .videos__top-widget__box-action {
        font-size:.7em;
    }

    .videos__top-widget__box-action .more-link:before {
        border-width: 2px;
        width:10px;
        height:10px;
        right:0px;
    }
}

/** videos listing **/
.videos__listing {
    padding: 6rem;
    padding-top: 1rem;
    background-color:white;
    width:100%;
}

.videos__listing-post {
    position: relative;
    margin-bottom: 30px;
    padding: .15rem;
    border: 2px solid hsla(210,3%,76%,0.8);
}

.videos__listing-post img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.videos__listing-post:hover img {
    filter:brightness(.3);
}

.videos__listing-post__title {
    font-family: 'AlienwareBold', sans-serif;
    background-color:white;
    color:black;
    padding:.5rem 2rem;
    text-transform: uppercase;
    width:100%;
    height: 60px;
    transition: all .3s;
}

.videos__listing-post:hover .videos__listing-post__title {
    background-color:rgb(60,58,61);
    color:white;
}

.videos__listing-post__info {
    position:absolute;
    top: 50%;

    width:100%;
    padding:1.25rem;
    text-align: center;

    opacity: 0;
    transform: translateY(-60%);
    transition: all .3s;
}

.videos__listing-post:hover .videos__listing-post__info {
    opacity: 1;
    transform: translateY(-50%);
}

.videos__listing-post-at {
    color: white;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    opacity: 0;
    transform: translateX(2rem);
    transition: all .3s;
}

.videos__listing-post:hover .videos__listing-post-at {
    opacity: 1;
    transform: translateX(1rem);
}

.videos__listing-post__info * {
    color:white;
}

.videos__listing-post__info strong {
    font-size:1.2em;
    font-weight:600;
}

.videos__listing-post__info small {
    font-size:1rem;
    font-weight:2;
    display:block;
}

.videos__listing-post__info .btn {
    margin-top:.5rem;
    font-size:.8em;
    padding: .5rem 2rem;
    border: 1px solid hsla(0, 0%, 100%, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: hsla(0, 0%, 100%, 1);
    background: transparent;
    text-decoration: none;
    transition: all .2s cubic-bezier(0.5, 0.05, 0.6, 0.2);
}

.videos__listing-post__info .btn:hover {
    background: hsla(0, 0%, 100%, 1);
    color: hsla(240, 1%, 16%, 1);
}

@media(max-width:576px) {
    .videos__listing {
        padding:1rem .5rem;
    }

    .videos__listing .row > [class*="col-"] {
        padding-left:7.5px;
        padding-right:7.5px;
    }

    .videos__listing-post__info {
        padding:.25rem;
    }

    .videos__listing-post__title {
        padding:.25rem;
        font-size:.8em;
        height:60px;
    }
}

/**
 ** Handle individual Videos view
 **/

.videos__top-widget img {
    width:100%;
    height:100%;
    object-fit: cover
}

.videos__landing {
    width:100%;
    margin:0 auto;
    background-color:rgba(255,255,255,.7);
    padding: 1rem;
    margin-bottom:1rem;
}

.videos__landing * {
    color:black;
}

.videos__landing-header {
    padding: .75rem 10rem;
    border-bottom: 1px solid hsla(165,6%,86%,0.4);
    text-align:center;
}

.videos__landing-header h1 {
    font-size:1.4em;
    margin-bottom: 1rem;
}

.videos__landing-meta {
    width:100%;
    margin-top:.5rem;
}

.videos__landing-meta .vote-info {
    text-align:center;
}

.videos__landing-content {
    font-size:.9em;
    padding: .5rem .25rem;
}

.videos__landing-actions {
    display:flex;
}

.videos__landing-actions .btn-group {
    width:80%;
    margin: 0 auto;
}

@media(max-width:767px) {

    .videos__landing {
        width:95%;
    }

    .videos__landing-header {
        padding: .75rem 4rem;
    }

    .videos__landing-actions .btn-group {
        width:100%;
        flex-wrap: wrap;
    }
}

.videos__landing-comments, .videos__landing-comments__listing {
    margin:1rem;
}

.videos__landing-comments__meta {
    font-size:.9em;
    padding: 1rem .7rem;
    border-top: 1px solid hsla(165,6%,86%,0.4);
    border-bottom: 1px solid hsla(165,6%,86%,0.4);
}

.videos__landing-comments__post-options {
    text-align:center;
}

.videos__landing-comments__post-options .videos__landing-comments__post-option {
    display:inline;
    border-right: 1px solid hsla(165,6%,86%,0.4);
    padding:.5rem;
}

.videos__landing-comments__post-options .videos__landing-comments__post-option:last-child {
    border:unset;
}

.videos__landing-comments__post-content {
    padding:1rem 4rem;
    font-size:.9em;
}

.featured-widget {
    padding-left: 6rem;
    padding-right: 6rem;
    width: 100%;
}
.featured-widget .videos__listing-post {
    width: 33.33333%;
    padding-right: 10px;
    padding-left: 10px;
    margin-left: 5px;
    margin-right: 5px;
    border: none;
}
.featured-widget .videos__listing-post .videos__listing-post__info {
    padding: 1.25rem 1.75rem;
}

@media(max-width:576px) {

    .featured-widget {
        padding:1rem;
    }

    .featured-widget .videos__listing-post {
        width:100%;
    }

    .featured-widget .videos__listing-post .videos__listing-post__info {
        padding: .25rem;
    }
}
