#insta {
	width: 100%;
	margin: 0;
	float: none;
	clear: both;
}

.instagram ul {
	margin: 0;
	padding: 0;
	position: relative;
}

.instagram li {
	box-sizing: border-box;
	float: left;
	font-size: 12px;
	position: relative;
	z-index: 0;
	list-style: none;
	background-color: #000;
	color: #fff;
}


/*写真の列数をデバイス毎に可変*/


/* lg */
@media screen and (min-width: 1200px) {
	.instagram li {
		width: 16.66666%;
		padding-top: 16.66666%;
	}
}
/* md */

@media screen and (max-width: 1199px) {
	.instagram li {
		width: 16.66666%;
		padding-top: 16.66666%;
	}
}
/* sm */
@media screen and (max-width: 991px) {
	.instagram li {
		width: 25%;
		padding-top: 25%;
	}
}
/* xs */
@media screen and (max-width: 767px) {
	.instagram li {
		width: 33.33333%;
		padding-top: 33.33333%;
	}
}
/* ここまで */


/* 正方形の処理 */

.instagram li {
	position: relative;
	overflow: hidden;
	/*　画像が枠からはみ出た部分はトリミング（非表示）する　*/
	margin: 0 auto;
}

.instagram li img.instaimg {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	/* 画像の最大サイズは枠の1.5倍まで */
	width: 140%;
	height: 140%;
}

.instagram li span.instcaption {
	display: block;
	position: absolute;
	bottom: 35px;
	padding: 1em;
	z-index: -1;
}


/*文字を丸める記述*/

.instcaption {
	position: relative;
	height: 75%;
	overflow: hidden;
}

/*丸めるここまで*/

.instagram li span.instnum {
	display: block;
	position: absolute;
	z-index: -1;
	bottom: 0px;
	right: 0px;
	width: 50px;
	color: #fff;
	font-size: 10px;
	padding: 3px;
	text-align: center;
}
.instnum i {
	color:#ea7272;
	margin-right: 0.3em;
}


/*オンマウス処理*/
.instagram li img {
	transition: 0.3s;
}
.instagram li img:hover {
	opacity: 0.2;
}
