/**
 * @file
 * Positioning for a fixed-width, desktop-centric layout.
 *
 * Define CSS classes to create a table-free, 3-column, 2-column, or single
 * column layout depending on whether blocks are enabled in the left or right
 * columns.
 *
 * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
 */


/*
 * Center the page.
 */

#page,
.region-bottom {
  /* If you want to make the page a fixed width and centered in the viewport,
   * this is the standards-compliant way to do that. */
  margin-left: auto;
  margin-right: auto;
  width: 1090px;
}

/*
 * Apply the shared properties of grid items in a single, efficient ruleset.
 */

#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
  padding: 0;
  border: 0 !important;
  overflow: visible;
  word-wrap: break-word;
  _display: inline;
  _overflow: hidden;
  _overflow-y: visible;
}

#header,
#navigation,
#content,
.region-sidebar-first,
.region-sidebar-second {
  padding: 0;
}

#content,
.region-sidebar-first,
.region-sidebar-second {
  margin-top: 30px;
}

body.front #content,
body.front .region-sidebar-first,
body.front .region-sidebar-second {
  margin-top: 0;
}


/*
 * Containers for grid items and flow items.
 */

#header,
#main,
#footer {
  position: relative;
  overflow: hidden;
  *zoom: 1;
}

#header {
  overflow: visible;
}

/*
 * Navigation bar
 */

#main {
  padding-top: 0px; /* Move all the children of #main down to make room. */
  width: 920px;
  margin: 0 auto;
  overflow: visible;
}

#navigation {
  position: absolute;
  top: 0; /* Move the navbar up inside #main's padding. */
  height: 18px;
  width: 920px;
}

/*
 * The layout when there are no sidebars.
 */

#content {
  width: 920px;
}

/*
 * The layout when there is only one sidebar, the left one.
 */

.sidebar-first #content {
  /* Span 4 columns, starting in 2nd column from left. */
  float: left;
  width: 720px;
  margin-left: 200px;
  margin-right: -920px;
}

.region-content-footer {
  width: 720px;
  clear: both;
}

.region-content-scroller {
  width: 937px;
  clear: both;
}

.sidebar-first .region-sidebar-first {
  /* Span 1 column, starting in 1st column from left. */
  float: left;
  width: 200px;
  margin-left: 0px;
  margin-right: -200px;
}

.sidebar-second-content #content-inner {
  float: left;
  width: 490px;
}

/*
 * The layout when there is only one sidebar, the right one.
 */

.sidebar-second #content {
  /* Span 4 columns, starting in 1st column from left. */
  float: left;
  width: 700px;
  margin-left: 0px;
  margin-right: -720px;
}

.sidebar-second .region-sidebar-second {
  /* Span 1 column, starting in 5th column from left. */
  float: left;
  width: 200px;
  margin-left: 720px;
  margin-right: -920px;
}

body.page-search-content.sidebar-second #content,
body.section-video.sidebar-second #content {
  float: left;
  width: 625px;
  margin-left: 0px;
  margin-right: -625px;
}

body.page-search-content.sidebar-second .region-sidebar-second,
body.section-video.sidebar-second .region-sidebar-second {
  /* Span 1 column, starting in 5th column from left. */
  float: left;
  width: 247px;
  margin-left: 673px;
  margin-right: -920px;
}


/*
 * The layout when there are two sidebars.
 */

.two-sidebars #content {
  /* Span 3 columns, starting in 2nd column from left. */
  float: left;
  width: 500px;
  margin-left: 200px;
  margin-right: -740px;
}

.two-sidebars .region-sidebar-first {
  /* Span 1 column, starting in 1st column from left. */
  float: left;
  width: 180px;
  margin-left: 0px;
  margin-right: -200px;
}

.two-sidebars .region-sidebar-second {
  /* Span 1 column, starting in 5th column from left. */
  float: left;
  width: 200px;
  margin-left: 720px;
  margin-right: -920px;
}

.sidebar-second-content .region-sidebar-second {
  float: right;
  width: 200px;
}

/* backpage scroller adjustments ***** */

body.backpage-scroller div.region-backpage-scroller {
/*   background: none repeat scroll 0 0 yellow; */
float: left;
height: 330px;
margin-left: 200px;
margin-right: -920px;
width: 720px;
}

body.page-aspen-around.backpage-scroller div.region-backpage-scroller {
  margin-left: 0px;
  margin-right: 0px;
}

body.backpage-scroller .region-sidebar-second {
padding-top: 330px;
}

body.page-aspen-around.backpage-scroller .region-sidebar-second {
  padding-top: 0px;
}

body.backpage-scroller  div#content.column {
padding-top: 330px;
}

body.page-aspen-around.backpage-scroller  div#content.column {
  padding-top: 0px;
}
