#container {
    text-align: justify;
    -ms-text-justify: distribute-all-lines;
    text-justify: distribute-all-lines;
}

.image {
    height: 100px;
    min-width: 50px;
    display: block;
    margin: 0 auto;
    border-radius: 2px;
}

.image-container {
    
    vertical-align: top;
    display: inline-block;
    *display: inline;
    zoom: 1;
    
    cursor:pointer;
    margin: 10px;
    padding: 10px;
    background-color: #222;
    border-radius: 6px;
    -moz-box-shadow: 0px 5px 35px -10px #000;
    -webkit-box-shadow: 0px 5px 35px -10px #000;
    box-shadow: 0px 5px 35px -10px #000;
}

.image-description {
    margin: 0 0 10px 0;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
}

.image-description a:hover,
.popup-image-description a:hover{
    text-decoration: underline;
}

.popup-image {
    width: 500px;
    display: block;
    margin: 15px 0;
}

.popup-image-description {
    font-weight: bold;
    font-size: 20px;
    margin: 0;
}

.image-copy-text {
    width: 400px;
    height: 23px;
    margin-left: 10px;
    border-radius: 3px;
    background-color: #3F3F3F;
    border-width: 0;
    color: #ccc;
    padding: 8px;
    -moz-box-shadow:    inset 0 0 6px #000;
    -webkit-box-shadow: inset 0 0 6px #000;
    box-shadow:         inset 0 0 6px #000;
}


#popup {
    position: relative;
    width: 500px;
    margin: 20px auto;
    text-align: center;
  
    padding: 20px;
    background-color: #343434;
    border-radius: 6px;
    -moz-box-shadow: 0px 5px 35px -10px #000;
    -webkit-box-shadow: 0px 5px 35px -10px #000;
    box-shadow: 0px 5px 35px -10px #000;
}

.mfp-close-btn-in .mfp-close {
    color: #FFF;
}


/* tablet */
@media all and (max-width: 1024px) {
    .image-copy-button {
        display: none;
    }
    .image-copy-text {
        width: 485px;
        margin-left: 0;
    }
}

@media screen and (max-width: 600px) {

    .image {
        height: 50px;
        min-width: 25px;
    }

    .image-container {
        margin: 5px;
        padding: 5px;
    }

    .image-description {
        margin: 0 0 5px 0;
        font-size: 11px;
    }

    .popup-image {
        width: 300px;
        margin: 15px 0;
    }

    .popup-image-description {
        font-size: 15px;
    }

    .image-copy-button {
        display: none;
    }
    
    .image-copy-text {
        width: 285px;
        margin-left: 0;
    }


    #popup {
        width: 300px;
        margin: 15px auto;
        padding: 15px;
        border-radius: 4px;
    }
}


/**
 * Fade-move animation for second dialog
 */

/* at start */
.my-mfp-slide-bottom #popup {
  opacity: 0;
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;

  -webkit-transform: translateY(-20px) perspective( 600px ) rotateX( 10deg );
  -moz-transform: translateY(-20px) perspective( 600px ) rotateX( 10deg );
  -ms-transform: translateY(-20px) perspective( 600px ) rotateX( 10deg );
  -o-transform: translateY(-20px) perspective( 600px ) rotateX( 10deg );
  transform: translateY(-20px) perspective( 600px ) rotateX( 10deg );

}

/* animate in */
.my-mfp-slide-bottom.mfp-ready #popup {
  opacity: 1;
  -webkit-transform: translateY(0) perspective( 600px ) rotateX( 0 ); 
  -moz-transform: translateY(0) perspective( 600px ) rotateX( 0 ); 
  -ms-transform: translateY(0) perspective( 600px ) rotateX( 0 ); 
  -o-transform: translateY(0) perspective( 600px ) rotateX( 0 ); 
  transform: translateY(0) perspective( 600px ) rotateX( 0 ); 
}

/* animate out */
.my-mfp-slide-bottom.mfp-removing #popup {
  opacity: 0;

  -webkit-transform: translateY(-10px) perspective( 600px ) rotateX( 10deg ); 
  -moz-transform: translateY(-10px) perspective( 600px ) rotateX( 10deg ); 
  -ms-transform: translateY(-10px) perspective( 600px ) rotateX( 10deg ); 
  -o-transform: translateY(-10px) perspective( 600px ) rotateX( 10deg ); 
  transform: translateY(-10px) perspective( 600px ) rotateX( 10deg ); 
}

/* Dark overlay, start state */
.my-mfp-slide-bottom.mfp-bg {
  opacity: 0;

  -webkit-transition: opacity 0.3s ease-out; 
  -moz-transition: opacity 0.3s ease-out; 
  -o-transition: opacity 0.3s ease-out; 
  transition: opacity 0.3s ease-out;
}
/* animate in */
.my-mfp-slide-bottom.mfp-ready.mfp-bg {
  opacity: 0.8;
}
/* animate out */
.my-mfp-slide-bottom.mfp-removing.mfp-bg {
  opacity: 0;
}