@media (max-width:580px) {

    .wrapper {
        top: 0;
    }

    .head-wrapp .wrapper h1 {
        display: none;
    }

    .custom-nav {
        display: block;
    }

    .wrapper h1 {
        top: 480px;
    }

    .custom-nav::after {
        width: auto;
    }

    .calendar {
        height: auto;
        margin-top: 0;
    }

        .calendar .col-md-4 {
            margin-left: auto;
        }



    .swiper-desc {
        display: none;
    }



    .onefooter {
        flex-direction: column;
        grid-gap: 30px;
    }

        .onefooter .col-md-2 {
            flex-direction: row;
            align-items: center;
            justify-content: center;
            column-gap: 60px;
        }

    .thirdfooter .col-md-9 {
        justify-content: center;
        column-gap: 40px;
        flex-wrap: wrap;
    }

    .nav-tab-list {
        margin-top: 0;
    }

    .tab-text img {
        width: 100%;
    }

    .news-detail .news-detail-title {
        padding-top: 32px;
    }

    .news-detail .news-detail-desc span img {
        width: 34px;
        height: 90px;
    }

    .news-detail-icon {
        margin-bottom: 100px;
    }

    .contact {
        text-align: center;
    }

    .contact-follow-icon {
        margin-top: 0px;
        padding-bottom: 70px;
    }

    .contact .row .col-md-4 {
        padding-bottom: 18px;
    }

    .contact-form form {
        margin-left: 0;
    }

    .nav-tab-list .nav-pills {
        column-gap: 30px;
    }
}

@media (max-width:760px) {

  /*  .view-content, .close-btn {
        margin-top: -100px;
    }*/

    .tab-race-list {
        margin-bottom: 80px;
    }

    .affiliates {
        text-align: center;
    }

    .news .row {
        padding-bottom: 40px;
    }

    .tab-gallery .gallery-list {
        row-gap: 30px;
        padding-bottom: 50px;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        column-gap: 0;
    }

/*    .nav-tab-list .nav-pills {
         height: 154px;
        padding: 64px 0;
    }*/

/*    .gallery-swiper .swiper-wrapper {
        padding-left: 32%;
        padding-top: 60px;
    }*/

    .affiliates-img {
        justify-content: space-around;
    }


    .gallery .header-news-ticket {
        padding: 6px 15px;
        margin-left: 15px;
    }


   /* .swiper-pagination-fraction {
        width: 45px !important;
        height: 45px !important;
        bottom: 10px !important;
    }*/

    .swiper-desc {
        display: none;
    }

    .tab-cars-list {
        flex-wrap: wrap !important;
    }

    .tab-driver-list {
        flex-wrap: wrap !important;
    }

    .wrapper .contact-img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

    .calendar {
        height: auto;
    }

        .calendar .col-md-4 {
            margin-left: 0;
        }

    .header-date-link {
        padding-bottom: 20px;
    }

    .navbar-nav .lang {
        padding-left: 0;
    }

    .header-news-ticket {
        font-size: 10px;
        padding: 2px 10px;
    }

    .news .row {
        grid-gap: 40px;
    }

    .tab-text img {
        width: 100%;
    }

    .tab-share-icon {
        margin-bottom: 48px;
    }

    .content h1 {
        padding-top: 12px;
    }

    .content p {
        padding: 0px 0 16px;
    }

    .swiper-pagination-fraction{
        display: none;
    }

}


@media(max-width:500px){
    .gallery-swiper .swiper-wrapper {
       margin:10px;

    }

    .e-team-title {
        padding: 108px 0 56px;
    }
}

@media(max-width:581px){

}


@media (max-width:1250px) and (min-width:771px) {
    .tab-text img {
        width: 100%;
    }

    .navbar-nav {
        column-gap: 15px;
        margin-left: 15px;
    }
}

@media(max-width: 1398px) {
    .navbar-nav .lang {
        padding-left: 12px;
    }

    .navbar-nav {
        column-gap: 14px;
        margin-left: 0px;
    }

    .card img {
        height: 232px;
    }
}

@media(max-width:1198px) {
    .navbar {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .custom-nav {
        margin: 0px;
        display: flex;
        justify-content: space-between;
        margin-inline: 1.5rem;
        width: 100%;
        margin-inline: 1rem;
        padding: 14px 0 14px;
    }

    .navbar-collapse {
        position: absolute;
        /*        display: flex !important;*/
        flex-direction: row !important;
        justify-content: center;
        top: 100%;
        /*        width: 100%;*/
        right: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 999;
    }

    .custom-nav::after {
        display: none;
    }

    .nav-item {
        padding-bottom: 1rem;
    }

    .navbar-nav .dropdown-menu {
        background-color: #ffff;
        text-align: center !important;
        border: none;
        color: white !important;
     }
    .navbar-toggler-icon {
        background-color: white;
    }
}

@media(max-width:580px){
    .navbar {
        background-color: rgba(0, 0, 0, 1);
    }
}


@media(max-width:768px){
    .onefooter {
        align-items: start;
        margin-left: 0px;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .thirdfooter .col-lg-9 {
        flex-direction: column;
        margin-top: 1rem;
        align-items: flex-start;
    }
}

@media(max-width:1199px){
    .swiper-slide .nav-item {
        padding-left: 36px;
        padding-right: 36px;
    }
}

@media(max-width:768px){
    .onefooter{
        display:grid;
        grid-template-columns:(2fr);
        row-gap:1.5rem;
    }
    
}
@media(max-width:992px){
    .links{
        justify-content: start !important;
    }
    .more-button {
        padding: 8px 22px;
    }
}
@media(max-width:1199px) {
    .calendar {
        height: auto;
        padding-bottom: 2rem;
    }

    .race-desc{
        height: 324px!important;
        padding: 24px;
    }
}



