.career-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 5px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    background-color: #074e8c;
    overflow: hidden;
}

.career-content {
    display: flex;
    flex-direction: column;
    background: #003c71;
    padding: 2px;
    height: 650px;
    border-radius: 8px;
    text-align: center;
}

.career-content:nth-child(even) {
    flex-direction: column-reverse;
}

.career-content:nth-child(even) .img-wrapper:hover .before {
    opacity: 0;
    transform: translateY(-100%);
}

.img-wrapper {
		position: relative;
    width: 100%;
    height: 650px;
    border-radius: 8px;
    overflow: hidden;
}

.career-content h3 {
		padding: 5px;
		margin: 2px;
}

.career-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
		display: block;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.after {
    z-index: 1;
}

.before {
    z-index: 2;
}

.img-wrapper:hover .before {
    opacity: 0;
    transform: translateY(100%);
}

@media (max-width: 1350px) {
	.career-grid {
    grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 600px) {
	.career-grid {
    grid-template-columns: repeat(2, 1fr);
	}
	
	.career-content,
	.img-wrapper{
		height:200px;	
	}
	
	.career-content:nth-child(1) .career-img {
    	transform: translateY(-30px);
	}
	
	.career-content:nth-child(2) .career-img {
	    transform: translateY(-40px);
	}
	
	.career-content:nth-child(3) .career-img {
	    transform: translateY(-50px);
	}
	
	.career-content:nth-child(4) .career-img {
	    transform: translateY(-15px);
	}
	
	.career-content:nth-child(5) .career-img {
	    transform: translateY(-15px);
	}
	
	.career-content:nth-child(6) .career-img {
	    transform: translateY(-10px);
	}
	
	.career-content:nth-child(7) .career-img {
	    transform: translateY(-200px);
	}
	
	.before {
  	display: none !important;
	}
}