.team-profile {
    background-color: #fff;
}
/* Team specific */
.team-profile#mclaren .team-profile-header {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/mclaren/top-background.jpg');
}
.team-profile#mclaren .team-gallery {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/mclaren/gallery-background.jpg');
}
.team-profile#mclaren .team-driver-profile {
    background: #A25500;
    background: linear-gradient(0deg,rgba(162, 85, 0, 1) 0%, rgba(255, 144, 22, 1) 50%);
}
.team-profile#ferrari .team-profile-header {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/ferrari/top-background.jpg');
}
.team-profile#ferrari .team-gallery {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/ferrari/gallery-background.jpg');
}
.team-profile#ferrari .team-driver-profile {
    background: #5F0714;
    background: linear-gradient(0deg,rgba(95, 7, 20, 1) 0%, rgba(237, 17, 49, 1) 50%);
}
.team-profile#red-bull-racing .team-profile-header {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/red-bull-racing/top-background.jpg');
}
.team-profile#red-bull-racing .team-gallery {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/red-bull-racing/gallery-background.jpg');
}
.team-profile#red-bull-racing .team-driver-profile {
    background: #1C3456;
    background: linear-gradient(0deg,rgba(28, 52, 86, 1) 0%, rgba(71, 129, 215, 1) 50%);
}
.team-profile#mercedes .team-profile-header {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/mercedes/top-background.jpg');
}
.team-profile#mercedes .team-gallery {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/mercedes/gallery-background.jpg');
}
.team-profile#mercedes .team-driver-profile {
    background: #005649;
    background: linear-gradient(0deg,rgba(0, 86, 73, 1) 0%, rgba(0, 215, 182, 1) 50%);
}
.team-profile#aston-martin .team-profile-header {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/aston-martin/top-background.jpg');
}
.team-profile#aston-martin .team-gallery {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/aston-martin/gallery-background.jpg');
}
.team-profile#aston-martin .team-driver-profile {
    background: #0E3D2D;
    background: linear-gradient(0deg,rgba(14, 61, 45, 1) 0%, rgba(34, 153, 113, 1) 50%);
}
.team-profile#alpine .team-profile-header {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/alpine/top-background.jpg');
}
.team-profile#alpine .team-gallery {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/alpine/gallery-background.jpg');
}
.team-profile#alpine .team-driver-profile {
    background: #00405D;
    background: linear-gradient(0deg,rgba(0, 64, 93, 1) 0%, rgba(0, 161, 232, 1) 50%);
}
.team-profile#racing-bulls .team-profile-header {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/racing-bulls/top-background.jpg');
}
.team-profile#racing-bulls .team-gallery {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/racing-bulls/gallery-background.jpg');
}
.team-profile#racing-bulls .team-driver-profile {
    background: #2B3D66;
    background: linear-gradient(0deg,rgba(43, 61, 102, 1) 0%, rgba(108, 152, 255, 1) 50%);
}
.team-profile#haas-f1-team .team-profile-header {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/haas-f1-team/top-background.jpg');
}
.team-profile#haas-f1-team .team-gallery {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/haas-f1-team/gallery-background.jpg');
}
.team-profile#haas-f1-team .team-driver-profile {
    background: #3E4041;
    background: linear-gradient(0deg,rgba(62, 64, 65, 1) 0%, rgba(156, 159, 162, 1) 50%);
}
.team-profile#williams .team-profile-header {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/williams/top-background.jpg');
}
.team-profile#williams .team-gallery {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/williams/gallery-background.jpg');
}
.team-profile#williams .team-driver-profile {
    background: #0A2A58;
    background: linear-gradient(0deg,rgba(10, 42, 88, 1) 0%, rgba(24, 104, 219, 1) 50%);
}
.team-profile#audi .team-profile-header {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/audi/top-background.jpg');
}
.team-profile#audi .team-gallery {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/audi/gallery-background.jpg');
}
.team-profile#audi .team-driver-profile {
    background: #620216;
    background: linear-gradient(0deg,rgba(98, 2, 22, 1) 0%, rgba(245, 5, 55, 1) 50%);
}
.team-profile#cadillac .team-profile-header {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/cadillac/top-background.jpg');
}
.team-profile#cadillac .team-gallery {
    background-image: url('/wp-content/uploads/f1/pages/team-profiles/cadillac/gallery-background.jpg');
}
.team-profile#cadillac .team-driver-profile {
    background: #3A3A3A;
    background: linear-gradient(0deg,rgba(58, 58, 58, 1) 0%, rgba(144, 144, 144, 1) 50%);
}
.team-profile#cadillac .team-driver-profile .profile-image {
    min-width: 350px;
    min-height: 350px;
}
.team-profile#audi .team-gallery,
.team-profile#cadillac .team-gallery {
    display: none;
}
/* Header */
.team-profile .background-cover {
    background-color: #000;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    position: relative;
    text-align: center;
}
.team-profile .team-profile-header {
    padding: 200px 20px;
}
.team-profile .team-profile-header:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}
.team-profile .background-text {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}
.team-profile .team-profile-header h1 {
    font-size: 54px;
}
.team-profile .team-profile-header h2 {
    font-size: 32px;
}
/* Description */
.team-profile .team-profile-description {
    padding-top: 40px;
    padding-bottom: 40px;
}
.team-profile .team-profile-description h2,
.team-profile .team-driver-profiles h2 {
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
}
.team-profile .team-profile-description p {
    margin-bottom: 0px;
    padding-bottom: 20px;
    font-size: 16px;
    text-align: justify;
}
.team-profile .team-profile-description p .label {
    font-weight: 700;
}
/* Driver */
.team-profile .team-driver-profiles {
    padding-bottom: 20px;
}
.team-profile .team-driver-profile {
    padding-top: 10px;
    margin-bottom: 20px;
}
.team-profile .team-driver-profile .profile-image {
    max-width: 70%;
    max-height: 350px;
}
.team-profile .team-driver-profile .driver-details {
    max-width: 50%;
    position: absolute;
    top: 0px;
    right: 0px;
}
.team-profile .team-driver-profile .driver-details,
.team-profile .team-driver-profile .driver-details a,
.team-profile .team-driver-profile .driver-details a:hover {
    color: #fff;
}
.team-profile .team-driver-profile .driver-details .driver-detail {
    padding-right: 30px;
}
.team-profile .team-driver-profile .driver-details .driver-number {
    padding-top: 30px;
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: right;
}
.team-profile .team-driver-profile .driver-details .driver-name {
    line-height: 1;
    margin-bottom: 10px;
}
.team-profile .team-driver-profile .driver-details .driver-name .first-name {
    font-size: 28px;
    font-weight: 600;
}
.team-profile .team-driver-profile .driver-details .driver-name .last-name {
    font-size: 32px;
    font-weight: 700;
}
.team-profile .team-driver-profile .driver-details .driver-profile {
    font-size: 14px;
    text-align: right;
}
/* Gallery */
.team-profile .team-gallery {
    padding: 240px 20px;
}
.team-profile .team-gallery a,
.team-profile .team-gallery a:hover {
    color: #fff;
}
.team-profile .team-gallery h2 {
    font-size: 32px;
}
.team-profile .team-gallery p {
    color: #fff;
    font-size: 18px;
    font-weight: 300;
}
@media (min-width: 401px) {
    .team-profile .team-driver-profile .driver-details .driver-number {
        margin-bottom: 60px;
    }
}
@media (min-width: 768px) {
    .team-profile  .team-profile-description .team-description#about {
        padding-right: 60px;
    }
    .team-profile .team-driver-profile .driver-details .driver-profile {
        font-size: 16px;
    }
}
@media (min-width: 1200px) {
    .team-profile .team-driver-profile .driver-details .driver-name .first-name {
        font-size: 36px;
    }
    .team-profile .team-driver-profile .driver-details .driver-name .last-name {
        font-size: 46px;
    }
}
@media (min-width: 2000px) {
    .team-profile .team-profile-header,
    .team-profile .team-gallery {
        padding: 300px 20px;
    }
}
@media (max-width: 1000px) {
    .team-profile .container {
        max-width: initial !important;
    }
    /* Team specific */
    .team-profile#mclaren .team-profile-header {
        background-image: url('/wp-content/uploads/f1/pages/team-profiles/mclaren/top-background-mobile.jpg');
    }
    .team-profile#ferrari .team-profile-header {
        background-image: url('/wp-content/uploads/f1/pages/team-profiles/ferrari/top-background-mobile.jpg');
    }
    .team-profile#red-bull-racing .team-profile-header {
        background-image: url('/wp-content/uploads/f1/pages/team-profiles/red-bull-racing/top-background-mobile.jpg');
    }
    .team-profile#mercedes .team-profile-header {
        background-image: url('/wp-content/uploads/f1/pages/team-profiles/mercedes/top-background-mobile.jpg');
    }
    .team-profile#aston-martin .team-profile-header {
        background-image: url('/wp-content/uploads/f1/pages/team-profiles/aston-martin/top-background-mobile.jpg');
    }
    .team-profile#alpine .team-profile-header {
        background-image: url('/wp-content/uploads/f1/pages/team-profiles/alpine/top-background-mobile.jpg');
    }
    .team-profile#racing-bulls .team-profile-header {
        background-image: url('/wp-content/uploads/f1/pages/team-profiles/racing-bulls/top-background-mobile.jpg');
    }
    .team-profile#haas-f1-team .team-profile-header {
        background-image: url('/wp-content/uploads/f1/pages/team-profiles/haas-f1-team/top-background-mobile.jpg');
    }
    .team-profile#williams .team-profile-header {
        background-image: url('/wp-content/uploads/f1/pages/team-profiles/williams/top-background-mobile.jpg');
    }
    .team-profile#audi .team-profile-header {
        background-image: url('/wp-content/uploads/f1/pages/team-profiles/audi/top-background-mobile.jpg');
    }
    .team-profile#cadillac .team-profile-header {
        background-image: url('/wp-content/uploads/f1/pages/team-profiles/cadillac/top-background-mobile.jpg');
    }
}