.dmoe-parallax-inner {
	display: grid;
	align-items: start;
}

.dmoe-parallax-inner > .dmoe_parallax_cards_item.et_pb_module {
	margin-bottom: 0;
}

.dmoe-parallax-card-outer {
	position: relative;
}

.dmoe-parallax-card {
	position: relative;
	overflow: hidden;
}

.dmoe-parallax-card-media {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 0;
	line-height: 0;
}

.dmoe-parallax-card-imagebox {
	position: absolute;
	inset: 0;
	display: block;
	transition: transform .6s cubic-bezier(.2, .7, .3, 1), filter .5s;
}

.dmoe-parallax-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The corner comes from the Design tab, but it needs one here too — an absolute box
   with no offsets keeps its static position, which is on top of the content. */
.dmoe-parallax-card-badge {
	position: absolute;
	top: var(--dmoe-badge-inset, 14px);
	left: var(--dmoe-badge-inset, 14px);
	z-index: 3;
	display: inline-block;
	white-space: nowrap;
}

.dmoe-parallax-card-scrim {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.dmoe-parallax-card-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
}

.dmoe-parallax-card-content > * {
	margin: 0;
}

/* No align-items here — items default to stretch, full width, so text-align (which
   Divi's et_pb_text_align_* already sets) can actually move their content, including
   an inline-block button centred by its own wrapper. Scoped to our own module class
   (not a bare descendant selector), or a centered ancestor Row would falsely centre a
   card whose own alignment is left. */
.dmoe_parallax_cards.et_pb_text_align_center .dmoe-parallax-card-content { text-align: center; }
.dmoe_parallax_cards.et_pb_text_align_right .dmoe-parallax-card-content { text-align: right; }
.dmoe_parallax_cards.et_pb_text_align_justify .dmoe-parallax-card-content { text-align: justify; }

@media only screen and (max-width: 980px) {
	.dmoe_parallax_cards.et_pb_text_align_center-tablet .dmoe-parallax-card-content { text-align: center; }
	.dmoe_parallax_cards.et_pb_text_align_right-tablet .dmoe-parallax-card-content { text-align: right; }
	.dmoe_parallax_cards.et_pb_text_align_justify-tablet .dmoe-parallax-card-content { text-align: justify; }
}

@media only screen and (max-width: 767px) {
	.dmoe_parallax_cards.et_pb_text_align_center-phone .dmoe-parallax-card-content { text-align: center; }
	.dmoe_parallax_cards.et_pb_text_align_right-phone .dmoe-parallax-card-content { text-align: right; }
	.dmoe_parallax_cards.et_pb_text_align_justify-phone .dmoe-parallax-card-content { text-align: justify; }
}

/* The meta list is a flex row of its own, so the same global alignment needs
   justify-content here too — text-align has nothing to move. A specific Meta Text
   alignment (set per element or per child) always wins regardless: both are emitted
   `!important`, this one is not, so it only ever applies when nothing more specific
   is set. */
.dmoe_parallax_cards.et_pb_text_align_center .dmoe-parallax-card-meta { justify-content: center; }
.dmoe_parallax_cards.et_pb_text_align_right .dmoe-parallax-card-meta { justify-content: flex-end; }
.dmoe_parallax_cards.et_pb_text_align_justify .dmoe-parallax-card-meta { justify-content: space-between; }

@media only screen and (max-width: 980px) {
	.dmoe_parallax_cards.et_pb_text_align_center-tablet .dmoe-parallax-card-meta { justify-content: center; }
	.dmoe_parallax_cards.et_pb_text_align_right-tablet .dmoe-parallax-card-meta { justify-content: flex-end; }
	.dmoe_parallax_cards.et_pb_text_align_justify-tablet .dmoe-parallax-card-meta { justify-content: space-between; }
}

@media only screen and (max-width: 767px) {
	.dmoe_parallax_cards.et_pb_text_align_center-phone .dmoe-parallax-card-meta { justify-content: center; }
	.dmoe_parallax_cards.et_pb_text_align_right-phone .dmoe-parallax-card-meta { justify-content: flex-end; }
	.dmoe_parallax_cards.et_pb_text_align_justify-phone .dmoe-parallax-card-meta { justify-content: space-between; }
}

/* Divi pads every heading — `h1…h6 { padding-bottom: 10px }` — which double-spaces
   the title against the content gap. Two classes clear it; no !important, so a
   Design-tab value still wins. */
.dmoe-parallax-card .dmoe-parallax-card-title {
	padding: 0;
}

/* Divi styles every list in the content area, and one of its selectors is
   `#left-area ul` — an ID, which no number of classes can outrank. Without the two
   !important declarations the row shows list markers and a 1em indent. Divi resets
   WooCommerce's lists the same way, in that same stylesheet. */
.dmoe-parallax-card .dmoe-parallax-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0 !important;
	list-style: none !important;
}

.dmoe-parallax-card-meta > li + li::before {
	content: var(--dmoe-meta-sep, "\2022");
	margin: 0 var(--dmoe-meta-sep-gap, 9px);
	opacity: .55;
}

.dmoe-parallax--meta-stacked .dmoe-parallax-card-meta {
	display: block;
}

