#portfolio_block .templateitem {
    text-align: center;
}
.daftardomain li a {
    background: #fff;
    padding: 0px 5px;
    height: auto;
    line-height: normal;
    display: block;
    vertical-align: middle;
    width: 100%;
    color: #fff;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}
.daftardomain li a:before {
    content: ".";
    width: 100%;
    padding-top: calc(100% - 10px);
    background-color: transparent;
    color: transparent;
    position: relative;
    display: block;
}
.daftardomain {
    padding: 0;
    clear: both;
    margin: 0 -10px;
    overflow: hidden;
}
.daftardomain li {
	list-style:none;
    float: left;
    text-align: center;
    padding: 0 15px;
    margin-bottom: 20px;
}
.block-search {
    width: 600px;
    max-width: 100%;
    margin-top: 40px;
    overflow: hidden;
    background: #fff;
    position: relative;
    padding: 15px 30px;
    margin: 40px auto 10px;
    text-align: center;
    font-size: 14pt;
	color:#DB0347;
    text-transform: uppercase;
    font-weight: bold;
	box-shadow:0 0 5px rgba(0, 0, 0, 0.4);
	-ms-box-shadow:0 0 5px rgba(0, 0, 0, 0.4);
	-moz-box-shadow:0 0 5px rgba(0, 0, 0, 0.4);
	-webkit-box-shadow:0 0 5px rgba(0, 0, 0, 0.4);
}
.block-search input[type="text"] {
    display: block;
    float: left;
	border:1px solid #aaa;
    clear: both;
    width: 100%;
    padding: 5px 70px 5px 10px;
    line-height: normal;
    font-size: 14px;
    height: 43px;
	color:#444;
	margin-top:6px;
}
.block-search input[type="submit"]:hover {background:#c87800}
.block-search input[type="submit"] {
    float: left;
    background: #f0a000;
    padding: 0px 10px;
    position: absolute;
    right: 30px;
    bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    height: 43px;
    border: 1px solid #c87800;
    line-height: normal;
    color: #fff;
}
.daftardomain li:nth-child(7n+1) a {background:#008299}
.daftardomain li:nth-child(7n+2) a {background:#2672EC}
.daftardomain li:nth-child(7n+3) a {background:#8C0095}
.daftardomain li:nth-child(7n+4) a {background:#5133AB}
.daftardomain li:nth-child(7n+5) a {background:#AC193D}
.daftardomain li:nth-child(7n+6) a {background:#D24726}
.daftardomain li:nth-child(7n+7) a {background:#008A00}
/*.daftardomain li:nth-child(8n+8) a {background:#094AB2}*/
.daftardomain li a span {
    position: absolute;
    width: 100%;
    text-align: center;
    left: 0;
    white-space: normal;
    top: 50%;
    text-overflow: ellipsis;
    transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    overflow: hidden;
    padding: 0 1px;
}
#portfolio_block .templateitem img{
    -webkit-box-shadow: 0 1px 2px 0 rgba(32,48,60,.14), 0 3px 3px 0 rgba(32,48,60,.06);
    -moz-box-shadow: 0 1px 2px 0 rgba(32,48,60,.14), 0 3px 3px 0 rgba(32,48,60,.06);
    -ms-box-shadow: 0 1px 2px 0 rgba(32,48,60,.14), 0 3px 3px 0 rgba(32,48,60,.06);
    box-shadow: 0 1px 2px 0 rgba(32,48,60,.14), 0 3px 3px 0 rgba(32,48,60,.06);
}
@media(min-width:768px){
	.daftardomain li {width: 25%;}
	#portfolio_block .templateitem * {
		text-align: center;
	}
	#portfolio_block .templateitem {
		width: 33.33% !important;
		float: left;
		clear: none;
	}
}
@media(max-width:767px){
	.block-search{padding:15px 25px 20px;margin-top:30px;}
	.block-search input[type="submit"]{
		right: 25px;
		bottom: 20px;
	}
	.daftardomain {margin: 0 -5px;}
	.daftardomain li {
		width: 50%;
		padding: 0 5px;
		margin-bottom: 10px;
	}
}