
#navbar{
  opacity: 1;
  -webkit-transition: opacity 0.3 ease-in-out;
  -moz-transition: opacity 0.3s ease-in-out;
  -ms-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
}
#navbar.fade{
  opacity: 0;
}

.wrapper-gallery{
  margin: 100px auto;
}
.wrapper-gallery .name-artwork{
  color: white;
  font-weight: bold;
  text-align: center;
  padding-top: 30px;
}
.wrapper-gallery .nav-gallery{
  display: flex;
  justify-content: center;
}
.wrapper-gallery .items{
  display: flex;
  max-width: 550px;
  width: 100%;
  justify-content: space-between;
}
.items span{
  padding: 7px 25px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  color: #ffffff;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.items span.active,
.items span:hover{
  color: #000000;
  background: #ffffff;
}
.image-box .slide{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  height: 50px;
  width: 60px;
  line-height: 50px;
  text-align: center;
  border-radius: 3px;
}
.slide.prev{
  left: 0px;
}
.slide.next{
  right: 0px;
}

.image-box .slide{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  height: 50px;
  width: 60px;
  line-height: 50px;
  text-align: center;
  border-radius: 3px;
}
.slide.prev{
  left: 0px;
}
.slide.next{
  right: 0px;
}
.image-box img{
  width: 100%;
  border-radius: 0 0 3px 3px;
}
.image-box .videocont{
  width: 100%;
  border-radius: 0 0 3px 3px;
}
.gallery{
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}
.gallery .image{
  width: calc(100% / 3);
  padding: 3px;
  position: relative;
}
.gallery .image img {
  width: 200px; /* width of container */
  height: 400px; /* height of container */
  object-fit: cover;
  object-position: 20% 10%; /* try 20px 10px */ 
}
.gallery .image .overlay {
  position: absolute;
  top: calc(100% - 71px);
  left: calc(100% - 71px);
  opacity: 0.6;
  transition: 0.3s linear;
  pointer-events: none; /* To allow hover events on the image and video */
}
.gallery .image .overlay i{
  position: absolute;
  padding: 20px;
  background-color: #131313;
  margin: auto;
  color: white;
  border-radius: 50%;
  transition: all ease 0.4s;
}
.gallery .image:hover .overlay{
  opacity: 1; /* Show the overlay on hover */
  width: 20px;
}
.gallery .image video {
  width: 200px; /* width of container */
  height: 400px; /* height of container */
  object-fit: cover;
  object-position: 50% 10%; /* try 20px 10px */ 
}
.gallery .image span{
  display: flex;
  width: 100%;
  overflow: hidden;
}
.gallery .image img{
  width: 100%;
  vertical-align: middle;
  transition: all 0.3s ease;
}
.gallery .image:hover img{
  transform: scale(1.1);
}
.gallery .image video{
  width: 100%;
  vertical-align: middle;
  transition: all 0.3s ease;
}
.gallery .image:hover video{
  transform: scale(1.1);
}
.gallery .image.hide{
  display: none;
}
.gallery .image.show{
  animation: animate 0.4s ease;
}
@keyframes animate {
  0%{
    transform: scale(0.5);
  }
  100%{
    transform: scale(1);
  }
}

.preview-box{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 100%;
  height: 100%;
  max-width: auto;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  padding: 0 5px 5px 5px;
  color: white;
  margin-top: 0px;
}
.preview-box.show{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.3s ease;
}
.preview-box .details{
  padding: 13px 18px 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: black;
  position: relative;
  /* background-image: linear-gradient(#00000024,  #ffffff24); */
}


.details .titleGallery{
  display: flex;
  color: rgb(255, 255, 255);
  font-size: 16px;
  font-weight: 400;
  border-radius: 5px;
  text-align: center;
  margin: auto;
  letter-spacing: 0.1cm;
  padding: 4px;
  width: calc(auto + 200px);
}
.details .current-img,
.details .num,
.details .total-img{
  padding-left: 2px
}
.details .IC{
  width:auto;height: 35px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  backdrop-filter: blur(10px) ;
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border:1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 10px;
  box-sizing: border-box;
}
.details .title p{
  font-weight: 500;
  text-align: center;
  margin-left: 5px;
}
.details .icon{
  color: #ffffff;
  font-style: 22px;
  cursor: pointer;
  float: right;
}
.preview-box .image-box{
  width: 100%;
  display: flex;
  margin: auto;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}
.image-box img{
  height: 90vh;
  width: 90%;
  object-fit: contain;
  margin: auto;
  border-radius: 5px;
}
.image-box video{
  width: 83%;
  margin: auto;
  height: 100%;
  border-radius: 5px;
}
.videopreview{
  margin: auto;
}
.shadow{
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  display: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(px);
  border:1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.shadow.show{
  display: block;
}
video::-webkit-media-controls {
  display: none;
}
.videocont, .video-controls, .video-timer, .options{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  
}
.videocont{
  position: relative;
  width: 98%;
  user-select: none;
  overflow: hidden;
  max-width: calc(100% - 100px);
  border-radius: 5px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  margin: auto;
}
.videocont.fullscreen{
  max-width: 100%;
  width: 100%;
  height: 100vh;
  border-radius: 0px;
}
.wrappervideo{
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  opacity: 0;
  transition: all 0.05s ease;
}
.videocont.show-controls .wrappervideo{
  margin: auto;
  opacity: 1;
  bottom: 0;
  transition: all 0.05s ease;
}
.videocont.hide-controls .wrappervideo{
  opacity: 0;
  bottom: 0;
  transition: all 0.05s ease;
}
.wrappervideo::before{
  content: "";
  bottom: 0;
  width: 100%;
  z-index: -1;
  position: absolute;
  height: calc(100% + 35px);
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}
.video-timeline{
  height: 7px;
  width: 99%;
  margin: auto;
  cursor: pointer;
}
.video-timeline .progress-area{
  height: 3px;
  position: relative;
  background: rgba(255, 255, 255, 0.6);
}
.progress-area span{
  position: absolute;
  left: 50%;
  top: -25px;
  font-size: 13px;
  color: #fff;
  pointer-events: none;
  transform: translateX(-50%);
}
.progress-area .progress-bar{
  width: 0%;
  height: 100%;
  position: relative;
  background: crimson;
}
.progress-bar::before{
  content: "";
  right: 0;
  top: 50%;
  height: 13px;
  width: 13px;
  position: absolute;
  border-radius: 50%;
  background: crimson;
  transform: translateY(-50%);
}
.progress-bar::before, .progress-area span{
  display: none;
}
.video-timeline:hover .progress-bar::before,
.video-timeline:hover .progress-area span{
  display: block;
}
.wrappervideo .video-controls{
  padding: 5px 20px 10px;
}
.video-controls .options{
  width: 100%;
}
.video-controls .options:first-child{
  justify-content: flex-start;
}
.video-controls .options:last-child{
  justify-content: flex-end;
}
.options button{
  height: 40px;
  width: 40px;
  font-size: 19px;
  border: none;
  cursor: pointer;
  background: none;
  color: #efefef;
  border-radius: 3px;
  transition: all 0.05s ease;
}
.options button :where(i, span) {
  height: 100%;
  width: 100%;
  line-height: 40px;
}
.options button:hover :where(i, span){
  color: #fff;
}
.options button:active :where(i, span){
  transform: scale(0.9);
}
.options button span{
  font-size: 23px;
}
.options input{
  height: 7px;
  margin-left: 3px;
  max-width: 75px;
  accent-color: crimson;
}
.options .video-timer{
  color: #efefef;
  margin-left: 15px;
  font-size: 14px;
}
.video-timer .current-time,
.video-timer .video-duration,
.video-timer .separator{
  text-transform: uppercase;
  letter-spacing: 0.03cm;
}
.video-timer .separator{
  margin-top:11px;
  font-size: 16px;
  padding-top: -10px;
  font-family: "Open sans";
}
.playback-content{
  display: flex;
  position: relative;
}
.playback-content .speed-options{
  position: absolute;
  list-style: none;
  left: -40px;
  bottom: 40px;
  width: 95px;
  overflow: hidden;
  opacity: 0;
  border-radius: 4px;
  pointer-events: none;
  background: rgba(16, 16, 16, 0.9);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: opacity 0.05s ease;
}
.playback-content .speed-options li{
  color: #fff;
}
.playback-content .speed-options.show{
  opacity: 1;
  pointer-events: auto;
}
.speed-options li{
  cursor: pointer;
  color: #000;
  font-size: 14px;
  margin: 2px 0;
  padding: 5px 0 5px 15px;
  transition: all 0.05s ease;
}
.speed-options li:where(:first-child, :last-child){
  margin: 0px;
}
.speed-options li:hover{
  background: #202020;
}
.speed-options li.active{
  color: #ffffff;
  background: rgb(57, 57, 57);
}
.videocont video{
  width: 100%;
  margin: auto;
}
@media screen and (min-width: 1100px) {
  .videocont{
      max-width: calc(100% - 20%);
  }
}
@media screen and (max-width: 540px) {
  .wrappervideo .video-controls{
    padding: 3px 10px 7px;
  }
  .options input, .progress-area span{
    display: none!important;
  }
  .options button{
    height: 30px;
    width: 30px;
    font-size: 17px;
  }
  .options .video-timer{
    margin-left: 5px;
  }
  .video-timer .separator{
    font-size: 14px;
    margin: 0 2px;
  }
  .options button :where(i, span) {
    line-height: 30px;
  }
  .options button span{
    font-size: 21px;
  }
  .options .video-timer, .progress-area span, .speed-options li{
    font-size: 12px;
  }
  .playback-content .speed-options{
    width: 75px;
    left: -30px;
    bottom: 30px;
  }
  .speed-options li{
    margin: 1px 0;
    padding: 3px 0 3px 10px;
  }
  .right .pic-in-pic{
    display: none;
  }
}
@media (max-width: 1000px) {
  .gallery .image{
    width: calc(100% / 3);
  }
}
@media (max-width: 800px) {
  .gallery .image{
    width: calc(100% / 2);
  }
}
@media (max-width: 700px) {
  .wrapper .nav-gallery .items{
    max-width: 460px;
  }
  .nav-gallery .items span{
    padding: 7px 15px;
  }
}
@media (max-width: 600px) {
  .wrapper{
    margin: 30px auto;
  }
  .wrapper .nav-gallery .items{
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-gallery .items span{
    margin: 50px auto;
  }
  .gallery .image{
    width: 100%;
  }
  .wrapper .nav-gallery .items{
    max-width: 400px;
  }
  .nav-gallery .items span{
    padding: 7px 15px;
    font-size: 14px;
  }
}
@media (max-width: 400px){
  .wrapper .nav-gallery .items{
    max-width: 400px;
  }
  .nav-gallery .items span{
    padding: 7px 15px;
    font-size: 10px;
  }
  .slide.next{
    font-size: 20px;
    right: -10px;
  }
  .slide.slide.prev{
    font-size: 20px;
    left: -10px;
  }
}