* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.tns-nav {
    display: none;
}

#tns1-ow {
    position: relative;
}

.tns-horizontal.tns-subpixel > .tns-item {
    padding: 5px;
}

.tns-controls {    
    position: absolute;
    height: calc(100% - 20px);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 999;
    pointer-events: none;
    flex-direction: row;
    top: 5px;
}

.tns-controls > button {
    height: 100%;
    border: 0;
    width: 25px;
    background: rgba(244, 244, 244,0.5);
    pointer-events: auto;
    transition: all 0.5s;
    margin: 0;
    color: #ffbd59;
}

.tns-controls > button:hover {
    background: rgba(244, 244, 244, 0.8);
}


#tns1-iw {
    overflow: hidden;
}

.grid {
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.grid .grid-item {
    width: calc(100% / 3);
    background-size: cover;
    background-position: 50% 50%;
    height: 200px;
    cursor: pointer;
}

.grid .grid-item-body {
    padding-top: 45%;
    position: relative;
    height: 100%;
    border-radius: 32px;
    border: 3px solid #ffbd59;
    background-color: rgba(255,255,255,0);
    display: block;
    text-decoration: none;
}
.grid .grid-item-body .item-title {
    position: absolute;
    top: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0);
    display: inline-block;
    font-size: 2em;
    line-height: 1em;
    min-width: 0.5em;
    padding: 0.1em 0.5em 0.3em 0.2em;
    border-radius: 28px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: start;
    flex-direction: column;
    transition: all 0.5s;
    pointer-events: none;
}

.youtube-icon-parent {
    position: absolute;
    right: 20px;
    transition: all 0.5s;
    left: 44%;
    top: 0%;
}

.youtube-icon {
    width: 32px;
    height: 32px;
    transition: all 0.5s;
}

.grid .grid-item-body:hover .item-title {
    background-color: rgba(0, 0, 0, 0.8);
}

.grid-item-body:hover .youtube-icon-parent {
    top: 32%;
    left: 38%;
}

.grid-item-body:hover .youtube-icon {
    width: 64px;
    height: 64px;
}

.grid .grid-item-body .item-extra {
    color: #fff;
    font-size: 15px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
            line-clamp: 2; 
    -webkit-box-orient: vertical;
    margin: 0;
}

.grid-item-body {
    background-size: cover;
}

.item-youtube-title {
    background: rgba(0, 0, 0, 0.5);
}

@keyframes moveToCenter {
    from {
        text-align: right;
    } to {
        text-align: center;
    }
}