/* IPad Landscape and Small Desktop */
@media screen and (max-width: 1024px), screen and (max-device-width: 1024px), screen and (max-width: 1200px) {
    #wrapper.fluid {
        background: #FFF;
        max-width: 990px;
    }

    .container {
        max-width: 930px;
    }

    /* Hide the Clock */
    #clock {
        display: none
    }

    form.searchform input.search_input {
        width: 63%;
    }
}

/* IPad Potrait */
@media handheld and (max-width: 767px), screen and (max-device-width: 767px), screen and (max-width: 960px) {

    /* Slider */
    .flexslider:hover .flex-direction-nav a,
    .flex-direction-nav .flex-prev,
    .flex-direction-nav .flex-next {
        opacity: 1
    }

    .flex-caption p {
        display: none
    }

    /* Hide the current time */
    .current-time {
        display: none
    }

    /* Entry List ------------------ */
    .entry-list ul li h5,
    .entry-list ul li .meta {
        margin-left: 0;
    }

    .entry-list ul li .thumb {
        display: none
    }

    /* Review Box ------------------ */
    #review-box,
    #review-box.left,
    #review-box.right {
        margin: 0 0 20px 0;
        width: 100%;
    }

    /* Comments List ------------------ */
    ol.commentlist li {
        list-style: none;
        margin: 0 0 0 73px;
        padding: 0;
    }

    ol.commentlist li li {
        margin-left: 0
    }

    ol.commentlist li li .comment-reply-link {
        display: none
    }

    ol.commentlist li .comment-author img.avatar {
        width: 48px;
        height: 48px;
        margin-left: -88px
    }

    /* Widget Tweet ------------------ */
    .tweet ul {
        list-style: none;
        margin: 0;
        padding: 0;
        overflow: hidden
    }

    .tweet ul li:before {
        content: '';
    }

    /* Flickr & Dribbble Widget ------------------ */
    .flickr_photos ul,
    .dribbble_shots ul {
        width: 170px;
    }

    .flickr_photos ul li,
    .dribbble_shots ul li {
        width: 80px;
    }

    /* Widget Calendar ------------------ */
    .widget_calendar table th,
    .widget_calendar table td {
        padding: 0;
    }

    /* Ads Widget ------------------ */
    .fresh-ad a {
        background: none;
        padding: 0;
    }

    form.searchform input.search_input {
        width: 55%;
    }
}

/* IPhone Landscape */
@media screen and (max-width: 480px), screen and (max-device-width: 480px), screen and (max-width: 750px) {
    /* Layout */
    .container {
        max-width: 420px;
    }

    .container .one-half,
    .container .one-third,
    .container .two-third,
    .container .one-fourth,
    .container .three-fourth {
        width: 100%
    }

    #wrapper.fluid {
        background: #FFF;
        max-width: 420px;
    }

    #header-bar,
    #main-header,
    #primary-bar,
    #secondary-bar,
    #main-wrapper,
    #footer-widget-area,
    #footer-bottom {
        padding-left: 20px;
        padding-right: 20px;
    }

    #sidebar-left {
        width: 100%
    }

    #content {
        width: 100%
    }

    #sidebar-right {
        display: none;
    }

    /* Header Bar */
    /*
    #header-bar .container .one-third,
    #header-bar .container .two-third{
        width:48.4375%;
    }
    */
    #header-bar .container .one-third {
        width: 100%;
    }

    #header-bar .container .two-third {
        display: none;
    }

    #header-bar ul#top-menu {
        display: none;
    }

    #header-bar .top-menu-mobile {
        display: block;
    }

    /* Main Header */
    #logo {
        margin: 0;
    }

    #top-banner {
        display: none;
    }

    /* Primary Menu */
    #primary-bar {
        padding: 10px 20px;
    }

    #primary-menu {
        display: none;
    }

    .primary-menu-mobile {
        display: block;
    }

    /* News Ticker ------------------ */
    #secondary-bar {
        display: none;
    }

    /* Featured Slider ------------------ */
    #slider .flex-caption h2 {
        font-size: 18px;
        line-height: 24px;
    }

    #slider .flex-caption .cats a {
        font-size: 10px;
    }

    /* Entry */
    #content .post-box.one-half,
    #content .category-block.one-half {
        width: 48.4375%;
    }

    #content .post-box.one-third {
        width: 31.25%;
    }

    #content .post-box.one-third .entry-meta {
        display: none;
    }

    /* Entry List ------------------ */
    .entry-list ul li h5,
    .entry-list ul li .meta {
        margin-left: 60px;
    }

    .entry-list ul li .thumb {
        display: block
    }

    #content .category-block .entry-list ul li h5,
    #content .category-block .entry-list ul li .meta {
        margin-left: 0;
    }

    #content .category-block .entry-list ul .thumb {
        display: none;
    }

    /* Review Box ------------------ */
    #review-box,
    #review-box.left,
    #review-box.right {
        margin: 0 0 20px 0;
        width: 100%;
    }

    /* Comments Form ------------------ */
    #commentform p input[type="text"],
    #commentform p textarea {
        width: 95%;
    }

    /* Comments List ------------------ */
    ol.commentlist li {
        list-style: none;
        margin: 0 0 0 73px;
        padding: 0;
    }

    ol.commentlist li li {
        margin-left: 0
    }

    ol.commentlist li li .comment-reply-link {
        display: none
    }

    ol.commentlist li .comment-author img.avatar {
        width: 48px;
        height: 48px;
        margin-left: -88px
    }

    /* Flickr & Dribbble Widget ------------------ */
    .flickr_photos ul,
    .dribbble_shots ul {
        width: 385px;
    }

    .flickr_photos ul li,
    .dribbble_shots ul li {
        width: 72px;
    }

    /* Footer Bottom ------------------ */
    #footer-bottom .copyright,
    #footer-bottom .site-info {
        text-align: center;
    }

    .wp-caption {
        width: 100% !important;
    }

}

