/* Responsive fixes: overflow, isotope grid, overlapping components */

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.container,
.container-fluid {
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    div#owl-full-page {
        max-height: 280px;
        height: 280px !important;
        overflow: hidden;
    }

    #owl-full-page.owl-height,
    #owl-full-page .owl-stage-outer,
    #owl-full-page .owl-stage,
    #owl-full-page .owl-item,
    #owl-full-page .owl-item .item {
        height: 280px !important;
        max-height: 280px !important;
        --carousel-h: 280px;
    }

    #owl-full-page .owl-item .item {
        overflow: hidden;
    }

    #owl-full-page .owl-item .item img {
        width: 100%;
        height: 100% !important;
        max-height: 280px !important;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .isotope-item {
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .isotope-item .imagen:before,
    .isotope-item:hover .imagen:before {
        width: 100%;
        margin-left: 0;
    }

    .isotope-item__texto {
        left: 50%;
        width: 90%;
        text-align: center;
    }

    .contact-project-hr {
        width: 100%;
        margin-left: 0;
    }

    .isotope_filter .nav.navbar-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .isotope_filter .nav.navbar-nav > li {
        float: none;
    }

    .isotope_filter .nav.navbar-nav > li > a {
        white-space: normal;
        text-align: center;
        padding: 8px 12px;
    }

    #owl_proyectos .owl-nav {
        display: none;
    }
}

.isotope-filter-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
}

.isotope-filter-links li {
    float: none;
}

.isotope-filter-links li a {
    display: inline-block;
    white-space: normal;
    text-align: center;
}

.menu__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

@media screen and (min-width: 769px) and (max-width: 991px) {
    div#owl-full-page {
        max-height: 420px;
        height: 420px !important;
        overflow: hidden;
    }

    #owl-full-page.owl-height,
    #owl-full-page .owl-stage-outer,
    #owl-full-page .owl-stage,
    #owl-full-page .owl-item,
    #owl-full-page .owl-item .item {
        height: 420px !important;
        max-height: 420px !important;
        --carousel-h: 420px;
    }

    #owl-full-page .owl-item .item {
        overflow: hidden;
    }

    #owl-full-page .owl-item .item img {
        width: 100%;
        height: 100% !important;
        max-height: 420px !important;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .isotope-item {
        width: 50% !important;
    }
}
