/**
 * Responsive Visibility -- see src/core-extensions/responsive-visibility.js.
 *
 * Enqueued on enqueue_block_assets, so it reaches both the front end and the
 * iframed editor canvas. On the front end a hidden block is removed; in the
 * editor it is only dimmed, so it can still be found and selected. The editor's
 * Desktop/Tablet/Mobile previews resize the canvas iframe, so the same media
 * queries apply there.
 */

@media (max-width: 599px) {
	body:not(.wp-admin):not(.editor-styles-wrapper) .hide-on-mobile {
		display: none !important;
	}

	.editor-styles-wrapper .hide-on-mobile {
		opacity: 0.25 !important;
	}
}

@media (min-width: 600px) and (max-width: 1023px) {
	body:not(.wp-admin):not(.editor-styles-wrapper) .hide-on-tablet {
		display: none !important;
	}

	.editor-styles-wrapper .hide-on-tablet {
		opacity: 0.25 !important;
	}
}

@media (min-width: 1024px) {
	body:not(.wp-admin):not(.editor-styles-wrapper) .hide-on-desktop {
		display: none !important;
	}

	.editor-styles-wrapper .hide-on-desktop {
		opacity: 0.25 !important;
	}
}
