/***********************************************
	YouTube Video Grid
**********************************************/

.page-template-template-youtubegrid .content {
	width: 100%;
}

/*.videos {
    display: grid;
    justify-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 40px;
}

.video {
    float: left;
    width: 30.8641975309%;
    margin-left: 3.7037037037%;
    margin-bottom: 40px;
}

.video:nth-of-type(3n+1) {
    margin-left: 0;
    clear: left;
}*/

.video-thumb {
    width: 100%;
	height: 240px;
}

@supports (grid-area: auto) {

    .video {
        width: auto;
        margin-left: 0;
        margin-bottom: 0;
    }

}

.video a {
    text-decoration: none;
}

.video-title {
    font-size: 16px;
    margin-top: 10px;
}

.video-title a {
    color: #333;
}

.video-title a:hover {
    color: #c3251d;
}

a.video-link {
    text-decoration: none;
    display: block;
    position: relative;
}

.video-thumb {
    vertical-align: top;
}

.entry-content .page-numbers {
    margin-left: 0;
    margin-bottom: 0;
}

.videos + .pagination {
    margin: 0;
}

.page-numbers li {
    display: inline;
}

.page-numbers a {
    background-color: #eee;
    color: #333;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 8px 12px;
    text-decoration: none;
}

.page-numbers .current {
    display: inline-block;
    font-size: 16px;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 8px 12px;
}

.page-numbers a:hover,
.page-numbers a:focus,
.page-numbers .current {
    background-color: #c3251d;
    color: #fff;
}

#infscr-loading {
    margin-bottom: 40px;
}

.video-pagination {
    display: none;
}

.loader-ellips {
    position: relative;
    width: 4em;
    height: 1em;
    margin: 10px auto;
    font-size: 20px; /* change size here */
}

.loader-ellips__dot {
    display: block;
    position: absolute;
    width: 1em;
    height: 1em;
    border-radius: 0.5em;
    background: #555; /* change color here */
    -webkit-animation-duration: 0.5s;
            animation-duration: 0.5s;
    -webkit-animation-timing-function: ease;
            animation-timing-function: ease;
    -webkit-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
}

.loader-ellips__dot:nth-child(1),
.loader-ellips__dot:nth-child(2) {
    left: 0;
}
.loader-ellips__dot:nth-child(3) {
    left: 1.5em;
}
.loader-ellips__dot:nth-child(4) {
    left: 3em;
}

h2.entry-title {
    width: 100%;
    display: grid;
}

@-webkit-keyframes reveal {
    from {
        -webkit-transform: scale(0.001);
                transform: scale(0.001);
    }
    to {
        -webkit-transform: scale(1);
                transform: scale(1);
    }
}

@keyframes reveal {
    from {
        -webkit-transform: scale(0.001);
                transform: scale(0.001);
    }
    to {
        -webkit-transform: scale(1);
                transform: scale(1);
    }
}

@-webkit-keyframes slide {
    to {
        -webkit-transform: translateX(1.5em);
                transform: translateX(1.5em);
    }
}

@keyframes slide {
    to {
        -webkit-transform: translateX(1.5em);
                transform: translateX(1.5em);
    }
}

.loader-ellips__dot:nth-child(1) {
    -webkit-animation-name: reveal;
            animation-name: reveal;
}

.loader-ellips__dot:nth-child(2),
.loader-ellips__dot:nth-child(3) {
    -webkit-animation-name: slide;
            animation-name: slide;
}

.loader-ellips__dot:nth-child(4) {
    -webkit-animation-name: reveal;
            animation-name: reveal;
    -webkit-animation-direction: reverse;
            animation-direction: reverse;
}

.page-load-status {
    display: none; /* hidden by default */
    color: #777;
    text-align: center;
}

.view-more-button {
    width: 100%;
}

@supports (grid-area: auto) {

    .view-more-button {
        margin-top: 40px;
    }

}

.ytp-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 48px;
    margin-left: -34px;
    margin-top: -24px;
    -webkit-transition: opacity 0.25s cubic-bezier(0, 0, 0.2, 1);
    transition: opacity 0.25s cubic-bezier(0, 0, 0.2, 1);
    padding: 0;
    background-color: transparent;
}

a.video-link:hover .ytp-large-play-button-bg {
    -webkit-transition: fill .1s cubic-bezier(0.0,0.0,0.2,1),fill-opacity .1s cubic-bezier(0.0,0.0,0.2,1);
    transition: fill .1s cubic-bezier(0.0,0.0,0.2,1),fill-opacity .1s cubic-bezier(0.0,0.0,0.2,1);
    fill: #cc181e;
    fill-opacity: 1;
}

.ytp-button:hover {
    background-color: transparent;
}

@media only screen and (max-width: 768px) {

    .videos {
        grid-template-columns: 1fr 1fr;
        grid-gap: 30px;
    }

    .video {
        width: 47.8813559322%;
        margin-left: 4.2372881356%;
        margin-bottom: 30px;
    }

    .video:nth-of-type(3n+1) {
        margin-left: 4.2372881356%;
        clear: none;
    }

    .video:nth-of-type(2n+1) {
        margin-left: 0;
        clear: left;
    }

    @supports (grid-area: auto) {

        .video {
            width: auto;
            margin-left: 0;
            margin-bottom: 0;
        }

        .video:nth-of-type(3n+1) {
            margin-left: 0;
        }

    }

}

@media only screen and (max-width: 500px) {

    .videos {
        text-align: center;
        grid-template-columns: 1fr;
    }

    .video {
        width: 100%;
        margin-left: 0;
    }

    .video:nth-of-type(3n+1) {
        margin-left: 0;
    }

    .video-title {
        max-width: 300px;
        margin: 10px auto;
    }
	
	.video-thumb{
		height: inherit;
	}

}