/*
 * responsive.custom.css is for custom media queries that are not set via the
 * theme settings, such as cascading media queries.
 *
 * By default all the other responsive stylesheets used in Adaptivetheme use a
 * "stacking method", however cascading media queries use a waterfall method so
 * you can leverage the cascade and inheritance for all browsers that support
 * media queries.
 *
 * @SEE http://zomigi.com/blog/essential-considerations-for-crafting-quality-media-queries/#mq-overlap-stack
 *
 * NOTE: this file loads by default, to disable go to your theme settings and
 * look under the "CSS" settings tab.
 */

/*
 * Really small screens and up
 */
/* @media only screen and (min-width: 220px) {} */

/*
 * Smalltouch sizes and up
 */
/* @media only screen and (min-width: 320px) {} */

/*
 * Smalltouch sizes and down
 */
@media only screen and (max-width: 480px) {
  /* 
   * Float Region Blocks - custom media query CSS example:
   * 
   * Float regions blocks is an Extension you can enable in the appearance
   * settings for your theme. This feature allows you to automatically float
   * blocks in regions, you can switch it on and off depending on your
   * requirements. For design purposes you many want to remove the floats for
   * devices where the entire theme is just one column - for example small
   * mobile phones. The following CSS is inside the custom media query:
   *
   *   @media only screen and (max-width: 480px){}
   *
   * This will target devices with a maximum width of 480px - most small phones.
   * In these smaller screen sizes we can remove the float and widths so all
   * blocks stack instead of displaying horizonally. The selector used is an
   * "attribute selector" which will match on any float block class. Use your
   * inspector or Firebug to get the classes from the page output if you need
   * more granular control over block alignment and stacking.
   */
  .region[class*="float-blocks"] .block {
    float: none;
    width: 100%;
  }
	
	td {
		float: left;
		padding: 0;
		width: 100%;
	}
}

/*
 * Tablet sizes and down
 */
@media only screen and (max-width: 768px) {
	
	#header, #branding, #logo {
		float: left;
	}
	
	#header {
		width: 60%;
	}
	
	#logo {
		text-align: left;
	}
	
	#logo img {
		max-width: 75%;
	}
	
	#columns {
		border-top: 1px solid #ccc;
		clear: both;
	}
	
	h2#sidr-id-primary-menu {
		display: none;
	}
	
	#sidr-wrapper-0 {
		float: right; 
		padding: 30px 20px;
	}
	
	#sidr-wrapper-0 img {
		float: right;
		max-width: 90%;
	}
	
	.sidr {
		font-family: Lato;
		font-size: 15px;
		background: #0071b4;
		color: #FFF;
		box-shadow: none;
	}
		
	.sidr ul li:hover > a, .sidr ul li:hover > span, .sidr ul li.active > a, .sidr ul li.active > span, .sidr ul li.sidr-class-active > a, .sidr ul li.sidr-class-active > span {
		background: #2c4a9f;
		border: none;
		box-shadow: none;
	}
	
	.sidr ul {
		border-top: none;
		border-bottom: none;
	}
	
	.sidr ul li:hover,
	.sidr ul li.sidr-class-active,
	.sidr ul li {
		border-top: 1px solid #11318f;
		border-bottom: none;
	}
	
	.sidr ul li.sidr-class-last {
		border-bottom: 1px solid #11318f;
	}
	
	.front .field-name-homepage-slideshow .view-footer {
		margin-top: -62px;
	}
	
	#main-content {
		padding: 0;
	}
	
	.section-contact-us .region-two-50-second .region-inner, .front .region-two-50-second .region-inner {
		padding: 0 10px 10px;
	}
	
	.front .region-two-50-bottom .region-inner {
		font-size: 16px;
		width: 90%;
	}
	
	.block-region-footer {
		font-size: 13px;
	}
	
	.section-changing-lives .view-header {
		margin: 10px;
	}
	
	.section-news #columns, 
	.page-scrapbook #columns {
		padding-top: 25px;
	}
	
	#block-views-news-block {
		border-top: 1px solid #ccc;
		margin: 0;
		padding: 30px 0;
	}
	
	.region-secondary-content {
		clear: left;
	}
	
	.block-superfish .block-inner .content {
		margin: 0;
	}
	
	.page-node-28 #columns, 
	.page-node-27 #columns,
	.node-type-grant-recipient #columns {
		border-top: none;
	}
	
	.page-node-28 #columns, 
	.page-node-27 #columns {
		padding-top: 0;
	}
	
} 
	

/*
 * Desktops/laptops and up
 */
/* @media only screen and (min-width: 1025px) {} */
