.component.text-image {
    background-repeat: no-repeat;
    background-position: center left;
    background-origin: content-box;
    background-clip: content-box;
    display: flex;
    justify-content: flex-end;
    /*align-items: flex-end;*/
    /* Changed by Perran as part of FE review */
    align-items: center;
    padding: 0px calc(var(--logo-width) - 40px);
}

.image-container {
	max-width: calc(50% - 40px);
	padding: 100px 40px;
	position: relative;
	min-width: calc(50% - 40px);
	height: 100%;
	overflow: hidden;
}

.image-container img {
	height: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	transform: translatey(-50%) translatex(-50%);
}
.full .image-container {
    display:none;
}

.component.text-image.center {
    align-items: center;
}

/* Changed by Perran as part of FE review */
.component.text-image.reverse {
	background-position: center right;
	justify-content: space-between;
}

.component.text-image.reverse .image-container {
	order: 2;
	margin-left: 50px;
}
.component.text-image:not(.reverse) .image-container {
	margin-right: 50px;
	margin-left:50px;
}
.component.text-image:not(.full) > * {
	padding-top: 100px;
	padding-bottom: 100px;
}
@media(max-width:767px){
    .component.text-image:not(.full) > * {
    	padding-top: 140px;
    	padding-bottom: 140px;
    }
    .image-container {
        margin-left:20px;   
    }
}

.component.text-image.full {
	background-size: cover;
	background-position: center;
}

.component.text-image.full .image {
    display: none;
}

.component.text-image .content {
    background-color: var(--white);
    max-width: 768px;
    /*display: flex;
    flex-direction: column;*/
    /* Change by Perran as part of FE review - high chance of reversal as I suspect there is a reason for this that I am unaware of */
    padding: 0px 40px;
    position: relative;
    font-size: 20px;
    /*margin: 200px 0;*/
    /* Changed by Perran as part of FE review */
    margin: 0px 0;
}

.component.text-image.full .content {
    padding:40px;   
}
.component.text-image:not(.full) .content {
    margin-top:100px;
    margin-bottom:100px;
}

.component.text-image .content > * {
    /* Removed by Perran as part of FE review */
    /*margin: 20px 0;*/
}

.component.text-image .content .tag {
    background: var(--red01);
    color: var(--white);
    position: absolute;
    top: 0;
    left: 40px;
    /*transform: translateY(-100%);*/
    margin: 0;
    padding: 5px 10px;
    font-weight: bold;
}
.component.text-image .content.has-tag {
	padding-top: 55px;
}

.component.text-image.reverse .content .tag {
    /*left: auto;
    right: 0;*/
}

.component.text-image .content .neue-haas {
    /* Removed by Perran as part of FE review */
    /*margin: 0 0 25px;*/
    font-size: 50px;
    color: var(--red01);
}

.component.text-image .content .small {
    font-size: 15px;
}

.component.text-image .content .more {
    color: var(--black);
    font-weight: bold;
    text-decoration: none;
}

.component.text-image .content .more svg {
    stroke: var(--red01);
}

@media (max-width: 991px){
    .image-container {
    	max-width: calc(100% - 40px);
    	min-width: calc(100% - 40px);
    }
    .component.text-image {
        padding: 0px 0px;
    }
    .component.text-image .content {
        min-width:50%;   
    }
}

@media (max-width: 768px) {
    .component.text-image {
        background: none !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0;
    }

    .component.text-image .image {
        display: block;
        width: 100%;
    }

    .component.text-image .content,
    .component.text-image.full .content{
        padding: 20px;
        margin: 0 !important;
        min-width:0px;
    }

    .component.text-image .content > *:not(.neue-haas):not(.tag) {
        margin-left: 60px;
    }

    .component.text-image .content .tag {
        position: static;
        transform: none;
        align-self: flex-start;
        margin-bottom: 20px;
        display:inline-block;
    }

    .component.text-image .content .neue-haas {
        font-size: 40px;
    }

    .component.text-image .text {
        font-size: 19px;
    }

    .component.text-image .quote {
        align-self: flex-start;
    }
    .component.text-image.reverse .image-container {
	    order: 0;
    	margin-left: 20px;
    }
    .component.text-image:not(.reverse) .image-container {
    	margin-right: 20px;
    	margin-left:20px;
    }
}

@media (max-width: 480px) {
    .component.text-image .content > *:not(.neue-haas):not(.tag) {
        margin-left: 0;
    }

    .component.text-image .content .neue-haas {
        font-size: 30px;
    }
}
