@media screen and (max-width:1000px) {
    .chassis { height: 38px!important; line-height: 16px!important; }
    .chassis.chassi12,
    .chassis.chassi17 { line-height: 38px!important; }
    .chassis span { display: block; font-size: 11px; }

    /* Object price info */
    .line.priceinfo .colspan1,
    .line.priceinfo .colspan2 { width: auto; }

    /* Advanced search */
    input.span4, textarea.span4 { width: 97%; }
}

@media screen and (max-width:800px) {
    /* Profiled ads */
    .ad-gallery  .size1of3 { width: 49.8%; float: left; }
    .ad-gallery .img { width: auto; }
    .ad-gallery.horizontal { max-height: 160px; overflow: hidden; }
}

@media screen and (max-width:640px) {
    /* Rewrite equipment markup to use .line.vertical */
    #equipment .unit { float: none; }
    #equipment .colspan2 { width: 100% }

    /* Rewrite ad information to use grid with lines  */
    .object .objectinfo dl.multicol {margin: 0 0 0 0; float: none !important;}
    .object .objectinfo dl.multicol.mlm {margin-left: 0 !important;}
    .object .objectinfo dl.multicol.colspan2 {width: auto;}

    /* Chassis drilldown on browse */
    .chassi-search-drilldown .size1of3 { width: 50%; }

    /* Vertical image on browse */
    .media.frontpage-search .img { display: none; }

    /* Profiled ads */
    .ad-gallery  .size1of3 { width: 100%; float: left; }

    .oppdrag .size1of3 { float: left; width: 33%; }
}

@media screen and (max-width:460px) {
    .chassi-search-drilldown .size1of3 { width: 100%; }

    /* Car make drilldown */
    .drilldown-cols-3 ul.bd {margin-top: 0 !important; margin-bottom: 0 !important;}
    .drilldown-cols-3 .unit .mod {margin-top: 0 !important;}
    .drilldown-cols-3 .unit:not(.lastUnit) .mod {margin-bottom: 0 !important;}

    /* Advanced search + search boxes */
    input.span4, textarea.span4,
    input.span5, textarea.span5 { width: 97%; }
}

/* iPad */
@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) {
    /* Object price info */
    .line.priceinfo .colspan1,
    .line.priceinfo .colspan2 { width: auto; }

    /* Advanced search */
    input.span4, textarea.span4 { width: 97%; }
}