/* Section: photo bleeding off the left edge beside a heading, text and button. */
.hm-split { position: relative; overflow: hidden; padding: calc(40 * var(--hm-m)) 0 0; background: #fff; color: #000; font: 400 calc(15 * var(--hm-m)) / 1.5 var(--hm-font-body); }
.hm-split .hm-split__grid { display: grid; gap: calc(24 * var(--hm-m)); }
.hm-split .hm-split__image { order: 2; margin: 0 calc(50% - 50vw); } /* full width of the screen, whatever the container's side margins */
.hm-split .hm-split__image img { display: block; width: 100%; aspect-ratio: 940 / 640; object-fit: cover; border-radius: 0 0 calc(11.7 * var(--hm-m)) calc(11.7 * var(--hm-m)); background: #f5f5f5; }
.hm-split .hm-split__copy { position: relative; }
.hm-split .hm-split__title { margin: 0; font: 700 calc(20.66 * var(--hm-m)) / 1.4 var(--hm-font-display); text-transform: uppercase; }
.hm-split .hm-split__text { display: grid; gap: calc(11.7 * var(--hm-m)); margin-top: calc(11.7 * var(--hm-m)); }
.hm-split .hm-split__text > * { margin: 0; }
.hm-split .wp-block-buttons { margin-top: calc(29 * var(--hm-m)); }
.hm-split .hm-split__copy::before { content: ""; position: absolute; right: -3%; top: 10%; width: 57%; aspect-ratio: 479 / 661; background: url(../../../../img/home/2/prop.svg) center / contain no-repeat; opacity: 1; pointer-events: none; display: none; }
/* The faint Vietbar mark (every page, not only the home page). */
.hm-split .hm-split__copy::before {
	aspect-ratio: 1;
	background-image: url("../../../vietbar/mark-outline.svg");
	mask-image: linear-gradient(to bottom, #000 25%, transparent 100%);
}
@container hm (min-width: 1024px) {
	.hm-split .hm-split__grid { grid-template-columns: 1fr 1fr; gap: 0 calc(40 * var(--hm-u)); }
	.hm-split .hm-split__image { order: 0; margin: 0 0 0 calc(-260 * var(--hm-u)); width: calc(100% + 260 * var(--hm-u)); }
	/* The photo is as tall as the text beside it (not a fixed ratio), so a short text gives a short section. */
	.hm-split .hm-split__image { position: relative; align-self: stretch; min-height: calc(380 * var(--hm-u)); }
	.hm-split .hm-split__image img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0 calc(16 * var(--hm-u)) calc(16 * var(--hm-u)) 0; }
	.hm-split .hm-split__copy { padding: calc(64 * var(--hm-u)) 0 calc(48 * var(--hm-u)) calc(76 * var(--hm-u)); }
	.hm-split .hm-split__copy::before { display: block; }
}
@container hm (min-width: 1200px) {
	.hm-split { padding-top: calc(60 * var(--hm-u)); font-size: var(--hm-fs-sm); }
	.hm-split .hm-split__title { font-size: calc(52.48 * var(--hm-u)); line-height: 1.4; }
	.hm-split .hm-split__text { gap: calc(8 * var(--hm-u)); margin-top: calc(16 * var(--hm-u)); }
	.hm-split .wp-block-buttons { margin-top: calc(40 * var(--hm-u)); }
}

@container hm (min-width: 1024px) {
	.hm-split[data-reverse="1"] .hm-split__image { order: 2; margin: 0 calc(-260 * var(--hm-u)) 0 0; }
	.hm-split[data-reverse="1"] .hm-split__image img { border-radius: calc(16 * var(--hm-u)) 0 0 calc(16 * var(--hm-u)); }
	.hm-split[data-reverse="1"] .hm-split__copy { order: 1; padding: calc(64 * var(--hm-u)) calc(76 * var(--hm-u)) calc(48 * var(--hm-u)) 0; }
}

/* The outlined brand mark sits behind the text, never over it. */
.hm-split .hm-split__copy > * { position: relative; z-index: 1; }
