#dp-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

#dp-overlay.dp-visible {
	display: flex;
}

#dp-modal {
	position: relative;
	width: 500px;
	height: 400px;
	background: #fff;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	overflow: hidden;
}

#dp-modal a {
	display: block;
	width: 100%;
	height: 100%;
}

#dp-modal img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

#dp-close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 10;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.15s;
}

#dp-close:hover {
	background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 540px) {
	#dp-modal {
		width: 92vw;
		height: calc(92vw * 0.8);
	}
}
