/*===モーダル表示のためのcss　*/

.hide-area{/*モーダル表示をする場所をあらかじめ隠す*/
	display: none;
}

.modaal-fullscreen .modaal-content-container{/*full画面の色設定*/
	background-color: rgba(0,0,0,0.9);
	color: #fff;
	text-align: center;
	height: 100vh;
}
.modaal-fullscreen .modaal-content-container img{/*full画面の色設定*/
	width: 67.5vw;
}
	@media screen and (max-width: 768px) {
		.modaal-fullscreen .modaal-content-container img{/*full画面の色設定*/
			width: 100vw;
	}
}
.modaal-fullscreen .modaal-close{/*ボタンの色、位置*/
	background:none;
	right:20px;
}

/*クローズボタンの×の色変更*/
.modaal-close:focus:after,
.modaal-close:focus:before,
.modaal-close:hover:after,
.modaal-close:hover:before{
	background:#666;
}

/*キャプション*/
.caption{
    display: block;
    padding: 10px 0;
		font-size: 12px;
}

/*===　サムネイル表示のためのcss　*/

.gallery{/*ベースになるギャラリーを横並びに*/
	display: flex;
    justify-content: start;
}

.gallery li{
  padding: 0 10px;
	list-style:none;
}
.gallery li.half{
	width: 50%;
}
.gallery li.third{
	width: 33.3%;
}
.gallery li.quater{
	width: 25%;
}
.gallery li.fifth{
	width: 20%;
}

@media screen and (max-width: 768px) {
	.gallery{
		display: flex;
		flex-wrap: wrap;
	}
	.gallery.spOnly{
		display: flex!important;
		flex-wrap: wrap;
	}
	.gallery li {
		width: 50%!important;
		margin-top: 20px;
	}
}


/*画像の横幅を100%にしてレスポンシブ化*/
img{
	max-width:100%;
	height:auto;
	vertical-align: bottom;/*画像の下にできる余白を削除*/
}

.dyj_article_wrap ul.gallery img {
max-width: 100%;
}
