  /* -----------------------------------
   Base Styles (Applied to All Styles)
-------------------------------------*/

/* Block Wrapper */
.txtoverimg-block {
    margin-bottom: 15px;
	margin-top:15px;
}



/* Common Link Item Wrapper Base */
.txtoverimg-block a.txtoverimg-link-item {
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 250ms;
    text-decoration: none;
	border: 1px solid #dadada;
}

/* Common Headline Animation */
.txtoverimg-block .txtoverimg-link-item .txtoverimg-headline {
    transition: transform 0.3s ease;
}

/* Apply the styles for all viewports except when between 768px and 1000px */
@media not all and (min-width: 768px) and (max-width: 1000px) {
    .txtoverimg-bg-box.box-ratio-1 {
        aspect-ratio: 16 / 10;
    }
    .txtoverimg-bg-box.box-ratio-2 {
        aspect-ratio: 250 / 200;
    }
    .txtoverimg-bg-box.box-ratio-3 {
        aspect-ratio: 850 / 300;
    }
}

/*	.txtoverimg-block > a.txtoverimg-link-item:hover .txtoverimg-headline h3 {
    text-decoration: underline;
	border: 0px;
} */

.txtoverimg-block > a.txtoverimg-link-item .txtoverimg-headline h3 span {
  text-decoration:underline;
  text-decoration-color: rgba(255, 255, 255, 0); /* transparent at start */
  
}
.txtoverimg-block > a.txtoverimg-link-item:hover .txtoverimg-headline h3 span {
  text-decoration-color: rgba(255, 255, 255, 0.7);
	transition: text-decoration-color 700ms;
}





/* Headline Text Alignment Utilities */
.txtoverimg-headline.txt-align-left { text-align: left; }
.txtoverimg-headline.txt-align-center { text-align: center; }
.txtoverimg-description.txt-align-center { text-align: center; }

.txtoverimg-description.txt-align-left.small14, .txtoverimg-description.txt-align-center.small14 {
		font-size: 14px;
    line-height: 18px;
}


/* Container Queries Setup */
.txtoverimg-block {
    container-type: inline-size;
    container-name: txtoverimg-container;
}

/* Background Box Overlay (All Styles) */
.txtoverimg-block .txtoverimg-bg-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: inherit;
    background-position: inherit;
    background-size: inherit;
}

/* Image Filters */
.txtoverimg-block.style1 .txtoverimg-bg-box.filter1::before,
.txtoverimg-block.style2 .txtoverimg-bg-box.filter1::before,
.txtoverimg-block.style3 .txtoverimg-bg-box.filter1::before {
    filter: brightness(1.15);
}

.txtoverimg-block.style1 .txtoverimg-bg-box.filter2::before,
.txtoverimg-block.style2 .txtoverimg-bg-box.filter2::before,
.txtoverimg-block.style3 .txtoverimg-bg-box.filter2::before,
.txtoverimg-block.style4 .txtoverimg-bg-box.filter2::before {
    filter: brightness(0.8);
}

.txtoverimg-block.style1 .txtoverimg-bg-box.filter3::before,
.txtoverimg-block.style2 .txtoverimg-bg-box.filter3::before,
.txtoverimg-block.style3 .txtoverimg-bg-box.filter3::before,
.txtoverimg-block.style4 .txtoverimg-bg-box.filter3::before {
    filter: grayscale(100%);
}

.txtoverimg-block.style1 .txtoverimg-bg-box.filter4::before,
.txtoverimg-block.style2 .txtoverimg-bg-box.filter4::before,
.txtoverimg-block.style3 .txtoverimg-bg-box.filter4::before,
.txtoverimg-block.style4 .txtoverimg-bg-box.filter4::before {
    filter: blur(2.5px);
}


/* -----------------------------------
   Style 1
-------------------------------------*/

