@charset "utf-8";

.grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid .item {
	border-radius: 10px;
	background: #edf;
	padding: 15px;
	text-align: center;
}
.grid img {
	cursor: pointer;
	width : 100%;
	max-width: 300px;
}

ul.grid li{
	list-style: none;
	margin: 2px;
}

/* Modal */

.mask {
	background: rgba(0, 0, 0, 0.4);
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	z-index: 0;
}
.modal{
	width: 80%;
	height: 100%;
	/* 絶対位置にしないと本来の位置に下がる */
	position: absolute;
	/* 絶対位置の中央寄せ。rightまで必要 */
	margin: 0 auto;
	top: 20px;
	left: 0;
	right: 0;
	z-index: 1;
}

.modalContent {
	/* display: inline-block; */
	width: 100%;
	/* height: 100%; */
	background: #fff;
	color: #555;
	padding: 20px;
	border-radius: 4px;
	position: relative;
	top: 20px;
	/* left: 0;
	right: 0; */
	margin: 0 auto;
	z-index: 2;
	transition: 0.4s;
}
.modalContent .close {
	cursor: pointer;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 12px;
	background: #4caf50;
	color: white;
}

