/* Image Full Open — fullscreen image overlay only */
.imagefullopen-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.85);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	cursor: zoom-out;
}

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

.imagefullopen-overlay img {
	max-width: min(96vw, 1400px);
	max-height: 92vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
	cursor: default;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: auto;
}

.imagefullopen-close {
	position: fixed;
	top: 12px;
	right: 16px;
	z-index: 100001;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.imagefullopen-close:hover,
.imagefullopen-close:focus {
	background: rgba(255, 255, 255, 0.3);
	outline: none;
}

.imagefullopen-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

img.want {
	cursor: zoom-in;
}

body.imagefullopen-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.imagefullopen-close {
		top: 8px;
		right: 8px;
		width: 40px;
		height: 40px;
		font-size: 24px;
	}

	.imagefullopen-overlay {
		padding: 0.75rem;
	}
}
