/* Extra small devices (phones, up to 599px) */
@media only screen and (max-width: 599px) {
    .nav-bar-main .navbar-brand {
        background-image: url(../img/rgb-logo-xs.jpg);
        height: 20px;
        width: 150px;
    }

    .enquiry-icon {
        display: none;
    }

    .carousel,
    .carousel-inner,
    .carousel-inner .carousel-item,
    .carousel-item img {
        width: 100%;
        height: 300px;
    }

    .nav-top-list .col-sm-4 {
        width: 50%;
    }

    .navbar {
        width: 92%;
    }

    .width-allocation {
        width: 100%;
    }

    .caption {
        opacity: 1;
    }
}

/* Small devices (600px to 767px) */
@media only screen and (min-width: 600px) and (max-width: 767px) {
    .nav-bar-main .navbar-brand {
        background-image: url(../img/rgb-logo-xs.jpg);
        height: 20px;
        width: 150px;
    }

    .enquiry-icon {
        display: none;
    }

    .carousel,
    .carousel-inner,
    .carousel-inner .carousel-item,
    .carousel-item img {
        width: 84%;
        height: 470px;
    }

    .nav-top-list .col-sm-4 {
        width: 46%;
    }

    .navbar {
        width: 92%;
    }

    #carouselControls {
        width: 100%;
    }

    .project-images {
        height: 180px;
    }

    .caption {
        opacity: 1;
    }
}

/* Medium devices (768px to 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .nav-bar-main .navbar-brand {
        background-image: url(../img/rgb-logo-xs.jpg);
        height: 20px;
        width: 150px;
    }

    .carousel,
    .carousel-inner,
    .carousel-inner .carousel-item,
    .carousel-item img {
        width: 100%;
        height: 511px;
    }

    .enquiry-icon {
        display: none;
    }

    .nav-top-list .col-sm-4 {
        width: 46%;
    }

    .navbar {
        width: 83%;
    }
}

/* Large devices (992px to 1199px) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .nav-item {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .carousel,
    .carousel-inner,
    .carousel-inner .carousel-item,
    .carousel-item img {
        width: 100%;
        height: 600px;
    }

    .enquiry-icon {
        display: unset;
    }

    .nav-top-list .col-sm-4 {
        width: 46%;
    }

    .navbar {
        width: 92%;
    }
}

/* Extra large devices (1200px and above) */
@media only screen and (min-width: 1200px) {
    .nav-item {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 0;
        padding-bottom: 0;
    }

    .carousel,
    .carousel-inner,
    .carousel-inner .carousel-item,
    .carousel-item img {
        width: 100%;
        height: 700px;
    }

    .container {
        max-width: 1160px;
    }

    .enquiry-icon {
        display: unset;
    }

    .navbar {
        width: 89%;
    }

    .nav-top-list .col-sm-4 {
        width: 33.3333%;
    }
}

/* iPad Mini (768px width, portrait) */
@media only screen and (width: 768px) {
    .carousel, .carousel-inner, .carousel-inner .carousel-item, .carousel-item img {
        height: 511px; /* Medium device height */
    }
    .navbar { width: 89%; }
     #projects .col-lg-3 {
        width: 50%;
    }
}

/* iPad Air (820px width, portrait) */
@media only screen and (width: 820px) {
    .carousel, .carousel-inner, .carousel-inner .carousel-item, .carousel-item img {
        height: 530px;
    }
    .navbar { width: 85%; }
     #projects .col-lg-3 {
        width: 50%;
    }
}

/* Asus Zenbook Bold (853px width) */
@media only screen and (width: 853px) {

    .carousel,
    .carousel-inner,
    .carousel-inner .carousel-item,
    .carousel-item img {
        height: 540px;
    }

    .navbar {
        width: 84%;
    }

    #projects .col-lg-3 {
        width: 50%;
    }
}

/* Surface Pro 7 (912px width) */
@media only screen and (width: 912px) {
    .carousel, .carousel-inner, .carousel-inner .carousel-item, .carousel-item img {
        height: 560px;
    }
    .navbar { width: 76%; }
     #projects .col-lg-3 {
        width: 50%;
    }
}