body.vdtat-layout { height:auto!important; min-height:100vh; }
body.vdtat-layout #content { flex:1 0 auto!important; }
body.vdtat-layout #footer { flex:0 0 auto!important; }
/* VDTAT layout v3: dedicated overrides, loaded after theme styles. */
body.vdtat-layout #content { position:relative!important; height:auto!important; max-height:none!important; overflow:visible!important; }
body.vdtat-layout #content > .content-wrap { height:auto!important; max-height:none!important; overflow:visible!important; padding-bottom:30px!important; }
body.vdtat-layout #side-navigation { display:flow-root; height:auto!important; max-height:none!important; }
body.vdtat-layout #snav-content1, body.vdtat-layout #posts { position:relative!important; height:auto!important; max-height:none!important; }
body.vdtat-layout #posts { display:flow-root; }
body.vdtat-layout #search2 { position:relative!important; float:none!important; clear:both!important; height:auto!important; max-height:650px!important; overflow:auto!important; margin-bottom:24px!important; }
body.vdtat-layout #footer { position:static!important; float:none!important; clear:both!important; width:100%!important; height:auto!important; margin:0!important; transform:none!important; }
body.vdtat-layout #copyrights { position:static!important; }
@media(max-width:991px) {
 body.vdtat-layout #header, body.vdtat-layout #header-wrap { position:relative!important; height:auto!important; min-height:0!important; }
 body.vdtat-layout #header-wrap > .container { display:flex!important; align-items:center; flex-wrap:wrap; gap:10px; width:100%!important; max-width:960px!important; padding:12px 16px!important; box-sizing:border-box; }
 body.vdtat-layout #logo { order:0; float:none!important; width:calc(100% - 140px)!important; height:auto!important; margin:0!important; }
 body.vdtat-layout #logo a.standard-logo { display:block!important; height:auto!important; }
 body.vdtat-layout #logo img { display:block!important; position:static!important; width:auto!important; max-width:100%!important; height:auto!important; max-height:100px!important; zoom:1!important; }
 body.vdtat-layout #logo .retina-logo { display:none!important; }
 body.vdtat-layout #primary-menu-trigger, body.vdtat-layout #page-submenu-trigger { display:flex!important; align-items:center; justify-content:center; position:static!important; opacity:1!important; pointer-events:auto!important; width:48px!important; height:44px!important; margin:0!important; padding:0!important; color:#333!important; background:#ddf1f7!important; z-index:5; cursor:pointer; }
 body.vdtat-layout #primary-menu-trigger { order:1; }
 body.vdtat-layout #page-submenu-trigger { order:2; }
 body.vdtat-layout:not(:has(#side-navigation)) #page-submenu-trigger { display:none!important; }
 body.vdtat-layout #primary-search { order:3; position:static!important; width:250px!important; max-width:100%!important; margin:0 0 0 auto!important; }
 body.vdtat-layout #primary-menu { order:4; position:static!important; width:100%!important; float:none!important; margin:0!important; }
 body.vdtat-layout #primary-menu > ul { display:none!important; position:static!important; width:100%!important; height:auto!important; max-height:none!important; background:#4c4c4c; }
 body.vdtat-layout.vdtat-top-open #primary-menu > ul { display:block!important; }
 body.vdtat-layout #primary-menu > ul > li { display:block!important; float:none!important; width:100%!important; }
 body.vdtat-layout #primary-menu > ul > li > a { color:white!important; padding:14px!important; line-height:1.4!important; }
 body.vdtat-layout #side-navigation > .col_one_fourth, body.vdtat-layout #side-navigation > .col_three_fourth { float:none!important; position:relative!important; width:100%!important; max-width:100%!important; margin:0!important; min-width:0!important; }
 body.vdtat-layout #side-navigation > .col_one_fourth { display:none!important; }
 body.vdtat-layout.vdtat-side-open #side-navigation > .col_one_fourth { display:block!important; margin-bottom:20px!important; }
 body.vdtat-layout.vdtat-side-open #side-navigation ul.sidenav { display:block!important; }
 body.vdtat-layout #snav-content1 { width:100%!important; margin:0!important; padding:0!important; left:auto!important; overflow:visible!important; box-sizing:border-box; }
 body.vdtat-layout #content > .content-wrap > .container { width:100%!important; padding:20px 16px!important; box-sizing:border-box; }
 body.vdtat-layout #search1 { display:block!important; float:none!important; width:100%!important; box-sizing:border-box; }
 body.vdtat-layout #search1 tbody { display:block; width:100%; }
 body.vdtat-layout #search1 tr { display:flex; flex-wrap:wrap; gap:6px; width:100%; }
 body.vdtat-layout #search1 td { display:block; width:100%!important; height:auto!important; box-sizing:border-box; padding:3px 0; }
 body.vdtat-layout #search1 tr:last-child { align-items:center; justify-content:space-between; }
 body.vdtat-layout #search1 tr:last-child td:first-child { display:none; }
 body.vdtat-layout #search1 tr:last-child td { width:auto!important; max-width:100%; }
 body.vdtat-layout #search1 input:not([type=image]):not([type=hidden]), body.vdtat-layout #search1 textarea, body.vdtat-layout #search1 select { width:100%!important; max-width:100%!important; min-width:0!important; box-sizing:border-box; }
 body.vdtat-layout #search1 input[type=image] { max-width:100%; width:auto; height:auto; margin:4px 0; }
 body.vdtat-layout #search1 td[align=right] { display:flex; flex-wrap:wrap; gap:5px; justify-content:flex-end; }
 body.vdtat-layout .search { width:100%!important; }
 body.vdtat-layout #search2 { max-width:100%; }
 body.vdtat-layout #search2 table { width:100%!important; table-layout:fixed; }
 body.vdtat-layout #search2 td { overflow-wrap:anywhere; word-break:normal; }
}

/* VDTAT v3.1: form wrapper height and header grid */
body.vdtat-layout #search_div_1, body.vdtat-layout .search1 {
 height:auto!important; min-height:0!important; max-height:none!important;
 width:100%!important; overflow:visible!important;
 display:flow-root; position:relative!important;
}
body.vdtat-layout form[name="example"] { height:auto!important; display:flow-root; }
body.vdtat-layout .search_search { clear:both!important; position:relative!important; }
@media(max-width:991px) {
 body.vdtat-layout #header-wrap > .container {
  display:grid!important; grid-template-columns:minmax(0,1fr) 48px 48px;
  grid-template-areas:"logo top side" "search search search" "menu menu menu";
  align-items:center; gap:8px; height:auto!important; min-height:0!important;
 }
 body.vdtat-layout #header-wrap > .container::before,
 body.vdtat-layout #header-wrap > .container::after { display:none!important; }
 body.vdtat-layout #logo { grid-area:logo; width:100%!important; min-width:0; }
 body.vdtat-layout #primary-menu-trigger { grid-area:top; }
 body.vdtat-layout #page-submenu-trigger { grid-area:side; }
 body.vdtat-layout #primary-search { grid-area:search; justify-self:end; float:none!important; inset:auto!important; transform:none!important; height:auto!important; }
 body.vdtat-layout #primary-search form { position:relative!important; inset:auto!important; margin:0!important; }
 body.vdtat-layout #primary-menu { grid-area:menu; display:none!important; inset:auto!important; height:auto!important; min-height:0!important; transform:none!important; }
 body.vdtat-layout.vdtat-top-open #primary-menu { display:block!important; }
 body.vdtat-layout #primary-menu > ul,
 body.vdtat-layout #primary-menu > ul.show {
  float:none!important; display:none!important; position:static!important;
  inset:auto!important; width:100%!important; max-width:none!important;
  height:auto!important; min-height:0!important; max-height:none!important;
  margin:0!important; padding:0!important; overflow:visible!important;
 }
 body.vdtat-layout.vdtat-top-open #primary-menu > ul { display:block!important; }
 body.vdtat-layout #primary-menu > ul > li { position:relative!important; float:none!important; margin:0!important; width:100%!important; }
 body.vdtat-layout #primary-menu > ul > li > a { display:block!important; height:auto!important; padding:14px!important; line-height:1.5!important; }
 body.vdtat-layout #search1 { height:auto!important; max-height:none!important; overflow:visible!important; }
}
@media(min-width:768px) and (max-width:991px) {
 body.vdtat-layout #header-wrap > .container {
  grid-template-columns:minmax(0,1fr) 48px 48px 170px;
  grid-template-areas:"logo top side search" "menu menu menu menu";
 }
 body.vdtat-layout #primary-search { width:170px!important; }
}

