/**
 * @file
 * Views styling
 */


/**
 * Text over slideshow
 */

.view-featured-slideshow .views-field-field-slideshow-ref, .view-featured-slideshow .views-field-body {
  position: absolute;
  width: 160px;
  height: 100%;
  left: 25px;
  padding: 8px;
  top: -8px;
}

.view-featured-slideshow .views-field-field-slideshow-ref {
  background: white;

  opacity: 0.75;
  filter:alpha(opacity=75);

  text-align: center;
  font-weight: bold;

  background-image: -moz-linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,0));
  background-image: -webkit-linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,0));
  background-image: -o-linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,0));
  background-image: -ms-linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,0));
  background-image:  linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,0));

  -webkit-box-shadow: 2px 0 0 rgba(0,0,0,.3);
  box-shadow: 2px 0 0 rgba(0,0,0,.3);

  border-radius: 8px 0 0 12px;
}

.view-featured-slideshow .views-field-field-slideshow-ref:before {
  content: '';
  position: absolute;
  border-style: solid;
  border-color: transparent;
  top: 0;
  border-width: 8px 0 0 8px;
  border-left-color: #A5A5A5;
  right: -8px;
}

.view-featured-slideshow .views-field-field-slideshow-ref:after {
  content: '';
  position: absolute;
  border-style: solid;
  border-color: transparent;
  bottom: 0;
  border-width: 0 0 12px 12px;
  border-left-color: #A5A5A5;
  right: -12px;
}

.view-featured-slideshow .views-field-body {
  top: 55px;
}

.view-featured-slideshow .views-slideshow-controls-bottom {
  margin: 15px 20px 0px 0px;
}

.view-featured-slideshow .views_slideshow_pager_field_item {
  display: inline;
  float: right;
  margin: 5px;
  width: 12px;
  height: 12px;
  background: #717171;
  border-radius: 15px;
  text-indent: -9999px;
}

.view-featured-slideshow .widget_pager .active {
  background: #111;
}

/**
 * Frong Page Blocks
 */

 .front div#block-block-1 {
  margin-bottom: 25px;
 }

.front div#block-views-lab-photo-block {
  margin-bottom: 25px;
}

.front div#block-block-2 table tr td {
  width: 33%;
  text-align: right;
  vertical-align: middle;
}

.front div#main p {
  text-align: justify;
}

/**
 * Front page news
 */

.block .view-news .views-row {
  margin-bottom: 10px;
}

.block .view-news .views-field-title {
  font-size: 1.3em;
  margin: 0;
  font-family: SansationLight;
  font-weight: bold;
}

.block .view-news .views-field-created {
  font-size: 10px;
  margin: 0 0 1em 15px;
}

.block .view-news .views-field-field-image {
  float: left;
  padding: 1px 5px 1px 0;
}

.block .view-news .views-field-view-node {
  text-align: right;
  margin-right: 15px;
}

.block .view-news .views-field-field-tags .views-label{
  font-weight: bold;
}

.block .view-news .views-field-view-node a, .block .view-news .views-field-field-tags a {
  border-bottom: 1px dotted #363636;
}

.block .view-news .views-field-view-node a:hover, .block .view-news .views-field-field-tags a:hover {
  text-decoration: none;
  border-bottom: 1px solid #363636;
}

