div {    direction: rtl;}

/* ANIMATIONS */
@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
      opacity: 1;
  }
}
@-moz-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
      opacity: 1;
  }
}
@-o-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
      opacity: 1;
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 14px;
}
::-webkit-scrollbar {
  width: 14px;
}
::-webkit-scrollbar-thumb {
  border: 4px solid #f4f4f4;
  background-clip: padding-box;
  border-radius: 14px;
  background-color: #c1c1c1;
}
::-webkit-scrollbar-track {
  background-color: #f4f4f4;
}

/* APP */
.app__list {
  display: grid;
  grid-template-columns: repeat(4, 25%);
  margin: 20px 10px;
}
.app__card {
  background-color: #FFFFFF;
  padding: 10px 10px 20px;
  -webkit-animation: fadeIn 1s;
  -moz-animation: fadeIn 1s;
  -o-animation: fadeIn 1s;
  animation: fadeIn 1s;
  -webkit-transition-duration: 500ms;
  -moz-transition-duration: 500ms;
  -o-transition-duration: 500ms;
  transition-duration: 500ms;
}
.app__picture {
  overflow: hidden;
}
.app__picture img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  -webkit-transition-duration: 500ms;
  -moz-transition-duration: 500ms;
  -o-transition-duration: 500ms;
  transition-duration: 500ms;
}
.app__picture img:hover {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
}
.app__title {
	text-align: center;
	font-weight: 700;
	margin-top: 10px;
	font-size: 20px;
	color: #000;
	letter-spacing: -1px;
	white-space: nowrap;
	overflow: hidden;
	-o-text-overflow: ellipsis;
	text-overflow: ellipsis;
	margin: 0;
	padding-top: 20px;
}


/* CUSTOM */
@media screen and (max-width: 1200px) {
  .app__list {
    grid-template-columns: repeat(4, 25%);
  }
}
@media screen and (max-width: 1024px) {
  .app__list {
    grid-template-columns: repeat(4, 25%);
  }
}
@media screen and (max-width: 860px) {
  .app__list {
    grid-template-columns: repeat(3, 33.33%);
  }
}
@media screen and (max-width: 800px) {
  .app__list {
    grid-template-columns: repeat(2, 50%);
  }
}

/* MOBILE */
@media screen and (max-width: 750px) {
  .app__list {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ------------------------ */

/*Eliminates padding, centers the thumbnail */


/* Styles the lightbox, removes it from sight and adds the fade-in transition */

.lightbox-target {
position: fixed;
top: -100%;
width: 100%;
background: rgba(0,0,0,.7);
width: 100%;
opacity: 0;
-webkit-transition: opacity .5s ease-in-out;
-moz-transition: opacity .5s ease-in-out;
-o-transition: opacity .5s ease-in-out;
transition: opacity .5s ease-in-out;
overflow: hidden;
z-index:9;
}

/* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */

.lightbox-target img {
margin: auto;
position: absolute;
top: 0;
left:0;
right:0;
bottom: 0;
max-height: 0%;
max-width: 0%;
border: 3px solid white;
box-shadow: 0px 0px 8px rgba(0,0,0,.3);
box-sizing: border-box;
-webkit-transition: .5s ease-in-out;
-moz-transition: .5s ease-in-out;
-o-transition: .5s ease-in-out;
transition: .5s ease-in-out;
}

/* Styles the close link, adds the slide down transition */

a.lightbox-close {
    display: block;
    width: 50px;
    height: 50px;
    box-sizing: border-box;
    background: white;
    color: black;
    text-decoration: none;
    position: relative;
    /* top: 80px; */
    /* right: 22.9%; */
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
}



/* Provides part of the "X" to eliminate an image from the close link */

a.lightbox-close:before {
content: "";
display: block;
height: 30px;
width: 1px;
background: black;
position: absolute;
left: 26px;
top:10px;
-webkit-transform:rotate(45deg);
-moz-transform:rotate(45deg);
-o-transform:rotate(45deg);
transform:rotate(45deg);
}

/* Provides part of the "X" to eliminate an image from the close link */

a.lightbox-close:after {
content: "";
display: block;
height: 30px;
width: 1px;
background: black;
position: absolute;
left: 26px;
top:10px;
-webkit-transform:rotate(-45deg);
-moz-transform:rotate(-45deg);
-o-transform:rotate(-45deg);
transform:rotate(-45deg);
}

/* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */

.lightbox-target:target {
opacity: 1;
top: 0;
bottom: 0;
right:0;
}

.lightbox-target:target img {
max-height: 80%;
max-width: 100%;
}

.lightbox-target:target a.lightbox-close {
top: 20px !important;
right:185px! important;
}