/*
 * Caption component
 */
.caption {
    position: relative;
    overflow: hidden;

    /* Only the -webkit- prefix is required these days */
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
}

.caption::before {
    content: ' ';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: transparent;
    transition: background .35s ease-out;
}

.caption:hover::before {
    background: rgb(241, 196, 15);
}

.caption__media {
    display: block;
    min-width: 100%;
    max-width: 100%;
    height: auto;
}

.caption__overlay {
    position: absolute;
    top: 30%;
    right: 0;
    bottom: 0;
    left: 0;
	text-align:center;
    padding: 10px;
    color: white;
	text-transform:uppercase;

    -webkit-transform: translateY(100%);
            transform: translateY(100%);

    transition: -webkit-transform .35s ease-out;
    transition:         transform .35s ease-out;
}

.caption__overlay a {
    color: white;
}

.caption__overlay:hover {
    color: white;
}


.caption:hover .caption__overlay {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    color: white;
}

.caption__overlay__title {
    -webkit-transform: translateY( -webkit-calc(-100% - 10px) );
            transform: translateY( calc(-100% - 10px) );

    transition: -webkit-transform .35s ease-out;
    transition:         transform .35s ease-out;
}

.caption:hover .caption__overlay__title {
    -webkit-transform: translateY(0);
            transform: translateY(0);
}



/** page structure **/
#wrapper {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
}

#portfolio2 {
  display: block;
}

#portfolio2 li {
  display: block;
  float: left;
  width: 30%;
  max-width: 400px;
  margin-right: 20px;
  margin-bottom: 20px;
}

#portfolio2 li a {
  display: block;
 /* padding: 8px;
  background: #fff;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  -webkit-box-shadow: 1px 2px 2px rgba(0,0,0,0.25);
  -moz-box-shadow: 1px 2px 2px rgba(0,0,0,0.25);
  box-shadow: 1px 2px 2px rgba(0,0,0,0.25);*/
}

.mfp-title {
  font-size: 1.2em;
  color: #ddd !important;
  font-weight: 700;
}

/** clearfix **/
/*.clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.clearfix { display: inline-block; }
 
html[xmlns] .clearfix { display: block; }
* html .clearfix { height: 1%; }*/


/** media queries **/
@media screen and (max-width: 780px) {
  #portfolio2 li {
    width: 45%;
  }
}

@media screen and (max-width: 550px) {
  #portfolio2 { 
    text-align: center;
  }
  
  #portfolio2 li {
    float: none;
    display: inline-block;
    width: 80%;
    margin-bottom: 30px;
  }
}