/**
 * @file
 * Layout Styling (DIV Positioning)
 *
 * 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 is based on the Zen Columns layout method.
 *   http://drupal.org/node/201428
 *
 * Only CSS that affects the layout (positioning) of major elements should be
 * listed here.  Such as:
 *   display, position, float, clear, width, height, min-width, min-height
 *   margin, border, padding, overflow
 */

/* FLUID LAYOUT */

body.fluid-layout #page-wrapper,
body.fluid-layout .region-bottom {
  min-width: 960px; /* Don't allow the browser to make the site unreadable. */
}

body.fluid-layout #content {
  float: left; /* LTR */
  width: 100%;
  margin-left: 0; /* LTR */
  margin-right: -100%; /* LTR */ /* Negative value of #content's width + left margin. */
  padding: 0; /* DO NOT CHANGE. Add padding or margin to #content .section. */
}

body.fluid-layout #content .section,
.fluid-layout.no-sidebars #content .section {
  margin: 0;
  padding: 0;
}

.fluid-layout.sidebar-first #content .section {
  padding-left: 200px; /* LTR */ /* The width + left margin of .region-sidebar-first. */
  padding-right: 0; /* LTR */
}

.fluid-layout.sidebar-second #content .section {
  padding-left: 0; /* LTR */
  padding-right: 200px; /* LTR */ /* The width + right margin of .region-sidebar-second. */
}

.fluid-layout.two-sidebars #content .section {
  padding-left: 200px; /* The width + left margin of .region-sidebar-first. */
  padding-right: 200px; /* The width + right margin of .region-sidebar-second. */
}

body.fluid-layout #navigation {
  float: left; /* LTR */
  width: 100%;
  margin-left: 0; /* LTR */
  margin-right: -100%; /* LTR */ /* Negative value of #navigation's width + left margin. */
  padding: 0; /* DO NOT CHANGE. Add padding or margin to #navigation .section. */
  height: 2.3em; /* The navigation can have any arbritrary height. We picked one
                    that is the line-height plus 1em: 1.3 + 1 = 2.3
                    Set this to the same value as the margin-top below. */
}

body.fluid-layout .region-sidebar-first {
  float: left; /* LTR */
  width: 200px;
  margin-left: 0; /* LTR */
  margin-right: -200px; /* LTR */ /* Negative value of .region-sidebar-first's width + left margin. */
  padding: 0; /* DO NOT CHANGE. Add padding or margin to .region-sidebar-first .section. */
}


body.fluid-layout .region-sidebar-second {
  float: right; /* LTR */
  width: 200px;
  margin-left: -200px; /* LTR */ /* Negative value of .region-sidebar-second's width + right margin. */
  margin-right: 0; /* LTR */
  padding: 0; /* DO NOT CHANGE. Add padding or margin to .region-sidebar-second .section. */
}

body.fluid-layout .region-postscript-first,
body.fluid-layout .region-postscript-middle,
body.fluid-layout .region-postscript-last {
  width: 30%;
}

/* FIXED LAYOUT */
.fixed-layout #main,
.fixed-layout #header .section,
.fixed-layout #postscript-top .section,
.fixed-layout #postscript-bottom .section,
.fixed-layout #footer .section {
    margin-left: auto;
    margin-right: auto;
    width: 960px; 
}

.fixed-layout #content,
.fixed-layout.no-sidebars #content {
  float: left; /* LTR */
  width: 960px;
  margin-left: 0; /* LTR */
  margin-right: -960px; /* LTR */ /* Negative value of #content's width + left margin. */
  padding: 0; /* DO NOT CHANGE. Add padding or margin to #content .section. */
}

.fixed-layout.sidebar-first #content {
  width: 740px;
  margin-left: 200px; /* LTR */ /* The width of .region-sidebar-first. */
  margin-right: -960px; /* LTR */ /* Negative value of #content's width + left margin. */
}

.fixed-layout.sidebar-second #content {
  width: 740px;
  margin-left: 0; /* LTR */
  margin-right: -760px; /* LTR */ /* Negative value of #content's width + left margin. */
}

.fixed-layout.two-sidebars #content {
  width: 560px;
  margin-left: 200px; /* LTR */ /* The width of .region-sidebar-first */
  margin-right: -760px; /* LTR */ /* Negative value of #content's width + left margin. */
}

body.fixed-layout #content .section {
  margin: 0;
  padding: 0;
}

body.fixed-layout .region-sidebar-first {
  float: left; /* LTR */
  width: 200px;
  margin-left: 0; /* LTR */
  margin-right: -200px; /* LTR */ /* Negative value of .region-sidebar-first's width + left margin. */
  padding: 0; /* DO NOT CHANGE. Add padding or margin to .region-sidebar-first .section. */
}

body.fixed-layout .region-sidebar-second {
  float: left; /* LTR */
  width: 200px;
  margin-left: 760px; /* LTR */ /* Width of content + sidebar-first. */
  margin-right: -960px; /* LTR */ /* Negative value of .region-sidebar-second's width + left margin. */
  padding: 0; /* DO NOT CHANGE. Add padding or margin to .region-sidebar-second .section. */
}

body.fixed-layout .region-postscript-first,
body.fixed-layout .region-postscript-middle,
body.fixed-layout .region-postscript-last {
  width: 260px;
}

/* FIXED CONTENT LAYOUT FULL BACKGROUND */
.full-background #page-wrapper,
.full-background .region-bottom {
  width: 100%;
}

/* FIXED LAYOUT 960px BACKGROUND */
.fixed-background #page-wrapper,
.fixed-background .region-bottom {
  width: 960px;
  margin: 0 auto;
}

/* BOTH FIXED AND FLUID */
#main-wrapper {
  position: relative;
}

#navigation {
  float: left; /* LTR */
  width: 100%;
  margin-left: 0; /* LTR */
  margin-right: -100%; /* LTR */ /* Negative value of #navigation's width + left margin. */
  padding: 0; /* DO NOT CHANGE. Add padding or margin to #navigation .section. */
  height: 2.3em; /* The navigation can have any arbritrary height. We picked one
                    that is the line-height plus 1em: 1.3 + 1 = 2.3
                    Set this to the same value as the margin-top below. */
}

.region-sidebar-first .section {
  margin: 0 20px 0 10px; /* LTR */
  padding: 0;
}

.region-sidebar-second .section {
  margin: 0 10px 0 20px; /* LTR */
  padding: 0;
}


/* POSTSCRIPT REGIONS */
#postscript-top-wrapper {
  margin-top: 20px;
}

#postscript-top-wrapper,
#postscript-bottom-wrapper {
  padding: 15px 0;
}

.postscript-column {
  float: left;
}

.postscript-columns-1 .postscript-column {
  width: 100%;
}

.postscript-columns-2 .postscript-column {
  width: 50%;
}

.postscript-columns-3 .postscript-column {
  width: 33%;
}

.region-postscript-first,
.region-postscript-middle,
.region-postscript-last {
  display: inline;
  float: left; 
  position: relative;
  margin: 15px 20px;
}

/*
 * Prevent overflowing content
 */
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#postscript,
#footer,
.region-bottom {
  overflow: visible;
  word-wrap: break-word; /* A very nice CSS3 property */
}

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

.no-navigation #header .section  {
  margin-bottom: 15px;
}

/*
 * for KLDP
 */
.block > .content .node .user-picture {
	float: right;
	border: 1px solid #ddd;
	margin: 0.5em;
}

