/**
 * Add styling for 404 page here
 */
 .team-listting {
    padding: 20px 0 50px 0;
}

.team-listting--link {
    position: relative;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    margin-top: 30px;
    transition: all 0.3s ease-in-out;
    z-index: 1;
    box-shadow: none;
    background: transparent !important;
}

.team-listting-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 2 / 2;
    clip-path: polygon(0 0, 91% 0, 100% 11%, 100% 100%, 9% 100%, 0 90%);
}

.team-listting-hover-btn {
	display: block;
}

.team-listting-content {
	text-align: center;
	padding: 17px 0 0;
}

.team-listting-content h3 {
    font-size: 22px;
    color: #004B86;
    padding: 0;
    font-weight: 700;
}

.team-listting-content p {
    color: #585F65;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
}

.team-listting-hover-btn button {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 0;
    background: #F17503;
    color: #fff;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.1em;
    font-weight: 700;
    padding: 10px 44px 10px 30px;
    border: none;
    clip-path: polygon(8% 0%, 100% 1%, 100% 100%, 0% 100%);
}

.team-listting-hover-btn button:after {
    content: '\e903';
    position: absolute;
    font-family: 'icomoon';
    color: #004B86;
    right: 24px;
    top: 50%;
    transform: translate(0, -50%);
    font-size: 11px;
}
@media(min-width:1025px) {
    .team-listting-hover-btn {
        display: none;
    }
}
@media(min-width: 1200px) {
	.team-listting--link {
		margin-top: 50px;
	}

	.team-listting-hover-btn {
		position: absolute;
		bottom: -110%;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(88, 95, 101, 0.59);
		display: flex;
		align-items: center;
		justify-content: center;
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s ease-in-out;
	}

	.team-listting-hover-btn .btn {
		opacity: 0;
		transition: all 0.5s ease-in-out;
	}

	.team-listting--link:hover .team-listting-hover-btn .btn {
		opacity: 1;
	}

	.team-listting--link:hover .team-listting-hover-btn {
		bottom: 0;
		opacity: 1;
		visibility: visible;
		
	}

	.team-listting {
		padding: 50px 0 100px;
	}
}


.team-listting-image img {
	-o-object-fit: cover;
	object-fit: cover;
	width: 100%;
	height: 100%;
	object-position: top;
}

.team-modal {
    width: 100%;
    height: 100vh;
    position: fixed;
    background: transparent;
    z-index: 999999;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 16px;
    overflow: auto;
    max-width: 1363px;
    display: none;
}

.team-modal-dialog {
    width: 100%;
    max-width: 1323px;
    margin: 0 auto;
    position: relative;
    background: #ffffff;
    overflow: hidden;
    border-radius: 0;
    padding: 50px 20px 30px;
    box-shadow: none;
    text-align: center;
}

.team-modal-dismiss {
    color: #6C899E;
    font-size: 16px;
    display: inline-block;
    position: absolute;
    top: 16px;
    cursor: pointer;
    right: 16px;
    transition: all .4s ease-in-out;
}

.team-modal-dismiss:hover {
    color: #F6862A;
}

.modal-content-image {
    width: 100%;
    margin: 0 auto 0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 2;
    max-width: 307px;
}

.modal-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content-infomation h2 {
    padding: 0;
    margin: 0px 0 3px;
    color: #2A2625;
    font-weight: 700;
    font-size: 25px;
    line-height: 1.3em;
    display: inline-block;
}

.modal-content-infomation h5 {
    display: block;
    font-size: 17px;
    color: #2A2625;
    margin: 0 0 18px;
    padding: 0 0;
    text-transform: uppercase;
    font-weight: 600;
}

.team-contact-feed {
    display: inline-block;
    vertical-align: middle;
    padding-bottom: 6px;
    padding-left: 8px;
}

.team-contact-feed a {
    display: inline-block;
    margin: 0 5px;
}

.modal-content-infomation {
    padding-top: 16px;
}

.modal-content-scrollable-infomation {
    width: 100%;
    float: left;
}

.modal-content-scrollable-infomation p {
    color: #2E3532;
    margin: 0;
    padding-bottom: 20px;
}

.modal-content-scrollable-infomation p:last-child {
    padding: 0;
}

.team-modal .fancybox-close-small {
    display: none;
}

.team-modal-content-left .btn-secondary {
    clip-path: polygon(0 0, 94% 0%, 100% 40%, 100% 100%, 6% 100%, 0 67%);
    margin-top: 30px;
    padding: 17px 37px 17px 22px;
}

.team-modal-content-left .btn-secondary::after {
    content: '\e903';
    color: #004B86;
    right: 16px;
}

.modal-content-infomation h3 {
    font-size: 20px;
    color: #1B78C1;
    text-transform: uppercase;
    padding-bottom: 0;
    line-height: 1em;
    letter-spacing: 0.1em;
}

.modal-content-infomation h2 {
    font-size: 28px;
    padding-bottom: 12px;
    color: #004B86;
    margin: 0;
}

.modal-content-infomation p {
    color: #585F65;
}

.team-modal-content-left {
    margin-bottom: 20px;
}

@media (min-width: 1200px) {
    .team-modal-content {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: flex-start;
    }

    .team-modal-dismiss {
        top: 18px;
        right: 16px;
        color: #6C899E;
    }

    .team-modal-dialog {
        padding: 70px 95px 70px 113px;
        z-index: 99;
        text-align: left;
    }

    .modal-content-infomation h2 {
        font-size: 55px;
    }

    .modal-content-infomation h3 {
        font-size: 25px;
    }

    .team-contact-feed {
        text-align: left;
    }

    .modal-content-scrollable-infomation::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
        border-radius: 10px;
        background-color: #F5F5F5;
    }

    .team-modal-content-left {
        width: 342px;
        margin-bottom: 0;
        text-align: center;
    }

    .team-modal-content-left .btn-secondary {
        margin-top: 45px;
        padding: 17px 60px 17px 38px;
    }

    .team-modal-content-left .btn-secondary::after {
        right: 40px;
    }

    .team-modal-content-right {
        width: calc(100% - 342px);
        text-align: left;
        padding-right: 40px;
    }

    .modal-content-scrollable-infomation::-webkit-scrollbar {
        width: 10px;
        background-color: #F5F5F5;
    }

    .modal-content-scrollable-infomation::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: #001C43;
    }

    .modal-content-scrollable-infomation p:last-child {
        padding-bottom: 0;
    }

    .team-modal-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100%;
        align-items: center;
    }
    
    .fancybox-slide--html .fancybox-close-small {
        right: 420px;
        top: 115px;
        color: #6C899E;
        background: transparent;
        padding: 0;
    }

    .team-modal-content {
        position: relative;
        z-index: 9;
    }

    .fancybox-is-open .fancybox-bg {
        background: rgba(88,95,101,0.78);
        opacity: 1;
    }
}
.search-404 {
    margin-bottom: 50px;
}
@media(min-width:1025px) {
    .search-404 {
        margin-bottom: 0;
    }
    .flex-row{
        align-items: flex-end;
    }
    .contact-404 > h4 {
        padding-bottom: 20px;
    }
}


.search-404 .btn::after{
    content: "\e91e";
}
.contact-404 .btn:after{
    content: '\e903';
}
.justify-center{
    justify-content: center;
}