/*===================== SHOWREEL STYLES ====================*/
.showreel {
  margin-top:3.5rem;
  position: relative;
  width: 100%;
  height: max-auto;
}
.showreel video {
  width:100%;
  height: 100%;
}

/************* SHOWREEL MEDIA QUERY FOR LARGER DEVICES *****************/
@media screen and (min-width: 1100px) {
  .showreel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  
  .showreel video {
    position: absolute;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}


/*************** FEATURED STYLES/GALLERY ********************/
.featured {
  padding: 1rem;
}
.featured_container {
  padding:1rem;
  width: 90%;
  margin: 0 auto;
  margin-bottom: 2rem;
}


/*================ General Styles =======================*/

ul {
  list-style: none;
}

/*======================= Responsive image gallery ============================*/
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.image-gallery > li {
  flex-basis: 45%;
  margin: .2rem;
  position: relative;
  cursor: pointer;
}

.image-gallery::after {
  content: "";
}

.image-gallery li img {
  object-fit: cover;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 5px;
}

.image-gallery > .blur-load {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: .3rem;
    position: relative;
  }
  .blur-load::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 0;
    background-color: rgba(116,116,116,0.2);
    animation: pulse 1.5s infinite;
  }
  .blur-load.loaded::before {
    content: none;
  }
  @keyframes pulse {
    0% {
      width: 0;
    }
    100% {
      width: 100%;
    }
  }
  .blur-load.loaded > img{
     opacity:1;
  }
  .blur-load > img {
    opacity:0;
    transition: opacity 800ms ease-in-out;
  }

/******* IMAGE OVERLAY STYLING **********/

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(57, 57, 57, 0.502);
  top: 0;
  left: 0;
  font-size: 1rem;
  transform: scale(0);
  transition: all 0.2s 0.1s ease-in-out;
  color: #fff;
  border-radius: 5px;
  /* center overlay text */
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.item-name {
  font-weight: 700;
  text-align:center;
}
@media screen and (max-width: 900px){
    .overlay {
      font-size: 0.5rem;
    }
}
/* hover */
.image-gallery li:hover .overlay,
.image-gallery li:focus .overlay {
  transform: scale(1);
}

/********* OVERLAY AWARD & PLAY ICON STYLING **********/
.awards {
  margin-top: 5px; /* Add some spacing between video name and awards */
  padding: .3rem;
  display: flex;
  flex-direction:column;
  justify-content:center;
  align-items: center;
}
.awards i {
  padding: .2rem;
}
@media screen and (min-width: 768px) {
  .award-text {
    text-align: center;
  }
}
.play-icon {
  opacity:0;
}

/*======================+==== OVERLAY STYLES FOR TOUCH DEVICES ================================*/
@media (hover: none) {
    /* If the device doesn't support hover, apply the effect on focus */
    .play-icon {
      opacity: 1;
      font-size: .6rem;
      padding: .1rem;
    }
    .awards {
      display: block;
      margin-top: 5px; /* Add some spacing between video name and awards */
      padding: 0 .2rem;
      margin-left:.2rem;
    }
    .award-text {
      font-size: .5rem;
      text-align:center;
    }
  }
  
  @media screen and (max-width: 768px) {
    .overlay {
      font-size: .5rem;
    }
    /* If the device doesn't support hover, apply the effect on focus */
    .play-icon {
      opacity: 1;
      font-size: .6rem;
      padding: .1rem;
    }
    .awards {
      display: block;
      margin-top: 5px; /* Add some spacing between video name and awards */
      padding: 0 .2rem;
      margin-left:.2rem;
    }
    .award-text {
      font-size: .5rem;
      text-align:center;
    }
  }

/*================ MAGNIFIC ANIMATIONS ========================*/
.mfp-fade.mfp-bg {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.mfp-fade.mfp-ready.mfp-bg {
  opacity: 0.8;
}

.mfp-fade.mfp-ready.mfp-wrap .mfp-content {
  opacity: 1;
}
.mfp-fade.mfp-removing.mfp-bg {
opacity: 0;
transition: opacity 0.4s ease-out;
}

.mfp-fade.mfp-removing.mfp-wrap .mfp-content {
opacity: 0;
transition: opacity 0.4s ease-out;
}

/*==================== MUTE ICON STYLES SR ====================*/
.overlay-sr {
  position: absolute;
  top: 0;
  right: 0;
  width: max-content;
  height: max-content;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}
.overlay-sr.hidden {
  opacity: 0;
  pointer-events: none;
}
.overlay-sr i {
  font-size: 1.3rem;
  padding: 1.5rem;
}