#rjvideosModal {
  background-color: rgba(0, 0, 0, 0.5);
}

.rjvideo-links {
  margin: 0.5em;
  text-align: center;
}

.rjvideo-items {
  margin-top: 0.5em;
  display: grid;
  justify-content: center;
  grid-gap: .25em;
}

.rjvideo-items.rjv-s {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.rjvideo-items.rjv-m {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.rjvideo-items.rjv-l {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}


.rjvideo-items .rjvideo-video {
  padding: 0.2em;
}

.rjvideo-video img {
  width: 100%;
  height: auto;
}

/*.rjvideo-video {
  transition: transform .2s;
}
.rjvideo-video:hover {
  transform: scale(1.05);
}*/


.rjvideo-player iframe {
  width: 100%;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 2px solid #000;
  background: #000;
}

.rjvideo-container {
  position: relative !important;
  width: 100% !important;
  padding-bottom: 56.25% !important;
}

.rjv-hidden { display: none; }
.rjv-active { background-color: #ddd; }