/* Link Item Wrapper */
.txtoverimg-block.style1 a.txtoverimg-link-item {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Link Items and Headline Text */
.txtoverimg-block.style1 a.txtoverimg-link-item,
.txtoverimg-block.style1 a.txtoverimg-link-item h3,
.txtoverimg-block.style1 a.txtoverimg-link-item h4 {
    color: white;

}

/* Hover Effects */
.txtoverimg-block.style1 a.txtoverimg-link-item:hover,
.txtoverimg-block.style3 a.txtoverimg-link-item:hover {
    box-shadow: 0 4px 5px rgba(0,0,0,0.2);
}


.txtoverimg-block.style1 a.txtoverimg-link-item:hover .txtoverimg-headline {
    transform: translateY(-10px);
}




/* Headlines */
.txtoverimg-block.style1 .txtoverimg-headline {
    position: relative;
    z-index: 2;
    padding-left: 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 47%, rgba(0,0,0,0.7) 100%);
    width: 100%;
    padding-bottom: 20px;
    margin-bottom: -20px;
	padding-right: 6px;
	padding-top: 10px;
}
.txtoverimg-block.style1 .txtoverimg-headline h3 {
    font-size: 25px;
    font-weight: bold;
    margin: 10px 0;
}

.txtoverimg-block.style1 .txtoverimg-headline h3 span {
    text-shadow: 3px 2px 8px rgba(0,0,0,1);

}

.txtoverimg-block.style1 .txtoverimg-headline h3:has(+ h4) {
    margin-bottom: 3px;
}
.txtoverimg-block.style1 .txtoverimg-headline h4 {
    font-size: 16px;
    text-shadow: 3px 2px 8px rgba(0,0,0,1);
    margin-block-start: 0;
    margin-block-end: 10px;
}

.txtoverimg-block.style1 .txtoverimg-headline h4 span {
    text-shadow: 3px 2px 8px rgba(0,0,0,1);
}


.txtoverimg-block.style1.blue .txtoverimg-headline h4 {
    padding-bottom: 5px;
}

/* Blue Variation */
.txtoverimg-block.style1.blue .txtoverimg-headline {
    /*background: linear-gradient(to bottom, rgba(63,141,192,0.9) 0%, rgba(63,141,192,0.9) 100%);*/
	background: linear-gradient(to bottom, rgba(0,105,170,0.9) 0%, rgba(0,105,170,0.9) 100%);
	padding-top: 0px;
}
.txtoverimg-block.style1.blue .txtoverimg-headline h3 {

	margin: 5px 0px;
}
.txtoverimg-block.style1.blue .txtoverimg-headline h4 {
	margin-block-end: 5px;
}


.txtoverimg-block.style1.blue .txtoverimg-headline h3 span {
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);

}
.txtoverimg-block.style1.blue .txtoverimg-headline h4 span {
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);

}

/* Background Box */
.txtoverimg-block.style1 .txtoverimg-bg-box {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    min-height: 150px;
    position: relative;
    background-size: cover;
    overflow: hidden;
}

/* Description */
.txtoverimg-block.style1 .txtoverimg-description {
    padding: 15px;
    background-color: #f4f4f4;
    color: #333;
}
.txtoverimg-block.style1 .txtoverimg-description p {
    margin: 0 auto;
    line-height: 1.6;
}

/* Media Queries */
@media only screen and (min-width: 1000px) {
    /* remove any overlays on medium screen sizes */
    .txtoverimg-block.style1 .txtoverimg-bg-box.default-overlay::before {
        background: none;
    }
    /* unset minimum height for mobile */
    .txtoverimg-block.style1 .txtoverimg-bg-box {
        min-height: unset;
    }
}

/* Container Queries */
@container txtoverimg-container (min-width: 405px) {
    .txtoverimg-block.style1 .txtoverimg-headline h3 {
        font-size: 28px;
    }
    .txtoverimg-block.style1 .txtoverimg-headline h4 {
        font-size: 20px;
    }
    .txtoverimg-block.style1.blue .txtoverimg-headline h3 {
        font-size: 28px;
    }
    .txtoverimg-block.style1.blue .txtoverimg-headline h4 {
        font-size: 20px;
    }
}

@container txtoverimg-container (max-width: 160px) {
    .txtoverimg-block.style1 .txtoverimg-headline h3 {
        font-size: 18px;
    }
    .txtoverimg-block.style1 .txtoverimg-headline h4 {
        font-size: 16px;
    }
    .txtoverimg-block.style1.blue .txtoverimg-headline h3 {
        font-size: 18px;
    }
    .txtoverimg-block.style1.blue .txtoverimg-headline h4 {
        font-size: 16px;
    }
	.txtoverimg-block.style1.blue .txtoverimg-description, .txtoverimg-block.style1 .txtoverimg-description  {
        font-size: 14px;
    }
}


/* -----------------------------------
   Style 3
-------------------------------------*/

