@charset "UTF-8";

/* モーダル表示用 */
.photobox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photobox.is-open {
	opacity: 1;
	visibility: visible;
}

.photobox_overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
}

.photobox_content {
	position: relative;
	z-index: 10;
	background: #fff;
	padding: 0 0 10px 0;
	box-shadow: 0 10px 25px rgba(0,0,0,0.5);
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.photobox_img {
	max-width: 85vw;
	max-height: 75vh;
	display: block;
	object-fit: contain;
}

.photobox_caption {
	width: 96%;
	margin-top: 8px;
	font-size: 14px;
	color: #333;
}

/* 閉じるボタン */
.photobox_close {
	position: absolute;
	top: -45px;
	right: 0;
	color: #fff;
	font-size: 40px;
	font-weight: 100;
	background: none;
	border: none;
	cursor: pointer;
}

@media (max-width: 768px) {

	.photobox_content {
		max-width: 100%;
	}

	.photobox_img {
		max-width: 100%;
	}
	.photobox_close {
		right: 0px;
	}
}


