/**
 * Villa de Tezontepec - Utilidades responsive globales
 */

body {
    overflow-x: clip !important;
}

body .entry-content img,
body .geodir-entry-content img,
body .geodir-tabs-content img,
body .geodir-post-content img,
body .vdt-content-list img,
body .vdt-single-main img,
body .vdt-page-main img,
body .widget img,
body .vdt-footer img {
    max-width: 100% !important;
    height: auto !important;
}

body video,
body iframe,
body embed,
body object {
    max-width: 100% !important;
}

body .entry-content,
body .geodir-entry-content,
body .geodir-tabs-content,
body .geodir-post-content {
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
}

body .entry-content table,
body .geodir-entry-content table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

body .entry-content pre,
body .geodir-entry-content pre {
    overflow-x: auto !important;
    max-width: 100% !important;
}

body .entry-content .wp-block-embed,
body .entry-content .wp-block-image,
body .entry-content figure {
    max-width: 100% !important;
}

body input[type="text"],
body input[type="search"],
body input[type="email"],
body input[type="url"],
body input[type="tel"],
body input[type="password"],
body select,
body textarea {
    max-width: 100% !important;
}

body .vdt-search-form-wrapper--inline {
    max-width: 640px !important;
    margin: var(--vdt-space-xl) auto 0 !important;
    text-align: left !important;
}

body .vdt-search-inline-form {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--vdt-space-md) !important;
    padding: 1.15rem !important;
    background: var(--vdt-bg-secondary) !important;
    border: 1px solid var(--vdt-border) !important;
    border-radius: var(--vdt-radius-xl) !important;
}

body .vdt-search-inline-scope {
    grid-template-columns: 1fr !important;
}

@media (min-width: 640px) {
    body .vdt-search-inline-scope {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body .vdt-header-bar__start {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body .vdt-site-branding {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    body .vdt-home-sidebar,
    body .vdt-archive-sidebar,
    body .vdt-search-sidebar,
    body .vdt-single-sidebar,
    body .vdt-page-sidebar {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        flex: 0 0 220px !important;
    }
}

@media (max-width: 991px) {
    body .vdt-home-content-wrapper,
    body .vdt-archive-content-wrapper,
    body .vdt-search-content-wrapper,
    body .vdt-single-content-wrapper,
    body .vdt-page-content-wrapper {
        flex-direction: column !important;
    }

    body .vdt-home-sidebar,
    body .vdt-archive-sidebar,
    body .vdt-search-sidebar,
    body .vdt-single-sidebar,
    body .vdt-page-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        margin-top: var(--vdt-space-xl) !important;
    }
}

@media (min-width: 992px) {
    body .vdt-home-content-wrapper,
    body .vdt-archive-content-wrapper,
    body .vdt-search-content-wrapper,
    body .vdt-single-content-wrapper,
    body .vdt-page-content-wrapper {
        flex-direction: row !important;
    }
}