/*iPhone Portrait*/
@media screen and (max-width: 320px), screen and (max-device-width: 320px), screen and (max-width: 450px) {
    /* Layout */
    .container {
        max-width: 300px;
    }

    .container .one-half,
    .container .one-third,
    .container .two-third,
    .container .one-fourth,
    .container .three-fourth {
        width: 100%
    }

    #wrapper.fluid {
        background: #FFF;
        max-width: 300px;
    }

    #header-bar,
    #main-header,
    #primary-bar,
    #secondary-bar,
    #main-wrapper,
    #footer-widget-area,
    #footer-bottom {
        padding-left: 20px;
        padding-right: 20px;
    }

    #sidebar-left {
        width: 100%
    }

    #content {
        width: 100%
    }

    #sidebar-right {
        display: none;
    }

    /* Header Bar */
    /*
    #header-bar .container .one-third,
    #header-bar .container .two-third{
        width:48.4375%;
    }
    */
    #header-bar .container .one-third {
        width: 100%;
    }

    #header-bar .container .two-third {
        display: none;
    }

    #header-bar ul#top-menu {
        display: none;
    }

    #header-bar .top-menu-mobile {
        display: block;
    }

    /* Main Header */
    #logo {
        margin: 0;
    }

    #top-banner {
        display: none;
    }

    /* Primary Menu */
    #primary-bar {
        padding: 10px 20px;
    }

    #primary-menu {
        display: none;
    }

    .primary-menu-mobile {
        display: block;
    }

    /* News Ticker ------------------ */
    #secondary-bar {
        display: none;
    }

    /* Featured Slider ------------------ */
    #slider .flex-caption {
        display: none;
    }

    /* Entry */
    #content .post-box.one-half,
    #content .category-block.one-half {
        width: 100%
    }

    #content .post-box.one-third {
        width: 100%
    }

    #content .post-box.one-third .entry-meta {
        display: none;
    }

    #content .post-box.one-half .entry,
    #content .category-block.one-half .entry,
    #content .post-box.one-third .entry {
        margin-bottom: 20px;
    }

    #content .post-box.one-half.last .entry,
    #content .category-block.one-half.last .entry,
    #content .post-box.one-third.last .entry {
        margin-bottom: 0;
    }

    /* Entry List ------------------ */
    .entry-list ul li h5,
    .entry-list ul li .meta,
    #content .category-block .entry-list ul li h5,
    #content .category-block .entry-list ul li .meta {
        margin-left: 60px;
    }

    .entry-list ul li .thumb,
    #content .category-block .entry-list ul .thumb {
        display: block;
    }

    /* Review Box ------------------ */
    #review-box,
    #review-box.left,
    #review-box.right {
        margin: 0 0 20px 0;
        width: 100%;
    }

    /* Comments Form ------------------ */
    #commentform p input[type="text"],
    #commentform p textarea {
        width: 93%;
    }

    /* Comments List ------------------ */
    ol.commentlist li {
        list-style: none;
        margin: 0 0 0 73px;
        padding: 0;
    }

    ol.commentlist li li {
        margin-left: 0
    }

    ol.commentlist li li .comment-reply-link {
        display: none
    }

    ol.commentlist li .comment-author img.avatar {
        width: 48px;
        height: 48px;
        margin-left: -88px
    }

    /* Flickr & Dribbble Widget ------------------ */
    .flickr_photos ul,
    .dribbble_shots ul {
        width: 265px;
    }

    .flickr_photos ul li,
    .dribbble_shots ul li {
        width: 48px;
    }

    /* Footer Bottom ------------------ */
    #footer-bottom .copyright,
    #footer-bottom .site-info {
        text-align: center;
    }

    #searchsubmit {
        display: none
    }

    form.searchform input.search_input {
        width: 40%
    }

    .wp-caption {
        width: 100% !important;
    }
}
