/* (A) GALLERY WRAPPER */
/* (A1) BIG SCREENS - 3 IMAGES PER ROW */
.gallery {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  margin-right: -10px;
  margin-left: -10px;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-align-content: space-around;
  -ms-flex-line-pack: distribute;
  align-content: space-around;
    margin-bottom: 20px;
}



/* (B) THUMBNAILS */
.gallery img {
  width: 32%;
  height: 250px;
    margin: 5px;
  object-fit: cover; /* fill | contain | cover | scale-down */
  cursor: pointer;
      border-radius: 5px;
}

.gallery img:hover {
opacity: 50%;
}

/* (A2) SMALL SCREENS - 2 IMAGES PER ROW */
@media screen and (max-width: 640px) {
  .gallery img {   width: 48%; }
}

/* (C) FULLSCREEN IMAGE */
.gallery img.full {
  position: fixed;
  top: 0; left: 0; z-index: 999;
  width: 100vw; height: 100vh;
  object-fit: contain; /* fill | contain | cover | scale-down */
  border: 0;
  background: #fff;
    opacity: 100%;
}

/* (D) OPTIONAL ANIMATION * */
.gallery { overflow-x: hidden; }
.gallery img { transition: all 0.3s; } 



/* SCROLL TO TOP*/


.top {

  height: 25px;
  width: 25px;
  background-color:  #f5f5f5;;
  border-radius: 50%;
  display: inline-block;
    text-align: center;
    padding-top: 5px;
}
.arrow {
border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
     transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}




/* (B1) THUMBNAIL VIDEO */
.videogallery {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  margin-right: -10px;
  margin-left: -10px;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-align-content: space-around;
  -ms-flex-line-pack: distribute;
  align-content: space-around;
    margin-bottom: 20px;
}


.videogallery video {
 width: 48%;
  height: 250px;
    margin: 5px;
  object-fit: cover; /* fill | contain | cover | scale-down */
  cursor: pointer;
      border-radius: 5px;
}

/* (B2) FULLSCREEN VIDEO */
.videogallery video.full {
  position: fixed;
  top: 0; left: 0; z-index: 999;
  width: 100vw; height: 100vh;
  background: #000;
  object-fit: scale-down;
    opacity: 100%;
}

/* (C) EXIT FULLSCREEN */
#vClose {
  position: fixed; display: none;
  top: 0; right: 0; z-index: 9999;
  font-size: 20px; font-weight: 700;
  padding: 10px 15px;
  color: #fff;
  background: #741414;
  cursor: pointer;
}
#vClose.show { display: block; }



