#modal-window{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	display: none;
}

#modal-window .background{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-4);
	backdrop-filter: blur(3px);
	cursor: pointer;
}

#modal-window .content{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	/* Убираем фиксированные размеры */
	width: auto;
	height: auto;
	display: inline-flex; /* или flex, если нужно */
	justify-content: center;
	align-items: center;
	background: transparent; /* если нужно */
}

#modal-window .content img{
	max-width: 100%;
	max-height: 100%;
	border-radius: 10px;
	box-shadow: 0 0 5px var(--color-1);
}

#modal-window .close-button{
	position: absolute;
	top: 10px;
	right: 10px;
	width: 50px;
	height: 50px;
	cursor: pointer;
	
	background: var(--color-4);
	box-shadow: 0 0 5px var(--color-1);
	backdrop-filter: blur(3px);
	padding: 5px;
	border-radius: 10px;
}

#modal-window .close-button:hover{
	background: #44474E88;
}

#modal-window .close-button img{
	width: 100%;
}

[data-modal-window-img]{
	cursor: pointer;
}