.portfolio-list-wrap p{
	margin-bottom: 5px;
}
.ajax-overlay{
	display: block;
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0, 0.1);
	z-index: 1001;
	cursor: pointer
}
.fancybox {     
    position: fixed;
    padding: 35px 20px 15px;
    border: 4px solid rgba(0, 0, 0, .1);
    border-radius: 10px;	
	max-width: 90%;
	max-height: 90%;
    text-align: center;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 10004;
	overflow: auto;
}
.fancybox-close{
    position: absolute;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 111103;   
    text-align: center;
    right: 5px;
    top: 5px;   
    line-height: 30px
}
.fancybox-close:after, .fancybox-close:before{
    content: "";
    width: 20px;
    position: absolute;
    top: 50%;
    left: 16px;
	background: #84a6f8;
	height: 2px;   
}
.fancybox-close:hover:after, .fancybox-close:hover:before{
	background: rgba(50, 109, 220, 0.8);
}
.fancybox-close:before{	   
    margin-left: -10px;
    height: 2px;   
	transform: rotate(45deg);
}    
.fancybox-close:after{   
    margin-left: -10px;  
    border: 0;    
    transform: rotate(-45deg);
}

.fancybox img{
	display: block;
	position: relative;
	width: auto;	
	height: 100%;	
	margin: 0 auto;
}
.loader{
	display: block;
	position: absolute;
	width: 48px;
	height: 48px;
	background-image: url("../images/loader.gif");
	background-size: contain;
	top: 50%;
	left: 50%;
	margin-left: -24px;
	margin-top: -24px;
}
.portfolio-form-wrap{
	margin-bottom: 20px;
}
.portfolio-form-wrap .add-btn{
	margin-left: 10px;
}
.remove-btn{	
	margin: 0 10px;
	color: blue;
	cursor: pointer
}
.remove-btn:hover{
	
	opacity: 0.8
}
.portfolio-list-row{
	width: 100%;
	margin-bottom: 10px;
}
.portfolio-list-row .image-wrap > div{
	display: inline-block;
	float: left;
	width: 33%;
}
.portfolio-list-row.col-sm-3 .image-wrap  > div{
	display: block;
	width: 100%;	
}
.col-sm-3{	
	display: block;
/*	width: 33.333%;	*/
/*	width: 25%;*/
}
.col-sm-5{
	display: -webkit-flex;
    display: -ms-flexbox;
	display: flex;
/*	width: 49%;*/
	float: left;
	margin-right: 2%;
}
.col-sm-5:nth-child(2n + 2){
	margin-right: 0;
}
.col-sm-3:nth-child(3n + 3){
	margin-right: 0;
}

.flex-wrap{
	display: -webkit-flex;
    display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;	
	width: 100%;
	float: none;
}
.portfolio-list, .show-more-wrap{
	margin-bottom: 20px;
}
.grid-wrap .item{	
	padding: 5px;
	
}
.grid-wrap .item img{
	display: block;
	width: 100%;
}
.post-wrap{
	display: block;
	max-height: 100%;
	border: 1px solid rgba(0,0,0, 0.2);
	padding: 10px;
	overflow: hidden;
}
.list-wrap{
	height: auto !important;
	overflow: hidden;
}
.list-wrap .post-wrap > div, .list-wrap .post-wrap a > div{
	display: block;
	float: left;
}
.list-wrap .post-wrap .attachment-thumbnail, .list-wrap .post-wrap .post-thumbnail{
	width: 20%;
}
.list-wrap .post-wrap .post-title, .list-wrap .post-wrap .post-excerpt{
	width: 25%;
	padding: 0 10px;
}

.list-wrap .post-wrap .terms{
	width: 20%;
}
.list-wrap .item{
	position: relative !important;
	left: 0 !important;
	top: 0 !important;
	width: 100%;
	margin-bottom: 10px;
}
.post-wrap a{
	text-decoration: none;
}
.post-wrap a:hover .post-excerpt, .post-wrap a:hover .post-tag{
	color: #111
}
.tags-groups-wrap tr{	
	display: inline-block;
	width: 100%;
	height: 36px;
	line-height: 36px;
}
.filter-type{
	display: inline-block;
	overflow:hidden;
	box-sizing: border-box;
}
.filter-type .filter-or:before{
	display:inline-block;
	content: "OR"
}
.filter-type .filter-and:before{
	display:inline-block;
	content: "AND"
}
.filter-type span{
	display: inline-block;
	padding: 2px 6px;
	border: 1px solid rgba(0,0,0,0.2);
	cursor: pointer;
	box-sizing: border-box;
	border-radius: 4px;
	margin-right: 2px;
}
.filter-type span.selected, .filter-type span:hover{
	background-color: #2271b1;
	color: #fff;
}
.tags-list{
	display: block;
	overflow: hidden;
}
.tags-list .tag{
	float: left;
	display: flex;
	overflow: hidden;
	box-sizing: border-box;	
	border: 1px solid rgba(0,0,0,0.4);
	border-radius: 4px;
	padding: 2px 6px;
	margin-right: 4px;
	margin-bottom: 4px;
	line-height: 20px;
}
.button-primary {
	display: inline-block;
	min-width: 120px;
	
    text-align: center;
    margin: 10px 0;
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
	    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
}
.portfolio-switch{
	padding: 10px 0;
	text-align: right;
	border-bottom: 1px solid rgba(0,0,0, 0.1);
	margin-bottom: 15px
}
.portfolio-switch div{
	display: inline-block;
	cursor: pointer
}
.portfolio-switch div:hover:before{
	color: #2271b1;
}
.portfolio-switch div.view-list:before {
    content: "\f163";
}
.portfolio-switch div.view-grid:before {
    content: "\f509";
}
.portfolio-switch div:before {
    color: #c3c4c7;
    display: inline-block;
    font: normal 20px/1 dashicons;
    speak: never;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.portfolio-switch div.current:before {
    color: #2271b1;
}
ul.tags-group-filter{
	padding-left: 0;
}
.tags-group-filter li{
	display: block;	
	overflow: hidden;
	width: 100%;
	margin-bottom: 10px;
}
.tags-group-filter li > div{
	display: inline-block;
	vertical-align: middle;
}
.tags-group-filter li .group-name{
	width: 20%;
	padding-right: 10px;
}
.tags-group-filter li .group-tags-list{
	width: 80%;
}
.portfolio-filter-widget .tags-group-filter li > div{
	width: 100%;	
}

.tag{
	display: inline-block;
	overflow: hidden;
	box-sizing: border-box;
}
.tag-name, .post-tag{
	display: inline-block;
	padding: 2px 6px;	
	border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 6px;
	background: #fff;
	cursor: pointer;
	margin: 0 15px 3px 3px;
}
.post-tag{
	margin: 3px;
}
.tag-name.selected, .tag-name:hover{	
	background: #2271b1;
	color: #fff;
}
.tag-dis{
	display: inline-block;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(0, 0, 0, .2);
	line-height: 34px;
	font-size: 24px;
	font-weight: bold;
	text-align: center;
	border-radius: 100%;
	cursor: pointer;
	
}
.tag-dis.selected, .tag-dis:hover{
	background-color: rgba(0, 0, 0, .2);
}
.tag-group-filter{
	display: -webkit-flex;
    display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;	
	width: 100%;
	float: none;
}
.tag-dis.selected~.tag-name{
	background-color: rgba(0, 0, 0, .1);
}

.attachment-thumbnail{
	cursor: pointer;
}
