div.gallery-cover {

    border: 6px solid #fff;
    width: 100%;
    height: auto;
    position: relative;
    left: 0;
    /*margin-left: auto;*/
    /*margin-right:auto;*/
    /*-webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.3);*/
    /*-moz-box-shadow: 2px 2px 5px rgba(0,0,0,0.3);*/
    /*box-shadow: 2px 2px 5px rgba(0,0,0,0.3);*/


    /*position : absolute;*/
    text-shadow: 1px 1px 2px rgba(255,255,255,0);

}

div.gallery-cover.large {
    width: 140%;
    left: -20%;
}

div.gallery-cover.small {
    float: right;
    width: 50%;
    left: 0%;
}

@media screen and (max-width: 640px) {
    div.gallery-cover {
        width: 100% !important;
        display: block;
        float: none !important;
    }
}

div.gallery-cover img {
    width: 100%;
    height: auto;
    opacity: .6;
    transition : opacity 0.5s ease-in, text-shadow 0.5s ease-in;
}

div.gallery-cover:hover img {

    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    transition:color .5s, opacity .5s;
}
div.gallery-cover:hover h2 {
    /*background : rgba(255,255,255,0);*/
    text-shadow: 1px 1px 2px rgba(255,255,255,0.9);
    transition : background-color 0.3s ease-out, text-shadow 0.3s ease-out;
}

.tome-gallery-modal .viewer-inner p { margin: 0; }


div[class*='stack'] {
    float: right;
    /*position: relative;*/
    /*margin: 75px;*/
}

div[class*='stack']  .facecard {
    z-index: 3;
    position: absolute;
    background-color:  #deebf4  ;
}

div[class*='stack'] .facecard, div[class*='stack']:before, div[class*='stack']:after {
    border: 6px solid #fff;
    height: 600px;
    width: 600px;
    -webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    -moz-box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

div[class*='stack']:before, div[class*='stack']:after {
    /*background: #deebf4;*/
    content: "";
    position: absolute;
    z-index: 1;

    /*Dirty IE8 hack*/
    height: 0px\9; width: 0px\9;
    border: none\9;
}

div[class*='stack']:before {
    background: #768590;
}

div[class*='stack']:after {
    background: #eff4de;
}

/*BANNER*/

div.gallery-cover h2 {
    /*text-shadow: 0px 0px 150px black, 2px 2px 30px #999;*/
    /*background-color: rgba(0, 0, 0, 0.5);*/
    font-weight: bold;
    background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/44303/galleryicon-01.svg);
    background-position: 30px;
    background-size: 32px;
    background-repeat: no-repeat;
    padding: 20px 80px;
    z-index: 20;
    transition:color .5s, background-color .25s;
    position: absolute;
    top: 0;
    width: 100%;
    color: #1d1e1e;
    font-size:1.5em;
    transition : background-color 0.5s ease-in, text-shadow 0.5s ease-in;
    /*position : absolute;*/
    text-shadow: 1px 1px 2px rgba(255,255,255,0);
}