.dmoe-parallax--meta-stacked .dmoe-parallax-card-meta > li + li::before {
	content: none;
}

/* Nothing gives a button borrowed into a third-party module a display of its own,
   and an inline box ignores width and height. */
.dmoe-parallax-card .et_pb_button {
	display: inline-block;
}

/* Automatic image shape. A shape set in the Design tab is generated later and wins
   at equal specificity. */
.dmoe-parallax--layout1 .dmoe-parallax-card-media { aspect-ratio: 4 / 5; }
.dmoe-parallax--layout2 .dmoe-parallax-card-media { aspect-ratio: 3 / 2; }
.dmoe-parallax--layout3 .dmoe-parallax-card-media { aspect-ratio: 5 / 6; }

/* Layout 1 — content over the image. The card is a one-column grid whose first row
   is a band the content cannot enter, so a tall content stack grows the card instead
   of climbing under the badge. The picture spans both rows and fills whatever height
   the card ends up with. */
.dmoe-parallax--layout1 .dmoe-parallax-card {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: calc(var(--dmoe-badge-inset, 14px) + 2.4em) 1fr;
}

.dmoe-parallax--layout1 .dmoe-parallax-card-media {
	grid-area: 1 / 1 / -1 / -1;
}

.dmoe-parallax--layout1 .dmoe-parallax-card-content {
	grid-area: 2 / 1 / -1 / -1;
	align-self: end;
}

.dmoe-parallax--layout1 .dmoe-parallax-card-scrim {
	display: block;
	background: linear-gradient(to top, var(--dmoe-scrim-color, #090e14) 0%, transparent 72%);
	opacity: var(--dmoe-scrim-opacity, .88);
}

.dmoe-parallax--reveal-hover .dmoe-parallax-card-scrim {
	opacity: 0;
	transition: opacity .45s;
}

.dmoe-parallax--reveal-hover .dmoe-parallax-card-content > *,
.dmoe-parallax--reveal-titleHover .dmoe-parallax-card-content > *:not(.dmoe-parallax-card-title) {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .4s, transform .45s cubic-bezier(.2, .7, .3, 1);
}

.dmoe-parallax--reveal-hover .dmoe-parallax-card:hover .dmoe-parallax-card-scrim {
	opacity: var(--dmoe-scrim-opacity, .88);
}

.dmoe-parallax--reveal-hover .dmoe-parallax-card:hover .dmoe-parallax-card-content > *,
.dmoe-parallax--reveal-titleHover .dmoe-parallax-card:hover .dmoe-parallax-card-content > *:not(.dmoe-parallax-card-title) {
	opacity: 1;
	transform: none;
}

/* Layout 3 — the content sits in a panel overlapping the bottom of the image, so
   the card cannot clip and the panel borrows the card's own surface. */
.dmoe-parallax--layout3 .dmoe-parallax-card {
	overflow: visible;
}

.dmoe-parallax--layout3 .dmoe-parallax-card-media {
	border-radius: inherit;
}

/* Only the top offset is the peek effect itself, so only it is protected — a
   Design-tab margin can still move the panel sideways or add space below it. */
.dmoe-parallax--layout3 .dmoe-parallax-card-content {
	width: calc(100% - 34px);
	margin-top: -70px !important;
	margin-right: 17px;
	margin-bottom: 0;
	margin-left: 17px;
	border-radius: 12px;
	background: inherit;
	box-shadow: 0 18px 32px -20px rgba(0, 0, 0, .45);
}

/* With no image there is nothing to lay the badge or the overlay over, and nothing
   to give the card its height — so both return to the flow. Declared after the
   layouts, which is what lets it override them. */
.dmoe-parallax-card--no-media .dmoe-parallax-card-badge {
	position: static;
	margin: var(--dmoe-badge-inset, 14px) var(--dmoe-badge-inset, 14px) 0;
}

.dmoe-parallax-card--no-media .dmoe-parallax-card-scrim {
	display: none;
}

.dmoe-parallax-card--no-media .dmoe-parallax-card-content > * {
	opacity: 1;
	transform: none;
}

.dmoe-parallax--layout1 .dmoe-parallax-card--no-media,
.dmoe-parallax--layout3 .dmoe-parallax-card--no-media {
	display: block;
}

.dmoe-parallax--layout1 .dmoe-parallax-card--no-media .dmoe-parallax-card-content,
.dmoe-parallax--layout3 .dmoe-parallax-card--no-media .dmoe-parallax-card-content {
	position: static;
	width: auto;
	margin: 0;
	box-shadow: none;
}

.dmoe-parallax--imghover-zoom .dmoe-parallax-card:hover .dmoe-parallax-card-imagebox {
	transform: scale(1.06);
}

.dmoe-parallax--imghover-grayscale .dmoe-parallax-card-imagebox {
	filter: grayscale(1);
}

.dmoe-parallax--imghover-grayscale .dmoe-parallax-card:hover .dmoe-parallax-card-imagebox {
	filter: grayscale(0);
}

@media (prefers-reduced-motion: reduce) {
	.dmoe-parallax-card-imagebox,
	.dmoe-parallax-card-scrim,
	.dmoe-parallax-card-content > * {
		transition-duration: .01ms;
	}
}
