/* Milohead Ornaments 1.0.3. Default sizes; resizing an image in the editor overrides them. */
.mh-orn img { height: auto; max-width: 100%; }
.mh-orn-divider img { width: 520px; }
.mh-orn-rosette img { width: 64px; }
.mh-orn-mask img { width: 160px; }
.mh-orn-candelabrum img { width: 90px; }
.mh-orn-cartouche-img img { width: 560px; }

/* Gold tint style (Image block > Styles) */
.is-style-mh-gold img { filter: sepia(.85) saturate(.75) brightness(1.02); }

/* Cartouche with heading */
.mh-orn-cartouche { position: relative; max-width: 600px; margin-left: auto !important; margin-right: auto !important; }
.mh-orn-cartouche .mh-orn-cartouche-img { margin: 0 !important; }
.mh-orn-cartouche .mh-orn-cartouche-img img { width: 100%; }
.mh-orn-cartouche .mh-orn-cartouche-title {
	position: absolute; inset: 28% 25% 24%; margin: 0 !important;
	display: flex; align-items: center; justify-content: center;
	font-size: clamp(1.05rem, 3vw, 1.75rem); line-height: 1.2;
}

/* Corner frame */
.mh-orn-frame { position: relative; padding: clamp(4.5rem, 9vw, 7rem) clamp(2rem, 8vw, 6.5rem); }
.mh-orn-frame .mh-orn-corner { position: absolute; width: 120px; margin: 0 !important; pointer-events: none; z-index: 0; }
.mh-orn-frame .mh-orn-corner img { width: 100%; height: auto; }
.mh-orn-frame .mh-orn-tl { top: 10px; left: 10px; }
.mh-orn-frame .mh-orn-tr { top: 10px; right: 10px; }
.mh-orn-frame .mh-orn-bl { bottom: 10px; left: 10px; }
.mh-orn-frame .mh-orn-br { bottom: 10px; right: 10px; }
.mh-orn-frame .wp-block-group__inner-container > :not(.mh-orn-corner) { position: relative; z-index: 1; }
.editor-styles-wrapper .mh-orn-frame .mh-orn-corner { pointer-events: auto; }

@media (max-width: 640px) {
	.mh-orn-divider img { width: 78%; }
	.mh-orn-candelabrum img { width: 64px; }
	.mh-orn-frame { padding: 4rem 1.5rem; }
	.mh-orn-frame .mh-orn-corner { width: 70px; }
	.mh-orn-cartouche .mh-orn-cartouche-title { font-size: 1rem; inset: 26% 22% 22%; }
}

/* Classic-theme markup: corners and heading sit inside an inner container and a wrapper div */
.mh-orn-frame .wp-block-group__inner-container, .mh-orn-cartouche .wp-block-group__inner-container { position: static; }
.mh-orn-frame .mh-orn-corner figure, .mh-orn-cartouche .mh-orn-cartouche-img figure { margin: 0; }

/* Beat the site-wide spacing rules, which zero vertical padding on groups */
html body .mh-orn-frame.mh-orn-frame.mh-orn-frame.mh-orn-frame { padding-top: clamp(4.5rem, 9vw, 7rem) !important; padding-bottom: clamp(4.5rem, 9vw, 7rem) !important; }
body .mh-orn-frame > .wp-block-group__inner-container { padding: 0 !important; }
@media (max-width: 640px) {
	html body .mh-orn-frame.mh-orn-frame.mh-orn-frame.mh-orn-frame { padding-top: 4rem !important; padding-bottom: 4rem !important; }
}
