.youtube-player {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.youtube-player.embed-responsive-16by9 {
    aspect-ratio: 16/9;
}

.youtube-player.embed-responsive-4by3 {
    aspect-ratio: 4/3;
}

.youtube-player.embed-responsive-1by1 {
    aspect-ratio: 1/1;
}

.youtube-player.embed-responsive-4by5 {
    aspect-ratio: 4/5;
}

.youtube-player.embed-responsive-9by16 {
    aspect-ratio: 9/16;
}

.youtube-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: transparent;
}

.youtube-player img {
    object-fit: cover;
    display: block;
    left: 0;
    bottom: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
    border: none;
    cursor: pointer;
    -webkit-transition: 0.4s all;
    -moz-transition: 0.4s all;
    transition: 0.4s all;
}

/* images height fits in height by default */
.youtube-player img {
    max-height: 100%;
    height: 100%;
    width: auto;
}
/* ... except for images 16/9 that fits in width */
.youtube-player.embed-responsive-16by9 img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.youtube-player img:hover {
    -webkit-filter: brightness(75%);
}

.youtube-player .copyright .ss-icon {
    vertical-align: bottom;
    line-height: 15px;
}

.youtube-player .copyright a,
.youtube-player .info a {
    text-decoration: none;
}

.youtube-player .copyright a:hover,
.youtube-player .info a:hover {
    text-decoration: underline;
}

.youtube-container {
    position: absolute;
    top: calc(50% - 1.5em);
    left: calc(50% - 2em);
    pointer-events: none;
}

.play {
    background: rgba(0, 0, 0, 1);
    border-radius: 50% / 10%;
    color: #FFFFFF;
    font-size: 1em; /* change this to change size */
    height: 3em;
    /*margin: 20px auto;*/
    padding: 0;
    position: relative;
    text-align: center;
    text-indent: 0.1em;
    transition: all 150ms ease-out;
    width: 4em;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.youtube-player:hover .play,
.youtube-player:focus .play {
    background: #d33a2c;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.75);
}

.play::before {
    background: inherit;
    border-radius: 5% / 50%;
    bottom: 9%;
    content: "";
    left: -4%;
    position: absolute;
    right: -4%;
    top: 9%;
}

.play::after {
    border-style: solid;
    border-width: 1em 0 1em 1.732em;
    border-color: transparent transparent transparent rgba(255, 255, 255, 1);
    content: ' ';
    font-size: 0.75em;
    height: 0;
    margin: -1em 0 0 -0.75em;
    top: 50%;
    position: absolute;
    width: 0;
}