/* Virsutine paieska vienoje eileje visuose mobiliuose dydziuose. */
@media (max-width: 991px) {
    body.vdtat-layout #header-wrap > .container {
        grid-template-columns: minmax(0, 1fr) 40px 40px clamp(90px, 25vw, 170px) !important;
        grid-template-areas:
            "logo top side search"
            "menu menu menu menu" !important;
        column-gap: 6px !important;
    }

    body.vdtat-layout #primary-menu-trigger,
    body.vdtat-layout #page-submenu-trigger {
        width: 40px !important;
    }

    body.vdtat-layout #primary-search {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        align-self: center !important;
    }

    body.vdtat-layout #primary-search .input-group {
        width: 100% !important;
    }

    body.vdtat-layout #primary-search input {
        min-width: 0 !important;
    }
}

/* VDTAT: full-height wrapper */
body.vdtat-layout > #wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
}

body.vdtat-layout > #wrapper::before,
body.vdtat-layout > #wrapper::after {
    display: none !important;
}

body.vdtat-layout > #wrapper > #header {
    flex: 0 0 auto !important;
}

body.vdtat-layout > #wrapper > #content {
    flex: 1 0 auto !important;
    width: 100%;
}

body.vdtat-layout > #wrapper > #footer {
    flex: 0 0 auto !important;
    position: static !important;
    margin-top: auto !important;
}
