

/* Style the figures */

figure {
  position: relative;
  display: block;
  margin: 5px 0 10px 0;
  overflow:hidden;
}

.figure{
text-decoration:none;
color:#fff;
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
/* Style the figure captions, hiding them by default */

figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  font-size: .7em;
  color: #fff;
  background-color: rgba(0,0,0,.7);
  opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: opacity .5s ease-in-out;
  -moz-transition: opacity .5s ease-in-out;
  -o-transition: opacity .5s ease-in-out;
  transition: opacity .5s ease-in-out;

}

.fig {
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  background-color: red;
  text-transform:uppercase;
  font-size:1.4em;
  font-family: Impact;
  padding-left:10px;
  padding-right:10px;
}
.fig:hover{
 text-decoration:underline;
 color:#fff;
}
.fog {
  position: absolute;
  right: 0;
  top: 0;
  color: #fff;
  background-color: red;
  font-size:.8em;
  padding-left:10px;
  padding-right:10px;
}




/* Display the captions on hover */

figure figcaption {
  opacity: 1;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#aa000000,endColorstr=#aa000000);
}
figure:hover figcaption {
  opacity: 0;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#aa000000,endColorstr=#aa000000);
}

/* Add padding and margin to the caption contents */

figcaption * {
  padding: 0 10px;
  margin: 0;
}


figcaption *:last-child {
  padding-bottom: 5px;
}

/* Give captions and headings their own font */

figcaption, h1, h2, h3, h4 {
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

