.media-gallery h3 {
  color: #b30709;
  border-bottom: 2px solid;
  padding-bottom: 0.5rem;
}

.media-item .lead-image {
  width: 300px;
  height: 250px;
  object-fit: cover;
  object-position: 0 0;
  background-color: black;
}

.lead-image-wrapper:after {
    content:'\A';
    position:absolute;
    width: 300px;
    height: 250px;
    top:.7rem; left:.7rem;
    background:rgba(0,0,0,0.6);
    opacity:0;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
}
.lead-image-wrapper:hover:after {
    opacity:1;
}

.lead-image-wrapper:hover + .after img {
  width: 50px;
}

.lead-image-wrapper:hover + .after {
   top: calc(50% - 2.5rem);
   left: calc(50% - 2.5rem);
}


.lead-image-wrapper:hover + .zoom-icon
{
   top: calc(50% - 2.5rem);
   left: calc(50% - 3rem);
}

.lead-image-wrapper:hover + .zoom-icon {
  display: block;
}

.lead-image-wrapper:hover + .after:after {
  content: 'Click to play';
  color: #fff;
  display: block;
}

.lead-image-wrapper:hover + .zoom-icon:after {
  content: 'Click to enlarge';
  color: #fff;
  display: block;
}

.read-more {
  color: #004087;
  font-weight: bold;
  padding-left: 20px;
  position: relative;
}

.read-more:before {
    background: url(++resource++enisa.topic.media_gallery/read_more.svg) no-repeat;
    content: ' ';
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    top: 3px;
    left: 0;
    background-size: cover;
}

.download-more {
  color: #004087;
  font-weight: bold;
  padding-left: 20px;
  position: relative;
}

.download-more:before {
    background: url(++resource++enisa.topic.media_gallery/download.svg) no-repeat;
    content: ' ';
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    top: 3px;
    left: 0;
    background-size: cover;
}

.media-item .description {
  word-break: break-word;
}

.media-item {
  display: flex;
  margin-bottom: 2rem;
}


.media-item .descriptive-text h2 {
  margin-top: 1rem;
}

.media-item .descriptive-text .type-tag {
  background-color: #ccc;
  padding: 0 1rem;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 20px;
  font-size: 11px;
}

.media-items {
  display: flex;
  flex-direction: column;
}

.mfp-content .video-js {
  margin: auto;
}

.gallery-video .after,
.zoom-icon {
   position: absolute;
   top: calc(50% - 1.4rem);
   left: calc(50% - 1.4rem);
   text-align: center;
}

.gallery-video .after img {
   width: 40px;
}

.zoom-icon {
  display: none;
}

.zoom-icon img {
  width: 50px;
}

.gallery-video, .gallery-image {
  margin-right: 1rem;
  padding: .7rem;
  border-radius: 7px;
  background-color: #ddd;
  position: relative;
}

@media only screen and (max-width: 700px) {
  .media-item .lead-image {
    width: 200px;
    height: 150px;
  }
  .lead-image-wrapper:after,
  a.gallery-video, a.gallery-image {
    width: 200px;
    height: 150px;
  }
}

@media only screen and (max-width: 600px) {
  .media-item {
    flex-direction: column;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #004087;
  }
  .descriptive-text {
    text-align: center;
        margin-top: 1rem;
            padding-top: 1rem;
                border-top: 1px solid #ebebeb;
  }
}
