/*
Theme Name: Beaver Builder Child Theme
Theme URI: http://www.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: http://www.fastlinemedia.com
template: bb-theme
*/

/* Add your custom styles here... */ 

.fl-photo {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 572px; /* Match the image width */
}

.fl-photo-content img {
    display: block;
    width: 100%;
    height: auto;
}

.fl-photo-caption {
    position: absolute;
    bottom: -20%; /* Default: Half on image, half below */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 40%;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    align-items: flex-start; /* Align text to the left */
    padding: 20px;
    box-sizing: border-box;
    border-radius: 25px;
}

/* Caption Text Styling */
.fl-photo-caption h2 {
    color: #29333C;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 24px;
    text-align: left;
    margin-top: 0;
}

.fl-photo-caption p {
    color: #808080;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-align: left;
}
@media (max-width: 1024px) {
	.fl-callout-text, .fl-callout-cta-link {
        font-size: 14px !important;
    }
  /* Bubbles 1st, 3rd, 5th, etc. */
  .fl-col.homespeakbubble:nth-of-type(odd) .fl-col-content.fl-node-content {
    background-image: url(https://build10.digitalzest.co.uk/wp-content/uploads/2025/02/Bubble_right.png) !important;
  }

  /* Bubbles 2nd, 4th, 6th, etc. */
  .fl-col.homespeakbubble:nth-of-type(even) .fl-col-content.fl-node-content {
    background-image: url(https://build10.digitalzest.co.uk/wp-content/uploads/2025/02/Bubble_left1.png) !important;
  }
	.fl-col.homespeakbubble:nth-of-type(odd) .fl-col-content.fl-node-content {
		padding-top: 0px !important;
		padding-bottom: 50px !important;
		padding-left: 50px !important;
		padding-right: 0px !important;
		margin: 0 10px !important;
	}
	.fl-col.homespeakbubble:nth-of-type(even) .fl-col-content.fl-node-content {
		padding-top: 0px !important;
		padding-bottom: 50px !important;
		padding-left: 0px !important;
		padding-right: 50px !important;
		margin: 0 10px !important;
	}
}

/* 📱 Mobile Responsive Styles */
@media (max-width: 768px) {
		.fl-photo-content {
  		position: relative; /* ensure it contains any absolutely positioned children */
  		display: inline-block;     /* make sure it's a block-level container */
  		overflow: hidden;   /* optional: ensures nothing escapes the box */
		}
	
	
    	.fl-photo-caption {
		position: static; /* or remove any 'position: absolute' that may be applied */
  		display: block;        
		margin-top: 1em; 
        transform: translate(0%, 10%);
        width: 100%;
        height: auto; /* Let the content determine height */
        padding: 15px;
        background: rgba(255, 255, 255, 0.85); /* Slight transparency for better image visibility */
        border-radius: 15px;
    }

    .fl-photo-caption h2 {
        font-size: 20px;
    }

    .fl-photo-caption p {
        font-size: 12px;
    }
}


/* 📱 Mobile Responsive Styles 430px Wide */
@media (max-width: 430px) {
        .fl-node-i3w1h7vfosdz .fl-photo-content, .fl-node-i3w1h7vfosdz .fl-photo-img {
        width: auto;
    }
	.fl-col.homespeakbubble:nth-of-type(odd) .fl-module > .fl-module-content {
        margin-right: 15px !important; 
        margin-left: 15px !important; 
    }
	.fl-col.homespeakbubble:nth-of-type(even) .fl-module > .fl-module-content {
        margin-right: 15px !important; 
        margin-left: 15px !important; 
		margin-top: 20px !important;
    }
	.fl-callout-text, h3.fl-callout-title {
        text-align: left !important;
    }
}
    
    
    
    
    
    
    
    
    
    
    
    