@charset "UTF-8";

/* ===============================================
	gallery
================================================== */
.gallery {
	color: #fff;
	background-color: #000;
	padding-bottom: 6rem;
}

/*リスト*/
.gallery_list {
	display: grid;
}

.gallery_item {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	position: relative;
}

.gallery_item .photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.3s;
}

.gallery_item .photo:hover {
	cursor: pointer;
	opacity: 0.8;
}

/*モーダルウインドウ*/
/* 開閉 */
.modal{
	display: none;
}

.modal.is-open {
	display: block;
	transition: .5s;
}

/*オーバーレイ*/
.modal_overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgb(231 69 109 / 10%);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 10;
}

/*ダイアログ*/
.modal_dialog {
	width: 425px;
	background-color: rgba(255,255,255,1);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	overflow: auto;
	box-shadow: 0px 0px 20px 0px rgb(205 0 128 / 10%);
	position: relative;
	z-index: 12;
}

/*閉じるボタン*/
.modal_dialog__close {
	padding: 0.25rem;
	background-color: #e40060;
	position: absolute;
	top: 0;
	right: 0;
	bottom: auto;
	left: auto;
	border-style: none;
	cursor: pointer;
	z-index: 13;
}

.modal_dialog__close .close_line{
	display: flex;
	justify-content: center;
	align-items: center;
	width: 20px;
	height: 20px;
	position: relative;
}

.modal_dialog__close .close_line::before,
.modal_dialog__close .close_line::after{
	content: '';
	position: absolute;
	width: 20px;
	height: 2px;
	background-color: var(--white);
}

.modal_dialog__close .close_line::before{
	transform: rotate(45deg);
}

.modal_dialog__close .close_line::after{
	transform: rotate(-45deg);
}

/*レイアウト*/
.modal_dialog__layout {
	padding: 3rem 1rem 2rem 1rem;
	display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
	gap: 1.5rem;
}

.modal_dialog__layout___img {
	display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.modal_dialog__layout___img img{
	object-fit: cover;
}

/*モーダルウインドウ内,ダウンロードページとInstagramページへのリンク*/
.modal_dialog__layout___button {
	display: flex;
	flex-wrap: wrap;
}

.modal_dialog__layout___button a {
	padding: 1rem 1.25rem ;
	width: 100%;
	display: flex;
	align-items: center;
    justify-content: center;
	text-decoration: none;
	border: none;
	border-radius: 3rem;
	background-color: #e40060;
	color: var(--white);
}

.modal_dialog__layout___button a[target="_blank"]:after {
    background-color: var(--white);
}
	/* -------------------------------------------
		gallery > SP
	--------------------------------------------- */
	@media (min-width:0px) {
		.gallery_list {
			grid-template-columns: 1fr 1fr 1fr;
        	grid-gap: 1rem 1rem;
		}

		/*--モーダルウインドウ--*/
		/*ダイアログ*/
		.modal_dialog {
			height: auto;
		}

		.modal_dialog__layout {
			flex-direction: column;
		}

		.modal_dialog__layout___img img {
			max-width: 90%;
			max-height: 320px;
		}

		/*モーダルウインドウ内,ダウンロードページとInstagramページへのリンク*/
		.modal_dialog__layout___button {
			width: calc(100% - 4rem);
		}
	}

	@media (min-width:426px) {
		
		.modal_dialog__layout___img img {
			max-width: 100%;
			max-height: 100%;
		}
	}