body {
    transition:all .2s linear;
    -o-transition:all .2s linear;
    -moz-transition:all .2s linear;
    -webkit-transition:all .2s linear;
}

.touching .subDown {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid #72787d;
    border-right: 4px solid transparent;
    border-bottom: 0 dotted;
    border-left: 4px solid transparent;
    content: "";
    cursor: pointer;
}

.touching .subRight {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid #72787d;
    border-right: 4px solid transparent;
    border-bottom: 0 dotted;
    border-left: 4px solid transparent;
    content: "";
    cursor: pointer;
}

.slideMenu ul li {
    display: inline-block;
}

#MainMenu.touching .slideMenu ul li .sub-menu .sub-menu li {
    float: none;
}

#MainMenu.touching .slideMenu .sub-menu .sub-menu  {
    position: relative;
}

#MM_responsive_show, #MM_responsive_hide {
    display: none;
}

#content .bbp-topic-content img, #content .bbp-reply-content img, #content #bbpress-forums .bbp-topic-content img, #content #bbpress-forums .bbp-reply-content img  {
    height: auto;
}
.the-post-image img {
    max-width: 100%;
}
@media (max-width: 1200px) {
    .item-container, .messageBox, .pag-in-ation, .nextPageLinks p, .widget ul.item-list li, .styled-image, .styled-slideshow, .gallery .gallery-icon a, .widget_bp_core_recently_active_widget .avatar-block, .widget_bp_core_whos_online_widget .avatar-block, #content #message{
        max-width: 100%;
    }
    #page-left-sidebar_c1_col-1-4_1 #searchform #searchsubmit,
    #page-right-sidebar_c1_col-1-4_2 #searchform #searchsubmit {
        margin-left: 0;
        margin-top: 2px;
    }
    .imageSlide img {
        width: 100%;
    }
    #PageTop .slideShow div[id^='SS-'] > div {
    	max-width: 100%;
    }
    #PageTop .slideShowPager {
    	display: none; /* hide header slide show pager */
    }
    img {
        max-width: 100%;
        height: auto;
    }

}

@media (min-width: 980px) and (max-width: 1023px) {
    #Wrapper {
        min-width: 960px;
    }
    .pageWrapper {
        width: 90%;
    }
    #PageTop .slideShow,
    #PageTop .slideShowPager {
        width: 960px;
    }

    .gallery img {
        height: auto;
    }

}

@media (min-device-width : 769px) and (max-device-width : 1024px) {
    .slideMenu ul li a {
        opacity:1;
        display:block;
    }
}

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) {

    #Logo {
        margin-left: 15px;
    }

    #Wrapper {
        min-width: 760px;
    }
    .pageWrapper {
        width: 90%;
    }
    #PageTop .slideShow,
    #PageTop .slideShowPager{
        width: auto;
    }
    .gallery img {
        height: auto;
    }

}

/* Landscape phone to portrait tablet */
@media (max-width: 767px) {
    #Wrapper {
        min-width: 479px;
        max-width: 100%;
    }
    .pageWrapper,
    #PageTop .slideShow,
    #PageTop .slideShowPager{
        width: auto;
    }
    #Logo, #Logo img {
        float: none;
    }
    #Logo {
        text-align: center;
    }
    
    /* Menu */
    #MainMenu {
        float: none;
        text-align: center;
        margin-right: 0;
    }
    #MainMenu .slideMenu {
        margin: 0 auto;
        width: 95%;
    }
    #MM .sub-menu {
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    .slideMenu ul li {
        display: block;
        float: none;
    }
    .slideMenu ul li ul.sub-menu {
        position: relative;
    }
    .slideMenu ul li .sub-menu .sub-menu {
        position: relative;
    }
    #MM_responsive_show {
        display: inline-block;
        width: 95%;
    }
    
    #MM_responsive_hide {
        width: 95%;
    }

    #MM, #MM_responsive_hide {
        display: none;
    }
    /* Images */
    .gallery img {
        height: auto;
    }

    /* Full width content */
    .col-1-3,
    .col-1-2,
    .col-2-3,
    .col-1-4,
    .col-3-4,
    .col-1-5,
    .col-2-5,
    .col-3-5,
    .col-4-5 {
        float: left;
        margin-right: 0;
        margin-bottom: 1em;
        width: 100%;
        clear: left;
    }
    .cat-links a {
        margin-bottom: 5px;
        display: inline-block;
    }

    /* Price columns */
    .three-column-table .price-column,
    .four-column-table .price-column,
    .five-column-table .price-column,
    .six-column-table .price-column {
        width: 100%;
    }
    .three-column-table .price-column,
    .four-column-table .price-column,
    .five-column-table .price-column,
    .six-column-table .price-column,
    .price-table .highlight-column {
        margin: 0;
    }
}

/* Landscape phones and down */
@media (max-width: 480px) {

    #Wrapper {
        min-width: 349px;
    }
    .toggleItem .togTitle {
        line-height: inherit;
        padding: 5px 0;
    }
    /* portfolio */
    .portfolio-list li.portfolio-item { clear: left !important; margin: 0 !important; width: 100% !important; float: none !important; text-align: center; } /* go to 1 column portfolio list */
    li.portfolio-item .item-container {
        float: none !important;
    }
    .post-header-info .author {
        float: none;
        margin-bottom: 1em;
    }
    
    .post-header-info .published {
        float: left;
    }

    .post-header-info .comments-link {
        float: right;
    }
    .post-header-info .meta-sep {
        display: none;
    }
    .tabList.tabs li {
        width: 100%;
    }
    .bp-content-tabs li {
        width: 100%;
    }
}

@media (max-width: 350px) {

    #Wrapper {
        min-width: 320px;
    }
    .publicContactForm .textInput, .publicForm .textInput, .publicContactForm textarea, .publicForm textarea {
        width: 90%;
    }

    /* Buddypress activity */
    #content .activity-list .activity-replies,
    #content .activity-list .activity-replies ul li ul {
        margin: 0;
    }
}

@-webkit-viewport {width:device-width}
@-moz-viewport    {width:device-width}
@-ms-viewport     {width:device-width}
@-o-viewport      {width:device-width}
@viewport         {width:device-width}

/* Device specific visibility  */
	.hidden          { display: none; visibility: hidden; }
	.visible-phone   { display: none!important; }
	.visible-tablet  { display: none!important; }
	.hidden-desktop  { display: none!important; }
	.visible-desktop { display: inherit!important; }
@media (min-width: 768px) and (max-width: 979px) {
	.hidden-desktop  { display: inherit!important; }
	.visible-desktop { display: none!important; }
	.visible-tablet  { display: inherit!important; }
	.hidden-tablet   { display: none!important; }
}
@media (max-width: 767px) {
	.hidden-desktop  { display: inherit!important; }
	.visible-desktop { display: none!important; }
	.visible-phone   { display: inherit!important; }
	.hidden-phone    { display: none!important; }
	.centered-phone    { text-align: center!important; } /* custom */
}
.visible-print { display: none!important; }

@media print {
	.visible-print { display: inherit!important; }
	.hidden-print  { display: none!important; }
}

.contactShortcode{
    width: 600px;
}
@media (max-width: 480px){
    .contactShortcode{
        width: 200px;
    }
}