/* Link Item Wrapper */
.txtoverimg-block.style3 a.txtoverimg-link-item {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.txtoverimg-block.style3 a.txtoverimg-link-item,
.txtoverimg-block.style3 a.txtoverimg-link-item h3,
.txtoverimg-block.style3 a.txtoverimg-link-item h4 {
    color: white;
    margin-block-start: 0;
    margin-block-end: 0;
}
.txtoverimg-block.style3 a.txtoverimg-link-item h3 {
    font-weight: bold;
}
.txtoverimg-block.style3 a.txtoverimg-link-item:hover .txtoverimg-headline {
    transform: translateY(-10px);
}

/* disable underline effect on style 3 */
.txtoverimg-block.style3 a.txtoverimg-link-item .txtoverimg-headline h3::after {
  background-color: rgba(255, 255, 255, 0);
}



/* Background Box */
.txtoverimg-block.style3 .txtoverimg-bg-box {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 150px;
    position: relative;
    background-size: cover;
    overflow: hidden;
}

/* Headline */
.txtoverimg-block.style3 .txtoverimg-headline {
    position: relative;
    z-index: 1;
    line-height: 1.4;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
}

/* Headline Spans */
.txtoverimg-block.style3 .txtoverimg-headline h3 span,
.txtoverimg-block.style3 .txtoverimg-headline h4 span {
    background-color: #000;
    color: #fff;
    display: inline;
    padding: 0.45rem;
    line-height: 1.5em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    border-radius: 5px;
}

.txtoverimg-block.style3 .txtoverimg-headline h3 span {
    font-size: 25px;
}

.txtoverimg-block.style3 .txtoverimg-headline h4 span {
    font-size: 16px;
}

/* Description */
.txtoverimg-block.style3 .txtoverimg-description {
    padding: 20px;
    background-color: #f4f4f4; 
    color: #333;
    text-align: center;
}
.txtoverimg-block.style3 .txtoverimg-description p {
    margin: 0 auto;
    line-height: 1.6;
}

.txtoverimg-block.style3 .txtoverimg-headline.txt-align-left {
	text-align: center;
}

/* Aspect Ratios for Style 3 */
@media only screen and (min-width: 1200px) {
    .txtoverimg-block.style3 .txtoverimg-bg-box.box-ratio-1 {
        aspect-ratio: 16 / 10;
    }
    .txtoverimg-block.style3 .txtoverimg-bg-box.box-ratio-2 {
        aspect-ratio: 250 / 200;
    }
    .txtoverimg-block.style3 .txtoverimg-bg-box.box-ratio-3 {
        aspect-ratio: 850 / 300;
    }

    /* remove any overlays on medium screen sizes */
    .txtoverimg-block.style3 .txtoverimg-bg-box.default-overlay::before {
        background: none;
    }

    /* unset minimum height for mobile */
    .txtoverimg-block.style3 .txtoverimg-bg-box {
        min-height: unset; 
    }

    /* more padding on headlines */
    .txtoverimg-block.style3 .txtoverimg-headline h3 span {
        padding: 8px;
    }
    .txtoverimg-block.style3 .txtoverimg-headline h4 span {
        padding: 0px 8px 8px 8px;
    }
}




/* Container Queries */
@container txtoverimg-container (min-width: 405px) {
    .txtoverimg-block.style3 .txtoverimg-headline h3 span {
        font-size: 28px;
    }
    .txtoverimg-block.style3 .txtoverimg-headline h4 span {
        font-size: 20px;
    }
}

@container txtoverimg-container (max-width: 160px) {
    .txtoverimg-block.style3 .txtoverimg-headline h3 {
        font-size: 18px;
    }
    .txtoverimg-block.style3 .txtoverimg-headline h4 {
        font-size: 16px;
    }
		.txtoverimg-block.style3 .txtoverimg-description {
        font-size: 14px;
    }

}


/* -----------------------------------
   Style 4
-------------------------------------*/

/* Link Item Wrapper */
.txtoverimg-block.style4 a.txtoverimg-link-item {
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 250ms;
	border:unset;
    /* Note: No box-shadow defined for style4 link items */
}

/* Link Items and Headline Text */
.txtoverimg-block.style4 a.txtoverimg-link-item,
.txtoverimg-block.style4 a.txtoverimg-link-item h3,
.txtoverimg-block.style4 a.txtoverimg-link-item h4 {
    /*text-decoration: none;*/
}
.txtoverimg-block.style4 a.txtoverimg-link-item h3 {
    font-weight: bold;
}

/* Hover */
.txtoverimg-block.style4 a.txtoverimg-link-item:hover .txtoverimg-headline {
    transform: translateY(-10px);
}

/* Background Box */
.txtoverimg-block.style4 .txtoverimg-bg-box {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    min-height: 150px;
    position: relative;
    background-size: cover;
    overflow: hidden;
}

/* Headline */
.txtoverimg-block.style4 .txtoverimg-headline {
    position: relative;
    z-index: 2;
    padding-left: 15px;
    background: white;
    width: fit-content;
    padding-bottom: 20px;
    margin-bottom: -20px;
	border-top-right-radius:5px;
	padding-right: 15px;
    margin-right: 20px;
}
.txtoverimg-block.style4 .txtoverimg-headline h3 {
    font-size: 25px;
    margin: 10px 0 0 0;
	
}

/* Text decoration color */

.txtoverimg-block.style4 a.txtoverimg-link-item:hover .txtoverimg-headline h3 span {
  text-decoration-color: rgba(35, 82, 124, 0.7);

}

.txtoverimg-block.style4 .txtoverimg-headline h3:has(+ h4) {
    margin-bottom: 3px;
}
.txtoverimg-block.style4 .txtoverimg-headline h4 {
    font-size: 16px;
    margin-block-start: 0;
    margin-block-end: 0px;
}

/* Description */
.txtoverimg-block.style4 .txtoverimg-description {
    padding: 10px 10px 20px 15px;
    color: #333;
}
.txtoverimg-block.style4 .txtoverimg-description p {
    margin: 0 auto;
    line-height: 1.6;
}
/* Disable Centering with Style 4 */

.txtoverimg-block.style4 .txtoverimg-description.txt-align-center {
    text-align: left;
}

/* Style4 Media Queries */
@media only screen and (min-width: 1000px) {
    /* remove any overlays on medium screen sizes */
    .txtoverimg-block.style4 .txtoverimg-bg-box.default-overlay::before {
        background: none;
    }
    /* unset minimum height for mobile */
    .txtoverimg-block.style4 .txtoverimg-bg-box {
        min-height: unset;
    }
}

/* Container Queries */
@container txtoverimg-container (min-width: 405px) {
    .txtoverimg-block.style4 .txtoverimg-headline h3 {
        font-size: 28px;
    }
    .txtoverimg-block.style4 .txtoverimg-headline h4 {
        font-size: 20px;
    }
    .txtoverimg-block.style4.blue .txtoverimg-headline h3 {
        font-size: 28px;
    }
    .txtoverimg-block.style4.blue .txtoverimg-headline h4 {
        font-size: 20px;
    }
}

@container txtoverimg-container (max-width: 160px) {
    .txtoverimg-block.style4 .txtoverimg-headline h3 {
        font-size: 18px;
    }
    .txtoverimg-block.style4 .txtoverimg-headline h4 {
        font-size: 16px;
    }
	.txtoverimg-block.style4 .txtoverimg-description  {
        font-size: 14px;
    }

}

@media only screen and (max-width: 768px) {
.txtoverimg-block {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
}

/* Component TinyMCE styles */	

.stk-component-editor-wrapper.txt-over-img .stk-component-editor-title {
    z-index: 0;
}

.stk-component-editor-wrapper.txt-over-img img.box-ratio-1 {
	aspect-ratio: 16 / 10;object-fit: cover;
}
.stk-component-editor-wrapper.txt-over-img img.box-ratio-2 {
	aspect-ratio: 250 / 200;object-fit: cover;
}
.stk-component-editor-wrapper.txt-over-img img.box-ratio-3 {
	aspect-ratio: 850 / 300;object-fit: cover;
}

.stk-component-editor-wrapper.txt-over-img img.box-ratio-3 {
	aspect-ratio: 850 / 300;object-fit: cover;
}

.stk-component-editor-wrapper.txt-over-img img.filter3 {
	filter: grayscale(100%);
}

.stk-component-editor-wrapper.txt-over-img img.filter2 {
	filter: brightness(0.8);
}

.stk-component-editor-wrapper.txt-over-img img.filter1 {
	filter: brightness(1.15);
}
.stk-component-editor-title {
	z-index: 10000;
}
.stk-component-editor-wrapper.txt-over-img h4:has(> br:only-child),
.stk-component-editor-wrapper.txt-over-img p:has(> br:only-child) {
	display: none;
}