
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.carousel {
    position: relative;
    margin-top: 82px;
    height: calc(100vh - 81px); /* Now it won't overflow */
    width: 100%;
}

.wrapper, .slide {
    overflow:relative;
    width: 100%;
    height: 100%;
}

.slide {
    overflow: hidden
}

.slide::before{
    content: "";
    position: absolute;
    height:100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index:1;
}

.slide .image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.image-data{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    z-index: 2;
}

.image-data span.text{
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

.image-data h2 {
    font-size: 45px;
    font-weight: 600;
    color: #fff;
}

a.button{
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    color: #333;
    background: #fff;
    text-decoration: none;
    margin-top: 25px;
    transition: all 0.3s ease;
}

a.button:hover {
    background: #7A0000;
    color: #fff;
    font-weight: bold;
}

.nav-btn{
    height: 50px !important;;
    width: 50px !important;;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3)
}
.nav-btn:hover{
    background: rgba(255, 255, 255, 0.4)
}

.swiper-button-next{

    right: 35px!important;;
}
.swiper-button-prev{
    left: 35px!important;;

}

.nav-btn::before,
.nav-btn::after {
    font-size: 20px !important; 
    font-weight: bold;
    color: #fff
}

.swiper-pagination-bullet{
    opacity: 1;
    height: 12px;
    width: 12px;
    background-color: #fff;
  
}

.swiper-pagination-bullet-active{
   border: 2px solid #fff;
  background-color: #7A0000 !important;
}

@media screen and (max-width: 768px) and (max-width: 1024px){

    .carousel {
        margin-top: 12px; /* removes the 82px top margin */

    }
    .nav-btn {
    visibility: hidden;
    }

  .swiper-pagination-bullet {
    visibility: visible;
  }

    .image-data h2 {
        font-size: 30px;
    }
    .image-data span.text {
        font-size: 12px;
    }
    a.button {
        padding: 8px 16px;
        font-size: 14px;
    }
}