main {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 20px 50px;
}

.subtitle {
	text-align: center;
	margin-bottom: 30px;
}


/* ギャラリー */
.gallery {
	display: grid;

	/* 5列 */
	grid-template-columns: repeat(5, 1fr);

	gap: 30px;
}

.w-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px;
}

.warning-button {
  padding: 20px;
  border-radius: 12px;
  border: none;
  background-color: #28366b;
  color: white;
}



/* サムネイル */
.gallery-item {
	width: 100%;
	aspect-ratio: 1 / 1;

	border-radius: 50%;
	overflow: hidden;

	cursor: pointer;
}


/* サムネイル画像 */
.gallery-item img {
	width: 100%;
	height: 100%;

	object-fit: cover;

	display: block;

	transition: transform 0.3s;
}


/* マウスを乗せたとき */
.gallery-item:hover img {
	transform: scale(1.1);
}


/* --------------------
  拡大表示
-------------------- */

.modal {
	position: fixed;

	top: 0;
	left: 0;

	width: 100%;
	height: 100%;

	background-color: rgba(0, 0, 0, 0.8);

	display: none;

	align-items: center;
	justify-content: center;

	padding: 30px;

	z-index: 1000;
}


/* modalを表示するとき */
.modal.active {
	display: flex;
}


/* 拡大画像 */
.modal-image {
	max-width: 90%;
	max-height: 90%;

	object-fit: contain;
}


/* 閉じるボタン */
.modal-close {
	position: absolute;

	top: 20px;
	right: 30px;

	font-size: 40px;

	color: white;
	background: none;
	border: none;

	cursor: pointer;
}

.modal-prev,
.modal-next {
	position: absolute;

	top: 50%;
	transform: translateY(-50%);

	background: none;
	border: none;

	color: white;

	font-size: 50px;

	cursor: pointer;
}

.modal-prev {
	left: 30px;
}

.modal-next {
	right: 30px;
}

.warning-image {
	display: none;
}

/*タブレット*/
@media screen and (max-width:768px) {
.gallery {
	/* 3列 */
	grid-template-columns: repeat(3, 1fr);
}
}