.comic-container-bf35982b {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.comic-element-bf35982b {
	position: absolute;
	z-index: 10;
}

.comic-element-bf35982b img {
	width: 100%;
	height: auto;
	display: block;
}

/* Comic Speech Bubble styling */
.comic-bubble-bf35982b {
	position: relative;
	background: #FFFFFF;
	border: 4px solid #333333;
	border-radius: 40px;
	padding: 20px;
	text-align: center;
	font-weight: 500;
	z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Default variable if no color is set */
    --bubble-bg-color: #FFFFFF;
}

/* Custom Image Bubble with Text Overlay */
.comic-bubble-custom-bf35982b {
	position: relative;
	display: inline-block;
	width: 100%;
}

.bubble-bg-img-bf35982b {
	width: 100%;
	height: auto;
	display: block;
}

.bubble-text-overlay-bf35982b {
	position: absolute;
	top: 45%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 85%;
	box-sizing: border-box;
	text-align: center;
	font-weight: 500;
	z-index: 5;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Bubble Tail (Border - Outer Triangle) */
.comic-bubble-bf35982b::after {
	content: '';
	position: absolute;
	bottom: -20px;
	left: 50%;
	border-width: 20px 0 0 20px;
	border-style: solid;
	border-color: #333333 transparent transparent transparent;
	transform: translateX(-50%);
	z-index: -1; /* Place it behind the inner triangle */
}

/* Bubble Tail (Inner Background - Inner Triangle) */
.comic-bubble-bf35982b::before {
	content: '';
	position: absolute;
	bottom: -13px; /* Adjusted dynamically based on border width */
	left: 50%;
	border-width: 14px 0 0 14px;
	border-style: solid;
	border-color: var(--bubble-bg-color) transparent transparent transparent;
	transform: translateX(-50%);
	z-index: 1; /* Place it above the outer triangle but below the content */
}
