.galeria{
  margin-left: 2%; margin-top: 1%; }
.galeria p{
	text-align: left;}
figure.ref {
  color: #fff; position: relative; float: left; overflow: hidden;
  margin: 2% 1% 0 1%; width: 47%;  background: #000000; padding: 0;}
figure.ref * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;}
figure.ref img {
  opacity: 1; width: 100%; height: auto; display: block; z-index: 50;}
figure.ref figcaption {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
  opacity: 1; z-index: 100; content: ""; }
figure.ref h2{
  margin: 45% 0 5px; color: #fff; font-weight: 400; font-size: 35px; line-height: 45px; 
  padding: 30px; text-transform: uppercase; background:url(../imagenes/negro.png);}
figure.ref a {
  left: 0; right: 0; top: 0; bottom: 0;
  position: absolute; color: #ffffff;}
figure.ref:hover img {
  opacity: 0.6; filter: grayscale(100%);}
@media only screen 
and (max-width : 500px){
.galeria{
	margin: 20px;}
figure.ref{
	width: 97%; float: none;}
figure.ref figcaption {
    padding: 20px 2em 20px 3em; text-align: left;}
figure.ref h2 {
    font-size: 20px; padding-top: 10%;}
}
@media only screen 
and (min-width : 501px)
and (max-width : 699px){
figure.ref figcaption {
    padding: 20px 2em; text-align: left;}
figure.ref h2 {
    font-size: 16px; line-height: 22px;  padding: 5px 15px;}
figure.ref p {
    display: none;}
.bloques{
	margin-left: 2%;}}
@media only screen 
and (min-width : 699px)
and (max-width : 900px){
.galeria{
	margin: 40px;}
figure.ref{
	width: 47%;}
figure.ref figcaption {
    padding: 20px 3em; text-align: left;}
figure.ref h2 {
    font-size: 18px; line-height: 25px; padding-top: 10%;}
figure.ref p {
    display: none;}}
@media only screen 
and (min-width : 901px)
and (max-width : 1100px){
.galeria{
	margin: 40px 50px;}
figure.ref figcaption {
    padding: 20px 3em; text-align: left;}
figure.ref h2 {
    font-size: 20px; padding-top: 20%;}
figure.ref p {
    display: none;}}
@media only screen 
and (min-width : 1101px)
and (max-width : 1250px){
.galeria{
	margin: 40px 70px;}
figure.ref figcaption {
    padding: 20px 4em; text-align: left;}
figure.ref h2 {
    padding-top: 15%;}}
@media only screen 
and (min-width : 1251px)
and (max-width : 1410px){
figure.ref figcaption {
    padding: 20px 6em; text-align: left;}}