.card-gallery { display: flex; flex-wrap: wrap; align-items: baseline; }

.card-gallery .card-img { max-height: 60vw; overflow: hidden; }
.card-gallery .card { width: 30%; margin: 1.5%; max-height: 80vw; overflow: hidden; align-self: center; }
.card-gallery .card img {width:100%; height:100%; transform:scale(1.0); transition: all 0.3s ease-in-out;}
.card-gallery .card img:hover {transform: scale(1.1);}
.card-gallery .card .card-text { word-break: break-all; }
.card-gallery .card-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.uk-modal-dialog { width: 1000px; }

#list_top { padding: 0 .5em; }
#list_top form.cate { float: left; }


.form_ezboard_search #st {
	width: 50vw;
	max-width: 200px;
}
.for_search { color:#fff;border-color: #1c3b51 !important;background-color: #1c3b51 !important; }


@media only screen and (max-width: 640px) {
	.card-gallery .card { width: 47%; }
	.uk-modal-body {
		padding: 5px 2vw;
	}
}

@media only screen and (max-width: 420px) {
	.card-gallery .card { width: 47%; }

	.uk-modal { padding: 0; }
}