/*** Defaults, overwrite these in adaptive styles (mobile and full). This is for IE8 and earlier fallback! ***/

body.front #article-365 h1 {
  display: none;
}

.fpBlock {
  margin: 7px 0 5px 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  cursor: pointer;
}

.fpBlock .img {
  display: none;
}

.lrBlock {
  padding: 5px 8px;
}

#lowerRow {
  margin: 15px 0 0 10px;
  clear: both;
}

/********** Adaptive for smaller screens ***********/

@media only screen and (min-width:321px) and (max-width:768px) {

  #fpWrapper {
    position: relative;
    margin-top: 20px;
  }

  #fpBlockWrapper {
    clear: both;
  }


 .fpBlock {
    border: 0;
    border-radius: 10px;
    width: 225px;
    padding: 0;
    background: none !important;
    margin: 10px 7px 0 6px;
    overflow: hidden;
    position: relative;
  }

 .fpBlock .img {
    background: none !important;
  }

  #lowerRow {
    margin: 10px 0 0 10px;
    clear: both;
  }

}

/***** Front Page [w adaptive method - alex] *****/

@media only screen and (min-width:769px) {

body.front #article-365 h1 {
  display: none;
}

body.front .article .article-content {
  margin: 10px 0;
}

body.front #main-content .views-row .article {
  padding: 10px 20px 0;
}

body.front #main-content .views-row:first-child .article {
  padding: 0;
}


body.front div#main-content div.block-content div.view-frontpage div.view-content {
  background: #fff url(../images/fpBg5.jpg) no-repeat 50% -80px;
}


body.front #page {
  background: none;
}

body.front #fpWrapper {
  position: relative;
  height: 300px;
  margin: 20px auto 0 auto;
  width: 940px;
}

body.front #fpWrapper #fpBlockWrapper {
  clear: both;
  margin-right: -100px;
}

body.front .fpBlock {
  border: 0;
  border-radius: 5px;
  height: 220px;
  width: 225px;
  float: left;
  padding: 0;
  background: #336140;
  margin: 0 7px 0 6px;
  overflow: hidden;
  position: relative;
}

body.front #fpBlockWrapper:hover .fpBlock {
  width: 205px;
}

body.front .fpBlock:first-child {
  margin-left: 0;
}

body.front .fpBlock:last-child {
  margin-right: 0;
}

body.front #fpBlockWrapper .fpBlock:nth-child(1),
body.front #fpBlockWrapper .fpBlock:nth-child(3) {
  background-color: #4A889C;
}

body.front .fpBlock, .fpBlock .img,
body.front .fpBlock .fpTitle,
body.front .fpBlock .fpSubTitle /*,
body.front .fpBlock .fpDesc */ {
  transition: ease-out .4s;
  -moz-transition: ease-out .4s;
  -webkit-transition: ease-out .4s;
  -o-transition: ease-out .4s;
}

body.front #fpBlockWrapper .fpBlock:hover {
  cursor: pointer;
  width: 285px;
}

body.front .fpBlock .img {
  position: absolute;
  display: block;
  width: 100%;
  border-radius: 5px;
  height: 100%;
  opacity: 0.1;
}

body.front #fpBlockWrapper .fpBlock:hover .img {
  opacity: 1;
}

body.front .fpBlock .fpTitle {
  position: absolute;
  display: block;
  color: #0B7996;
  font-size: 2em;
  font-weight: 300;
  font-family: Open Sans, Verdana, Arial;
  top: 55px;
  left: 0px;
  background: #fff;
  padding: 10px 15px;
  z-index: 10;
}

body.front .fpBlock .fpSubTitle {
  position: absolute;
  display: block;
  color: #0088ac;
  font-size: 1.5em;
  top: 88px;
  left: 10px;
  background: #fff;
  padding: 8px 10px 8px;
  z-index: 5;
  opacity: 0.85;
  font-family: "Open Sans";
}

body.front .fpBlock .fpDesc {
  position: absolute;
  display: block;
  width: 265px;
  color: #fff;//#1C424D;
  font-size: 1.1em;
  bottom: 0px;
  left: 0px;
  background: #0088ac;
  padding: 10px 10px;
  z-index: 5;
  border-top: 3px solid #fff;
  min-height: 38px;
  opacity: 0;
  font-family: Open Sans, Verdana, Arial;
}

body.front #fpBlockWrapper .fpBlock:hover .fpDesc {
  opacity: 1;
}

body.front #fpBlockWrapper .fpBlock:hover .fpTitle, 
body.front #fpBlockWrapper .fpBlock:hover .fpSubTitle {
  opacity: 0;
}

body.front #lowerRow {
  clear: both;
  position: absolute;
  bottom: 0px;
  margin: 0 -5px;
  border: 1px dotted #efefef;
  border-top: 1px dotted #e4e4e4;
  border-bottom: none;
  padding: 5px 0;
}

body.front .lrBlock {
  float: left;
  width: 225px;
  margin: 0 5px;
  text-align: center;
  border: 1px solid transparent;
  padding: 12px 0;
  font-family: Doppio One, Verdana, Arial;
  font-size: 1.3em;
  border-radius: 4px;
  display: block;
  color: #0088ac !important;
}

body.front .lrBlock:hover {
  border-color: #0088ac;
  border-color: rgb(150,190,235);
  color: #0088ac;
  text-decoration: none;
  background: none;
  background: rgba(180,220,255,0.25);
}

}