.block .view-news .views-row hr {
  display:block;
  border:none;
  color:white;
  height:1px;
  background:black;
  background: #363636; /* Old browsers */
  background: -moz-radial-gradient(center, ellipse cover,  #363636 0%, #ffffff 100%); /* FF3.6+ */
  background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#363636), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
  background: -webkit-radial-gradient(center, ellipse cover,  #363636 0%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
  background: -o-radial-gradient(center, ellipse cover,  #363636 0%,#ffffff 100%); /* Opera 12+ */
  background: -ms-radial-gradient(center, ellipse cover,  #363636 0%,#ffffff 100%); /* IE10+ */
  background: radial-gradient(center, ellipse cover,  #363636 0%,#ffffff 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#363636', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
  margin: 10px 0 0 0;
}

.block .view-news .views-row-last hr {
  display: none;
}

/**
 * Peoples Page
 */

.view-id-students table:nth-child(2) tr td .views-field-field-picture {
  width: 16%;
}

.view-id-students h3 {
  font-size: 1.6em;
  margin: 0 0 0 10px;
}

.view-id-students hr {
  display:block;
  border:none;
  color:white;
  height:2px;
  margin: 0;
  padding: 0;
  background: #363636; /* Old browsers */
  background: -moz-linear-gradient(left,  #363636 0%, #ffffff 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, right top, color-stop(0%,#363636), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(left,  #363636 0%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(left,  #363636 0%,#ffffff 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(left,  #363636 0%,#ffffff 100%); /* IE10+ */
  background: linear-gradient(left,  #363636 0%,#ffffff 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#363636', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */
}

.view-id-students table {
  margin: 1.5em 0;
}

.view-id-students table tr {
	height: 170px;
  margin: 10px;
}

/* Taken care of by jquery
.view-id-students table:nth-child(4) tr:nth-child(odd), .view-id-students table:nth-child(6) tr:nth-child(odd), .view-id-students table:nth-child(8) tr:nth-child(even) {
  background: #E8E8E8 !important;
}*/

.view-id-students table tr td {
	width: 16%;
	padding: 5px;

  vertical-align: middle;
  position: relative;
}

.view-id-students table tr td div {
  text-align: center;
}

.view-id-students table tr td .views-field-field-name {
  position: absolute;
  top: 10px;
  left: 10px;
}

.view-id-students table tr td .views-field-field-picture {
  /*text-align: center;*/
  margin: 5px 0;
}

.view-id-students table tr td .views-field-field-email {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

/**
 * News page
 */

.not-front .view-news table {
  border-collapse: separate;
  empty-cells: hide;
}

.not-front .view-news table tr {
  height: 250px;
}

.not-front .view-news table tr td {
  width: 50%;
  padding: 15px 10px 0 10px;
  position: relative;
}

.not-front .view-news table tr:nth-child(odd) td.col-2, .not-front .view-news table tr:nth-child(even) td.col-1 {
  background: #E8E8E8;
}

.not-front .view-news .views-field-title {
  position: absolute;
  top: 10px;
  font-family: SansationLight;
  font-weight: bold;
  font-size: 1.5em;
}

.not-front .view-news .views-field-created {
  position: absolute;
  top: 27px;
}

.not-front .view-news .views-field-field-image {
  height: 195px;
  margin-top: 25px;
}

.not-front .view-news .views-field-body {
  margin-top: 25px;
}

/**
 * Projects page
 */

.view-projects table tr:nth-child(even) {
  background: #E8E8E8 !important;
}

.view-projects table tr td {
  width: 33%;
  padding: 0 10px 20px 10px;
  position: relative;
  vertical-align: top;
}

.view-projects .views-field-title h2 {
  padding-top: 2px;
  height: 33px;
  text-align: center;
  overflow: hidden;
}

.view-projects .views-field-field-project-pic {
  height: 230px;
  width: 280px;
  overflow: hidden;
}

.view-projects .views-field-view-node {
  text-align: right;
}

.view-projects .views-field-view-node a, .view-projects .views-field-field-categories a {
  border-bottom: 1px dotted #363636;
}

.view-projects .views-field-view-node a:hover, .view-projects .views-field-field-categories a:hover {
  text-decoration: none;
  border-bottom: 1px solid #363636;
}

/**
 * Individual project page
 */

.view-publications .node-biblio {
  margin-bottom: 20px;
}

.view-publications .node-biblio h2 {
  display: none;
}

.view-publications .node-biblio .biblio-authors a, .view-publications .node-biblio .biblio-title a {
  border: none;
}

.view-publications .node-biblio .biblio-authors a:hover, .view-publications .node-biblio .biblio-title a:hover {
  text-decoration: underline;
}

.view-publications .node-biblio .node-readmore {
  display: none;
}

.view-sponsors-block table tr.row-last .views-field-field-sponsor-pic {
  margin-bottom: 20px;
}

.view-sponsors-block table tr td {
  vertical-align: top;
  width: 16%;
}

.view-sponsors-block .views-field-field-sponsor-pic {
  margin: 5px 0 0 15px;
}

.view-members table tr td {
  vertical-align: top;
  width: 16%;
}

.view-members .views-field-field-picture {
  margin: 5px 0 0 15px;
}

