.ram-video-1 {
    position: relative;
    max-width: 800px;
    margin: auto;
}
.ram-video-1 .tv-wrap  {
    margin: 6% 6% 10%;
    position: relative;
}    
.ram-video-1 .tv-ram  {
    position: absolute;
    z-index: 1;
    top: -16%;
    left: -11.5%;
    width: 123%;
    height: 142%;
    pointer-events: none;
}
.ram-video-1 .tv-ram img  {
    width: 100%;
    height: 100%;
}
.ram-video-1 .tv-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    cursor: pointer;
}
.ram-video-1 .tv-video:before {
    content: "";    
    border: 3px solid #6a6a6c;
    border-radius: 0px;
    background-color: rgba(0, 0, 0, 0.7);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BFE2FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e%3cpolygon points='10 8 16 12 10 16 10 8'%3e%3c/polygon%3e%3c/svg%3e ");
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: 50% 50%;
    width: 20%;
    height: 25%;
    z-index: 2;
    box-shadow: 0 8px 26px rgba(0,0,0,0.4), 0 28px 30px rgba(0,0,0,0.3);
    position: absolute;
    top: 35%;
    left: 40%;    
    transition: 0.3s;
}
.ram-video-1 .tv-video:hover:before {
    background-color: #00a651;
    border-color: #b6ffd9;
}
.ram-video-1 .tv-video.show:before {
    display: none;
}
.ram-video-1 .tv-video iframe,
.ram-video-1 .tv-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-overlay-play-button {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 10px calc(50% - 50px);
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    opacity: 0.95;
    cursor: pointer;
    background-image: linear-gradient(transparent, #000);
    transition: opacity 150ms;
}

.video-overlay-play-button:hover {
    opacity: 1;
}

.video-overlay-play-button.is-hidden {
    display: none;
}


/* IMAGE OVERLAY */

.container {
  position: relative; /* Anchor for the overlay */
  width: 500px;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
}
