.main-content{
    padding-top: 5px;
}
/* Slider */
#carousel .carousel-inner {
    height: 100%;
    padding-top: 5rem;
}


#carousel .carousel-item,
#carousel .carousel-item img {
    max-height: 90vh;
    height: fit-content;
}

#carousel .carousel-caption p {
    text-align: justify;
}

#carousel .carousel-item {
    background-position: center;
    background-size: cover;
    position: relative;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

#carousel .carousel-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}



#carousel .carousel-controls {
    position: absolute;
    left: 50%;
    bottom: 40px;
    z-index: 10;
    transform: translateX(-50%);
}

#carousel .carousel-indicators {
    position: relative;
    margin: 0;
}

#carousel .carousel-indicators button {
    height: 70px;
    width: 70px;
    margin: 0 5px;
    border-radius: 50%;
    background-position: center;
    background-size: cover;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

#carousel .carousel-indicators button.active {
    border-color: #000;
    transform: scale(1.1);
}

#carousel .carousel-control-next,
#carousel .carousel-control-prev {
    height: 55px;
    width: 55px;
    opacity: 1;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

#carousel .carousel-control-next:hover,
#carousel .carousel-control-prev:hover {
    box-shadow: 0 0 10px #333;
}

#carousel .carousel-control-next img,
#carousel .carousel-control-prev img {
    width: 45px;
}

#carousel .carousel-control-next {
    right: -70px;
}

#carousel .carousel-control-prev {
    left: -70px;
}

/* service section */
.service-section h1 {
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    padding: 2rem 0;
}

.service-card {
    height: 530px;
    margin: 20px 5px;
    background: #efefef;
}

.service-card img {
    height: 250px;
}

.service-card h5,
.service-card p {
    padding: 10px;
    margin-bottom: 0px;
}

.service-card:hover {
    background: #fff;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(38, 38, 38, 0.2);
    transform: translateY(-5px);
    transition: all 0.5s ease-out;
}

/* About Section */
.about-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f5f5f5;
    width: 100%;
}

.about-section h1 {
    font-weight: bold;
    text-transform: uppercase;
}

.about-section p {
    text-align: justify;
}

.about-section img {
    width: 100%;
}

.why-section h1 {
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Gallery section */
.gallery-section {
    margin: 4rem auto;
}

.gallery-section img {
    padding: .5rem;
    padding-bottom: 1.5rem;
    width: 100%;
    height: 100%;
}

.gallery-section img {
    height: 100%;
    width: 100%;
    min-height: 245px;
    max-height: 400px;
    padding: 10px 0px;
    transition: 1s;
    vertical-align: middle;
}

.gallery-section .gallery .image:hover {
    filter: drop-shadow(4px 4px 6px gray);
    transform: scale(1.05);
    cursor: pointer;
    transition: 1s;
}

.gallery .image span {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.preview-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    color: #333;
    max-width: 700px;
    max-height: 450px;
    width: 100%;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    border-radius: 3px;
    padding: 0 5px 5px 5px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}

.preview-box.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.3s ease;
}

.preview-box .details {
    display: flex;
    align-items: center;
    padding: 12px 15px 12px 10px;
    justify-content: space-between;
}

.preview-box .details .title {
    display: flex;
    font-size: 18px;
    font-weight: 400;
}

.details .title p {
    margin: 0 5px;
}

.details .title p.current-img {
    font-weight: 500;
}

.details .icon {
    color: #333;
    font-size: 20px;
    cursor: pointer;
}

.preview-box .image-box {
    display: flex;
    width: 100%;
    position: relative;
}

.image-box .slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    height: 50px;
    width: 60px;
    line-height: 50px;
    text-align: center;
    border-radius: 3px;
}

.slide.prev {
    left: 0px;
}

.slide.next {
    right: 0px;
}

.image-box img {
    width: 100%;
    border-radius: 0 0 3px 3px;
}

.shadow {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
    display: none;
    background: rgba(0, 0, 0, 0.45);
}


/* Media Query */

@media only screen and (max-width: 991px) {

    .gallery-section img {
        padding: 0rem;
        padding-bottom: 1rem;
    }

}

@media only screen and (max-width: 767px) {

    #carousel .carousel-control-next,
    #carousel .carousel-control-prev {
        display: none;
    }

    #carousel .carousel-indicators button {
        height: 25px;
        width: 25px;
    }

    #carousel .carousel-item,
    #carousel .carousel-item img {
        max-height: 44vh;
        height: fit-content;
    }

}

@media(max-width: 600px) {
    .gallery .image {
        width: 100%;
        padding: 4px;
    }
}

@media(max-height: 768px) {
    .gallery-section img {
        max-height: 400px;
    }
}