.case-studies-archive{
    background-color: #111a28;
   }
.case-study {
    min-height: 80vh;
}
.case-study{
    background-color: #111a28;
    color: white;
    max-width: 900px;
    margin: auto;
    text-align: center;
}
   .case-studies-archive .intro{
    margin: auto auto 100px auto;
	display: flex;
    flex-direction: column;
    align-items: center;
   }
.case-studies-archive .intro p{
	max-width: 400px;
}
    .case-studies-archive h1, .case-studies-archive .intro-text{
        color: white;
        text-align: center;
    }
    .case-study-container{
        display: flex;
        position: relative;
        align-items: center;
        width: 100%;
        border-top: 1px solid #111a28;
        border-left: 1px solid #111a28;
        border-right: 1px solid #111a28;
        box-sizing: border-box;
        
    }
    .case-study-image img{
        max-width: 100%;
    }
    .case-study-text-container {
    position: relative;
}
.case-study-container.image-left{
    justify-content: flex-end;
}
.case-study-text {
    position: relative;
    width: 400px; 
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    overflow: hidden;
}
.image-right .case-study-text p, .image-right .case-study-text h2{
    z-index: 2;
    text-align: left;
    width: 100%;
    color: white;
    margin: 0;
    max-width: 300px;

    }
    .image-left .case-study-text h2 a, .image-right .case-study-text h2 a{
        color: white;
    }   

    .image-left .case-study-text p, .image-left .case-study-text h2{
    z-index: 2;
    text-align: right;
    width: 100%;
    color: white;
    margin: 0;
    max-width: 300px;
    align-self: end;
    }
    .case-study-mobile-image{
        display: none;
    }
    @media only screen and (max-width: 900px){
        .case-study-text::before{
            display: none;
        }
        .case-study-mobile-image{
            display: block;
        }
        .case-study-mobile-image img{
            max-width: 100%;
        }
        .case-study-text{
            text-align: center;
            height: auto!important;
            width: 100%!important;
            padding: 20px 15px;
            min-height: 150px;
        }
        .case-study-text p, .case-study-text h2{
            text-align: center!important;
            padding: 0px!important;
        }
        .case-study-container{
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0px 0px 5px lightgrey;
            max-width: 90%;
            margin: 0 auto 40px auto;
            border: none!important;
            background: none!important;
            
        }
    }

    @media only screen and (min-width: 900px){
        .image-right .case-study-text::before{
            content: '';
            position: absolute;
            top: 0;
            left: -12px;
            width: 400px;
            height: 400px;
            background: url("https://space.joncolegate.co.uk/wp-content/uploads/53719b19-88d4-4900-ad94-4fa7a3b457c3.png") no-repeat;
            z-index: 1;
            background-size: contain;
        }
        .image-left .case-study-text::before{
            content: '';
            position: absolute;
            top: 0;
            right: -12px;
            width: 400px;
            height: 400px;
            background: url("https://space.joncolegate.co.uk/wp-content/uploads/53719b19-88d4-4900-ad94-4fa7a3b457c3.png") no-repeat;
            transform: rotate(-180deg);
            z-index: 1;
            background-size: contain;
        }
        .case-study-container{
            max-width: 1200px;
            margin: auto;
        }
		.case-studies-archive, .case-study{
				margin-top: 100px;
		}
    }
    
    
.image-text-block {
    display: flex;
    align-items: center;
}

.image-text-block .image {
    flex: 1;
    max-width: 50%;
}

.image-text-block .text {
    flex: 1;
    max-width: 50%;
}

.image-text-block.image-left .image {
    order: 1;
}

.image-text-block.image-left .text {
    order: 2;
}

.image-text-block.image-right .image {
    order: 2;
}

.image-text-block.image-right .text {
    order: 1;
}

