.video-modal {
  padding: 2rem 0;
}

.video-modal-wrapper{
  padding: 2rem;
  box-shadow: 0 0 1rem 0rem rgba(0,0,0,.15);
}

.video-modal-thumbnail {
  position: relative;
  margin-bottom: 1rem;
  z-index: 1;
}

.video-modal-thumbnail::before,
.video-modal-thumbnail::after {
  content: '';
  position: absolute;
  height: 4rem;
  width: 8rem;
  z-index: -1;
}

.video-modal-thumbnail::before {
  background: url('images/dots.svg') center center / contain no-repeat;
  top: -.5rem;
  left: -1rem;
}

.video-modal-thumbnail::after {
  background: url('images/line.svg') bottom center / contain no-repeat;
  right: 1.5rem;
  bottom: -1.15rem;
}

.video-modal-thumbnail__button {
  border-radius: .75rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  min-height: 12rem;
  width: 100%;
  background-color: darkcyan;
}

.video-modal-thumbnail__button::after {
  content: '';
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .42);
  z-index: 1;
  left: 0;
  top: 0;
}

.video-modal-thumbnail__button::after,
.video-modal-thumbnail__play {
  content: '';
  position: absolute;
}

.video-modal-thumbnail__play {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all .3s ease;
  z-index: 2;
  height: 2.5rem;
}

.video-modal-thumbnail__button:hover .video-modal-thumbnail__play {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-modal-thumbnail__image{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-modal-content__title,
.video-modal-content__text {
  margin-bottom: 1rem;
}

.video-modal-content__title {
  font-size: 1.5rem;
  font-weight: bold;
}

.video-modal-content__button {
  display: flex;
  align-items: center;
  margin: 0;
  color: #fff;
  background-color: #6756B5;
  border-radius: .5rem;
  padding: .875rem 2.875rem;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background-color .3s ease;
  margin-top: 1.2rem;
}

.video-modal-content__button:hover,
.video-modal-content__button:focus{
  background-color: #09a3c3;
}

.video-modal-content__button-icon {
  margin-right: .6rem;
}

.video-modal-reveal__title {
  font-size: 1.7rem;
}

.video-modal-reveal__embeded iframe{
  max-width: 100%;
  object-fit: cover;
}

@media print,
screen and (min-width: 40em) {
  .video-modal-thumbnail {
    margin-bottom: 0;
  }

  .video-modal-thumbnail::before {
    top: -2rem;
    left: -1.5rem;
  }

  .video-modal-thumbnail::before,
  .video-modal-thumbnail::after {
    height: 5rem;
    width: 10rem;
  }

  .video-modal-thumbnail::after {
    right: 3rem;
    bottom: -1.15rem;
  }

  .video-modal-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .video-modal-content__title {
    font-size: 2rem;
  }

  .video-modal-content__title,
  .video-modal-content__text {
    margin-bottom: 1rem;
  }

  .video-modal-thumbnail__play {
    height: 3.06rem;
  }

  .video-modal-wrapper{
    padding: 2rem 3rem;
  }

}

@media print,
screen and (max-width: 39.99875em) {
  .reveal {
    min-height: auto;
    height: auto;
    top: 50% !important;
    transform: translateY(-50%);
  }
}


.wp-admin .video-modal .row {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(20rem,1fr));
  grid-gap: 1.5rem;
}

.wp-admin .video-modal-reveal{
  display: none;
}

.wp-admin .video-modal .button{
  background-color: darkcyan;
  border-color: darkcyan;
  color: #fff;
}