/* ------------ CARD ------------ */
.card {
  width: 300px;
  height: 180px;
  max-width: calc(3/1 * 30vh);
  max-height: 30vh;
  display: flex;
  position: relative;
  margin: auto 30px;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  background-image: url("/img/vidthumb/01_kgmi.png") center center/cover;
  overflow: hidden;
}

 .card .video-content {
  position:absolute;
  z-index: 1;
  text-align: center;
  font-weight: bold;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
}

.card-play {
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 1;
  margin-top: 55px;
  margin-left: auto;
  margin-right: auto;    
  opacity: 0;
  background: url("https://kazamagrameen.org/img/vidthumb/play.png") center center/cover;   
  cursor: pointer;
  transition: opacity 0.3s ease-out;
}

.card-play:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #000;
  transition: all 0.5s ease-out;
}

.card-video {
  display: none;
  position: absolute;
  top: 1;
  left: 2;
  bottom: 5;
  right: 0;
  z-index: 2;
  background: #000;
}
.card-video iframe {
  width: 100%;
  height: 100%;
}

.card:after {
  content: "";
  width: 250%;
  height: 250%;
  position: absolute;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
  opacity: 0;
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.3), transparent);
  transition: opacity 0.5s ease-out;
}

/* ------------ STATES ------------ */
.card:hover:after,
.card:hover .card-play {
  opacity: 1;
}

.video-is-open:after {
  display: none;
}

.video-is-open .card-play {
  opacity: 1;
}
.video-is-open .card-play:after {
  width: 2vh;
  height: 2vh;
  transform: translate(-50%, -50%) scale(88.8888888889);
  transition: transform 0.5s ease-out;
}