[class*='wp-block-sw-blocks-modal'] {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 200;
	background-color: rgba(0, 0, 0, 0.8);
	animation: fadeIn 0.3s;
}
[class*='wp-block-sw-blocks-modal'].visible {
	display: flex;
	justify-content: center;
	align-items: center;
}
[class*='wp-block-sw-blocks-modal'] .modal {
	z-index: 101;
	width: 70%;
	height: auto;
	top: 50%;
	z-index: 300;
	overflow-y: auto;
	transform: translate(0, 0);
	animation: fadeIn 0.3s, fallIn 0.3s linear;
	background-color: transparent;
}

[class*='wp-block-sw-blocks-modal'] .modal-header {
	position: absolute;
	width: 100%;
	top: 0;
	line-height: 0em;
	padding: 16px;
	/* background-color: rgba(0, 0, 0, 0.5); */
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: white;
	z-index: 9999;
}

[class*='wp-block-sw-blocks-modal'] .modal .modal-content-box {
	width: auto;
	height: auto;
	display: flex;
	justify-content: center;
}

[class*='wp-block-sw-blocks-modal'] .modal-header .close-button {
	background-color: transparent;
	cursor: pointer;
	padding: 0;
	line-height: 0em;
}

[class*='wp-block-sw-blocks-modal'] .modal-header .close-button svg {
	width: 32px;
	color: #fff;
}

[id*='open-modal-'],
[id*='open-video-overlay-'] {
	cursor: pointer;
}

@media (max-width: 768px) {
	/* [class*='wp-block-sw-blocks-modal'] {
		background-color: transparent;
	} */
	[class*='wp-block-sw-blocks-modal'] .modal {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}
	[class*='wp-block-sw-blocks-modal'] .modal .modal-content-box {
		height: calc(100% - 74px);
		display: flex;
		align-items: center;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	[class*='wp-block-sw-blocks-modal'] .modal {
		width: 90%;
	}
}
