:root {
    --team-grid-row-gap: 40px;
    --team-grid-column-gap: 40px;
}

.nt-team-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-column-gap: var(--team-grid-column-gap);
    grid-row-gap: var(--team-grid-row-gap);
}

.nt-team-post,
.nt-team-post .team-member-image img  {
    position: relative;
}

.nt-team-post {
    height: 400px;
}

.nt-team-post .team-member-image img {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    object-fit: cover;
    object-position: top center;
    opacity: 1;
    display: block;
    transition: .5s ease;
    backface-visibility: hidden;
}

.nt-team-grid-item:before {
    content: '';
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 25%;
    background: #212121;
    opacity: 0.7;
    bottom: 0;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.nt-team-post .team-meta h3, 
.nt-team-post .team-meta p {
    display: block;
}

.nt-team-post .team-meta {
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    padding: 12px;
    z-index: 10;
    width: 100%;
}

.stretched-link::after {
    z-index: 14 !important;
}

button.nt-post-link.nt-post-button.stretched-link {
    background: transparent;
    border: none;
    -webkit-appearance: none;
}

/* MODAL */
.nt-staff-image {
	background-size: cover;
    -webkit-transition: -webkit-transform 15s cubic-bezier(.15,0,.7,1), opacity 0.3s;
    transition: transform 15s cubic-bezier(.15,0,.7,1), opacity 0.3s;
    background-position: center top;
}

.staff-modal-body  {
	padding: 0 !important;
}

.staff-modal .btn-close {
	font-size: 0;
	position: absolute;
    top: 40px;
    right: 40px;
    z-index: 9;
    border: none;
    background: transparent;
    color: #000;
}

.staff-modal .btn-close:hover,
.staff-modal .btn-close:focus {
    outline: none;
    box-shadow: none;
    color: #000;
}

.nt-staff-image {
    min-height: 400px;
}

@media (min-width: 520px) {
    .nt-team-grid-1 {
        grid-template-columns: 1fr;
    }

    .nt-team-grid-2,
    .nt-team-grid-3,
    .nt-team-grid-4,
    .nt-team-grid-5, 
    .nt-team-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .nt-team-grid-item:before {
        height: 25%;
    }
}

@media (min-width: 768px) {
	
    .nt-team-grid-1 {
        grid-template-columns: 1fr;
    }
    
    .nt-team-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nt-team-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nt-team-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nt-team-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nt-team-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .nt-team-grid-item:before {
        height: 25%;
    }
}

@media (min-width: 1026px) {
	
    .nt-team-grid-1 {
        grid-template-columns: 1fr;
    }
    
    .nt-team-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nt-team-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nt-team-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .nt-team-grid-5 {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .nt-team-grid-6 {
        grid-template-columns: repeat(6, 1fr);
    }

    .nt-team-post {
        height: 320px;
    }
    
    .nt-team-post .team-member-image img {
        height: 320px;
    }

    .nt-team-grid-item:before {
        height: 31%;
    }
}