/* Card Design, shared by the modules whose items can be drawn with a Divi Library layout or canvas
   (includes/entry-template.php). Each module's stylesheet sizes its own item; these are the common parts. */

/* The design fills the item. */
.dp-entry-custom > div,
.dp-entry-custom .et-l,
.dp-entry-custom .et_builder_inner_content { height: 100%; }
.dp-entry-custom .et_pb_section:first-child:last-child { box-sizing: border-box; min-height: 100%; }
.dp-entry-custom img { -webkit-user-drag: none; }

/* A button set to Entry Link URL, on an item without a link. */
.dp-entry-custom .et_pb_button_module_wrapper:has(> .dp-entry-no-link),
.dp-entry-custom .dp-entry-no-link { display: none !important; }

/* Copies kept for the module's own scripts (names for avatars, the photo for the lightbox): never shown. */
.dp-entry-ghost { display: none !important; }

/* The Entry text is wrapped in the item's own classes (so the module's Design tab settings reach it); the wrapper
   takes nothing from the module's built-in styles, so the design's own styling shows unless a setting is changed. */
.dp-entry-custom .dp-entry-wrap.dp-entry-wrap.dp-entry-wrap,
.dp-entry-frame-card .dp-entry-wrap.dp-entry-wrap { all: unset; }

/* Builder preview frame: a background set for the item in Divi shows through the design. */
.dp-entry-frame-card.dp-bg-own :is(.et_pb_section, .et_pb_row):not(#dp#dp) { background: none !important; background-color: transparent !important; background-image: none !important; }
.dp-entry-frame-card.dp-bg-own :is(.et_pb_section, .et_pb_row) > :is(.et_parallax_bg_wrap, .et_pb_section_video_bg, .et_pb_background_pattern, .et_pb_background_mask) { display: none !important; }

/* The builder's preview frame on an item (the frame can't size the item to the design, so it gets a height). */
.dp-entry-framed { position: relative; min-height: 320px; }
/* Sized to its design by assets/entry/entry.js (stylesSync()). */
.dp-entry-framed.dp-entry-fit { min-height: 120px; }
.dp-entry-framed > iframe.dp-entry-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: transparent; pointer-events: none; }
