/* GALERIA */

#grid {
  list-style-type: none;
}
.item {
     /* width: 400px;
     height: 300px;
     overflow: hidden; */
     padding: 4px 6px;
 }

.aspect {
  /* height:96%;
  width: 96%;
  margin:0 auto;
  position: relative; */
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
}

.aspect__inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Add more aspect ratios here */
.aspect--16x9 {
  padding-bottom:56.25%;
  box-shadow: 3px 3px 5px grey;
}

 .item img {
  /* width: 100%;
  height:100%;
  box-shadow: 5px 5px 5px #909090; */
  position: absolute;
  bottom: 0px;
}

.overlay-galeria {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height:100%;
  font-size: 1.25em;
  text-align: center;
}

.galeria-titulos h3 {
  margin-top: 1rem;
}

/*DESKTOP*/

@media only screen and (min-width: 768px){ 
  .overlay-galeria::before {
    background: -webkit-linear-gradient(top,rgba(72, 76, 97, 0) 0, rgba(72, 76, 97, .8) 75%);
    background: linear-gradient(to bottom,rgba(72, 76, 97, 0) 0, rgba(72, 76, 97, .8) 75%);
    content: '';
    opacity: 0;
  }
  .overlay-galeria h3 {
    top: 75%;
    left: 0;
    opacity:0;
    -webkit-transition: -webkit-transform .35s, color .35s;
    transition: transform .35s, color .35s;
    -webkit-transform: translate3d(0, -50%, 0);
    transform: translate3d(0, -50%, 0)
  }
  .overlay-galeria::before, .overlay-galeria p {
  -webkit-transition: opacity .35s, -webkit-transform .35s;
    transition: opacity .35s, transform .35s
  }
  .overlay-galeria p {
    -webkit-transform: translate3d(0, 10px, 0);
    transform: translate3d(0, 10px, 0)
  }
  .r-ig-item:hover h3 {
      -webkit-transform: translate3d(0, -50%, 0) translate3d(0, -40px, 0);
      transform: translate3d(0, -50%, 0) translate3d(0, -40px, 0)
  }

  .r-ig-item:hover .overlay-galeria::before,
  .r-ig-item:hover p {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0)
  }
  .btn-filter {
    margin-right: 15px;
  }
}

/*MOBILE*/
@media only screen and (max-width: 768px){ 
  .overlay-galeria::before {
    background: -webkit-linear-gradient(top,rgba(72, 76, 97, 0) 0, rgba(72, 76, 97, .6) 75%);
    background: linear-gradient(to bottom,rgba(72, 76, 97, 0) 0, rgba(72, 76, 97, .6) 75%);
    content: '';
    opacity: 1;
  }
  .overlay-galeria h3 {
    opacity:1;
    top: 55%;
    left: 0;
    font-size: 1.2rem;

  }
  #filter {
    flex-direction: column;
  }
}

.overlay-galeria::before {
  position: absolute;
  top: 0;
  left: 0;
  height:100%;
  width: 100%;
}

.overlay-galeria h3 {
    position: absolute;
    width: 100%;
    font-weight: bold;
    color: #fff;
    /*padding: 15px;*/
}

.overlay-galeria p {
  color: lightgrey;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2em;
    width: 100%;
    opacity: 0;
/*    -webkit-transform: translate3d(0, 10px, 0);
    transform: translate3d(0, 10px, 0)*/
}
.r-ig-item:hover h3 {
    color: #fff;
    background: transparent;
    padding: 0;
    opacity:1;
/*    -webkit-transform: translate3d(0, -50%, 0) translate3d(0, -40px, 0);
    transform: translate3d(0, -50%, 0) translate3d(0, -40px, 0)*/
}

.r-ig-item:hover .overlay-galeria::before,
.r-ig-item:hover p {
    opacity: 1;
/*    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0)*/
}

.overlay-galeria a {
  position:absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

ul li, ol li {
    margin-top: 0 !important;
}



#grid a.hovered {
  filter: brightness(0.6);
}




#filter {
  display: flex;
}

.filter-etiqueta {
  margin-top: 15px;
  box-sizing: border-box;
  padding: 45px 60px;
}

.btn-filter {
  flex: 2;
  font-size: 12px;
  line-height: 25px;
  font-weight: normal;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid gray;
  appereance: none;
  webkit-appereance: button;
}

.btn-filter:hover {
  color: #fff;
  cursor: pointer;
  transition: .1s;
  background-color: #585858;
}

/* Mejorar estos selectores */
.btn-filter.active {
  color: #fff;
  cursor: pointer;
  transition: .1s;
  background-color: #585858;
}

.filter-todos {
  white-space: nowrap;
}
