/*
 * Styling for Admin Menu
 * Back-end
 */

#adminmenu #toplevel_page_tpg-general-settings div.wp-menu-image:before {
  content: '\f111';
}

#adminmenu #menu-posts-tpg_photo_album div.wp-menu-image:before {
  content: '\f161';
}

#adminmenu #menu-posts-tpg_timeline div.wp-menu-image:before {
  content: '\f232';
}

.tpg-general-table {
  margin: 30px 0;
}

/*
 * Styling for the timeline
 * Front-end
 */

#tpg_timeline {
  background: #fff;
  padding: 20px;
}

#tpg_timeline .tpg-timeline {
  margin: 0px auto;
  max-width: 100%;
  position: relative;
  list-style-type: none !important;
}

#tpg_timeline .tpg-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 30px;
}

#tpg_timeline .tpg-timeline *, #tpg_timeline .tpg-timeline *:after, #tpg_timeline .tpg-timeline:after, #tpg_timeline .tpg-timeline *:before, #tpg_timeline .tpg-timeline:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#tpg_timeline .tpg-point {
  background: #69D2E7;
  font-size: 1.2em;
  line-height: 1em;
  font-weight: bold;
  max-width: 7em;
  clear: both;
  margin: 15px auto;
  color: white;
  border-radius: 7px;
  text-align: center;
  padding: 7px;
}

#tpg_timeline .tpg-event {
  position: relative;
  text-align: center;
  width: 100%;
  margin: 0;
  list-style-type: none;
  display: block;
  color: #444;
  text-decoration: none;
  overflow: hidden;
}

#tpg_timeline .tpg-content {
  float: right;
  clear: right;
  width: 46.5%;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  position: relative;
  padding: 10px;
  background: #fff;
}

#tpg_timeline .tpg-date,
#tpg_timeline .tpg-event-description,
#tpg_timeline .tpg-event-title {
  text-align: left;
}

#tpg_timeline .tpg-date {
  margin-bottom: 15px;
  overflow: hidden;
  clear: both;
  font-weight: bold;
  color: #777;
}

#tpg_timeline .tpg-date-number {
  font-size: 3em;
  line-height: 1em;
  float: left;
}

#tpg_timeline .tpg-day {
  font-size: 1em;
  line-height: 1em;
  float: left;
  min-width: 60%;
  margin: 6px 0 0 10px;
}

#tpg_timeline .tpg-month {
  font-size: 1em;
  line-height: 1em;
  float: left;
  min-width: 60%;
  margin: 4px 0 0 10px;
}

#tpg_timeline .tpg-event-title {
  font-size: 1.3em;
  line-height: 1.2em;
  font-weight: bold;
}

#tpg_timeline .tpg-event-description {
  font-size: 1em;
  line-height: 1.2em;
  color: #888;
  margin-top: 5px;
}

#tpg_timeline .tpg-event-image {
  margin-top: 25px;
  margin-bottom: 15px;
}

#tpg_timeline .tpg-event-image img {
  padding: 0;
  border: none;
  width: 100%;
}

#tpg_timeline .tpg-event-thumbnails a {
  width: 22.5%;
  margin-right: 3.33%;
  margin-bottom: 0.5em;
  float: left;
}

#tpg_timeline .tpg-event-thumbnails img {
  padding: 0;
  border: none;
  width: 100%;
}

#tpg_timeline .tpg-event-thumbnails a:nth-of-type(4n) {
  margin-right: 0;
}

@media all and (max-width: 649px) {
  #tpg_timeline .tpg-event {
    width: 85%;
    margin: 20px auto;
  }

  #tpg_timeline .tpg-content {
    width: 100%;
  }
}

#tpg_timeline .tpg-timeline .tpg-event:nth-of-type(2n) .tpg-content {
  float: left;
  clear: left;
}

#tpg_timeline .tpg-timeline .tpg-event:nth-of-type(2n):after {
  margin: 0 auto;
}

@media all and (min-width: 650px) {
  #tpg_timeline .tpg-event:after {
    position: relative;
    top: 20px;
    content: ' ';
    display: block;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    background: #69D2E7;
    border-radius: 20px;
    border: 3px solid #fff;
  }

  #tpg_timeline .tpg-event:after {
    margin: 0 auto;
  }

  #tpg_timeline .tpg-event:before {
    position: absolute;
    left: 50%;
    top: 0;
    content: ' ';
    display: block;
    width: 4px;
    height: 100%;
    margin-left: -2px;
    background: #69D2E7;
  }

  #tpg_timeline .tpg-content:after {
    content: "";
    position: absolute;
    right: 100%;
    height: 0px;
    width: 0px;
    border: 8px solid transparent;
    pointer-events: none;
    top: 30px;
    margin-top: -8px;
    border-right-color: #fff;
  }

  #tpg_timeline .tpg-content:before {
    content: "";
    position: absolute;
    right: 100%;
    height: 0px;
    width: 0px;
    border: 9px solid transparent;
    pointer-events: none;
    border-right-color: inherit;
    top: 30px;
    margin-top: -9px;
  }

  #tpg_timeline .tpg-timeline .tpg-event:nth-of-type(2n) .tpg-content:after {
    right: auto;
    left: 100%;
    border-right-color: transparent;
    border-left-color: #fff;
  }

  #tpg_timeline .tpg-timeline .tpg-event:nth-of-type(2n) .tpg-content:before {
    right: auto;
    left: 100%;
    border-right-color: transparent;
    border-left-color: inherit;
  }

}

