.filter-button-group .filter-item {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: all .3s ease;
  text-transform: capitalize;
  display: inline-block;
}

.royal-filterable-items .royalisotope .royalgallery-filter{
  margin: 0;
  padding: 0;
}

.royal-filterable-menu-container-align-left .royalisotope {
  display: flex;
}

.royal-filterable-menu-container-align-left .royalisotope .royalgallery-filter,
.royal-filterable-menu-container-align-right .royalisotope .royalgallery-filter  {
  width: 15%;
  margin: 0;
  padding: 0;
}

.royal-filterable-menu-container-align-left .royalisotope .royalisotopegrid,
.royal-filterable-menu-container-align-right .royalisotope .royalisotopegrid{
  flex: 1;
}

.royal-filterable-menu-container-align-left .royalisotope .royalgallery-filter > ul,
.royal-filterable-menu-container-align-right .royalisotope .royalgallery-filter > ul{
  flex-direction: column;
}

.royal-filterable-menu-container-align-left .royalisotope .royalgallery-filter .filter-button-group li,
.royal-filterable-menu-container-align-right .royalisotope .royalgallery-filter .filter-button-group li{
  width: 100%;
}



.royal-filterable-menu-container-align-right .royalisotope {
  display: flex;
  flex-direction: row-reverse;
}






.royalisotopeitem .portfolio{
  position: relative;
  margin: 0 auto;
  background-position: top center !important;
  transition: background-position 5s;
  background-repeat: no-repeat !important;
  background-size: 100% auto !important;
}

.royalisotopeitem .portfolio .title {
  text-align: center;
  display: block;
  bottom: 0;
  position: absolute;
  width: 100%;
  color: #fff;
  text-decoration: none;
  transition: all 1s;
}

.royalisotopeitem .portfolio .title a{
  display: block;
}

.royalisotopeitem .portfolio:hover{
	background-position: bottom center !important;
}


@media only screen and (max-width: 1024px) {
 
  .royal-filterable-items .royalisotope .royalisotopegrid.royalrow > [class*="col-"]{
    width: 50% !important;
    max-width: 50% !important;
  }

}



@media only screen and (max-width: 768px) {
 
  .royal-filterable-items .royalisotope .royalisotopegrid{
    display: grid;
  }
  


  .royal-filterable-items .royalisotope .royalisotopegrid.royalrow > [class*="col-"]{
    width: 100% !important;
    max-width: 100% !important;
  }





}