/*@import url('https://fonts.googleapis.com/css?family=Barlow:400,500,700');

$white: #fff;
$black: #2e2e2e;
$gray: #787878;
$highlight: #ea8478;
$footer: #f7f7f7;

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  &::before, &::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
}

body {
  font-family: 'Barlow', sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  color: $gray;
  background: $white;
  text-rendering: optimizeLegibility;
}

ul li {
  margin: 0 1.5rem 0 0;
}

a {
  color: $gray;
  text-decoration: none;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
  &:hover {
    color: $black;
  }
  &.active {
    color: $black;
  }
}


#highlight {
  color: $highlight;
  font-size: 1.25rem;
}

.gallery {
  padding: 0 0 4rem 0;
}

.img-container {
  width: 100%;
  height: 300px;
  cursor: pointer;
  overflow: hidden;

}

.img-container:hover .img-content-hover {
    display: block;
  }


img {
	width: 100%;
  height: 300px;
  -o-object-fit: cover;
	object-fit: cover;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  &:hover {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
  }
}

.img-content-hover {
  position: absolute;
  z-index: 1;
  white-space: nowrap;
  display: none;
  padding: 1rem;
  background: white;
  font-weight: 400;
  margin-top: 1.25rem;
  margin-left: -2rem;
}

.title {
  color: $black;
  font-size: 1.5rem;
  font-weight: 700;
}

.category {
  font-size: 1rem;
  color: $gray;
}

.img-content {
  display: none;
}

.social, .copyright {
  margin: 1rem;
}

.social li {
  display: inline-block;
}


@supports (display: grid) {
  .gallery .grid {
    grid-gap: 1rem;
  }
}

@media(min-width: $md) {
  nav ul {
    -webkit-box-pack: right;
    -ms-flex-pack: right;
    justify-content: right;
  }
}

@media screen and (max-width: 1024px) {
  img:hover {
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
  }
  
  .img-container {
    height: 100%;
    &:hover .img-content-hover {
      display: none;
    }
  }

  .img-content {
    display: block;
    padding: 1rem 0;
  }
}

.gallery{
    height: 100%;
}

.gallery-row {
    height: 10%;
    overflow: hidden;
}

*/

.gallery-box {
  overflow: hidden;
  border-radius: 1%;
  opacity: 1;
}

.gallery-box a:visited {
  color: #555;
}

.gallery-box:hover .text-wrapper {
  opacity: 0;
}

.img-container {
  height: ;
}

.gallery-img {
  width: 100%;
  height: auto;
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.gallery-list {
  height: ;
}

.gallery-text {
}

.content-wrapper {
  position: relative;
  height: 12ew;
}

.text-wrapper p:link,
.content-wrapper:visited {
  text-decoration: none;
}

.content-wrapper:link,
.content-wrapper:visited {
  text-decoration: none;
}

.content-wrapper img {
  -webkit-transform: scale(1.15);
  transform: scale(1.15);
}

.text-wrapper {
  width: 100%;
  position: relative;
  margin-top: -20%;
  padding: 5%;
  background: rgba(235, 235, 235, 0.92);
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
}

.text-wrapper > p {
  color: #555;
}

.hover-shadow {
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.hover-shadow:hover {
  -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.gallery-back {
  text-align: center;
  color: #2ecc71;
  padding-top: 30px;
}

.gallery-back a {
  color: #555;
  text-decoration: underline;
}

/* --------------------------------------------------------- */
/* GALLERY-UPDATE*/
/* --------------------------------------------------------- */

.gallery-update {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
}

.gallery-update:lang(en) {
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
}

.gallery-update:lang(ar) {
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
}

.gallery-update > div {
  margin: 10px 1%;
  width: 31%;
  padding-top: 17.4375%;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 1%;
  position: relative;
}

.image-update:hover {
}

.image-update {
  top: 0;
  position: absolute;
  height: 100%;
  border-radius: 1%;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.video-overlay:hover .video-play {
  text-shadow: 0px 0px 10px rgba(123, 123, 123, 0);
}

.gallery-video:hover > img {
  filter: brightness(1);
}

.gallery-item:hover .image-update {
  -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.gallery-video > img {
  filter: brightness(0.9);
}

.video-play {
  font-size: 300%;
  color: rgba(227, 227, 227, 0.93);
  text-shadow: 0px 0px 10px rgba(123, 123, 123, 0.6);
  -webkit-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  z-index: 999;
}

/* --------------------------------------------------------- */
/* TEST*/
/* --------------------------------------------------------- */
.container {
  position: relative;
  width: 100%;
  padding-top: 56%; /* 16:9 Aspect Ratio */
  z-index: 1;
}

.container {
  background-position: center;
  background-size: cover;
}

.overlay {
  width: 100%;
  text-align: center;
  position: absolute;
  z-index: 2;
  background: rgba(235, 235, 235, 0.92);
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
  bottom: 0;
}

.overlay > p {
  margin: auto;
  padding: 0.4em;
  color: #555;
}

.overlay1em {
  height: 2em;
  margin-top: -2em;
}

.overlay2em {
  height: 3em;
  margin-top: -3em;
}

.overlay > p:link,
.overlay > p:visited {
  text-decoration: none;
}

.gallery-box:hover .overlay {
  opacity: 0;
}

/* --------------------------------------------------------- */
/* LIGHTBOX*/
/* --------------------------------------------------------- */

.column {
  float: left;
  width: 25%;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
  text-align: left;
  font-family: 'Lato', 'Arial', sans-serif;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: rgba(254, 254, 254, 0);
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.mySlides {
  display: none;
}

.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 40vh;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  -webkit-transition: 0.6s ease;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

img {
  margin-bottom: -4px;
}

.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.hover-shadow:hover {
  -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.mySlides > img {
  width: 100%;
  max-height: 80vh;
  -o-object-fit: contain;
  object-fit: contain;
}

/* --------------------------------------------------------- */
/* GRID TEST*/
/* --------------------------------------------------------- */

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
}

.grid-gallery-box {
  width: 100%;
}

.grid-container {
  position: relative;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-gallery-box:hover .grid-overlay {
  opacity: 1;
}

.grid-overlay p {
  margin: 0;
  font-size: 18px;
}

.grid-overlay1em {
  margin-top: -1em;
}

.grid-overlay2em {
  margin-top: -2em;
}