/*
 * Lightbox
 * Credit to http://tympanus.net/Tutorials/CSS3Lightbox/index3.html
*/

#tpg_timeline .tpg-overlay{
  width: 0px;
  height: 0px;
  position: fixed;
  overflow: hidden;
  left: 0px;
  top: 0px;
  padding: 0px;
  z-index: 999999;
  text-align: center;
  background: rgb(241,210,194);
  background: -moz-radial-gradient(center, ellipse cover, rgba(170,179,171,0.56) 0%, rgba(196,203,183,1) 100%);
  background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(170,179,171,0.56)), color-stop(100%,rgba(196,203,183,1)));
  background: -webkit-radial-gradient(center, ellipse cover, rgba(170,179,171,0.56) 0%,rgba(196,203,183,1) 100%);
  background: -o-radial-gradient(center, ellipse cover, rgba(170,179,171,0.56) 0%,rgba(196,203,183,1) 100%);
  background: -ms-radial-gradient(center, ellipse cover, rgba(170,179,171,0.56) 0%,rgba(196,203,183,1) 100%);
  background: radial-gradient(center, ellipse cover, rgba(170,179,171,0.56) 0%,rgba(196,203,183,1) 100%);
}

#tpg_timeline .tpg-overlay > div{
  position: relative;
  color: rgba(27,54,81,0.8);
  width: 550px;
  height: 80px;
  margin: 40px auto 0px auto;
}

#tpg_timeline .tpg-overlay div h3,
#tpg_timeline .tpg-overlay div p{
  padding: 0px 20px;
  width: 200px;
  height: 60px;
}

#tpg_timeline .tpg-overlay div h3{
  font-size: 36px;
  float: left;
  text-align: right;
  border-right: 1px solid rgba(27,54,81,0.4);
}

#tpg_timeline .tpg-overlay div h3 span,
#tpg_timeline .tpg-overlay div p{
  font-size: 16px;
  font-family: Constantia, Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif;
  font-style: italic;
}

#tpg_timeline .tpg-overlay div h3 span{
  display: block;
  line-height: 6px;
}

#tpg_timeline .tpg-overlay div p{
  font-size: 14px;
  text-align: left;
  float: left;
  width: 260px;
}

#tpg_timeline .tpg-overlay a.tpg-close{
  background: rgba(27,54,81,0.8);
  z-index: 1001;
  color: #fff;
  position: absolute;
  top: 43px;
  left: 50%;
  font-size: 15px;
  text-align: center;
  max-width: 50px;
  overflow: hidden;
  margin-left: -25px;
  opacity: 0;
  filter: alpha(opacity=0); /* internet explorer */
  -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=0)"; /*IE8*/
}

#tpg_timeline .tpg-overlay img{
  max-height: 100%;
  width: auto;
  margin: 0 auto;
  position: relative;
  opacity: 0;
  filter: alpha(opacity=0); /* internet explorer */
  -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=0)"; /*IE8*/
  -webkit-box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  -moz-box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  box-shadow: 0px 2px 7px rgba(0,0,0,0.2);
  -webkit-transition: opacity 0.5s linear;
  -moz-transition: opacity 0.5s linear;
  -o-transition: opacity 0.5s linear;
  -ms-transition: opacity 0.5s linear;
  transition: opacity 0.5s linear;
}

#tpg_timeline .tpg-prev,  #tpg_timeline .tpg-next{
  position: absolute;
  top: -32px;
  height: 25px;
  left: 50%;
  opacity: 0.8;
}

#tpg_timeline .tpg-event-thumbnails .tpg-prev,
#tpg_timeline .tpg-event-thumbnails .tpg-next {
  text-indent: -100px;
}

#tpg_timeline .tpg-prev{
  margin-left: -30px;
}

#tpg_timeline .tpg-next{
  margin-left: 6px;
}

#tpg_timeline .tpg-prev:hover,  #tpg_timeline .tpg-next:hover{
  color: inherit;
}

#tpg_timeline .tpg-overlay:target {
  width: auto;
  height: auto;
  bottom: 0px;
  right: 0px;
  padding: 80px 100px 120px 100px;
}

#tpg_timeline .tpg-overlay:target img,
#tpg_timeline .tpg-overlay:target a.tpg-close{
  opacity: 1;
  filter: alpha(opacity=99); /* internet explorer */
  -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=99)"; /*IE8*/
}

x:-o-prefocus, #tpg_timeline .tpg-overlay img {
  height: 100%;
}
