/*************************************************************/
/***********************  Version 15.0  **********************/
/*************************************************************/

#modal-background {
    height: calc(100% + 72px); /* 72 = navbar (100) - footer (28)*/
}

html, body {
    height: 100%;
}

#tile-progress {
    position: fixed;
    z-index: 7;
    top: 50%;
    left: 50%;
    display: none;
    width: 300px;
    height: 76px;
    margin: -60px 0 0 -165px;
    padding: 10px 15px;
    color: rgba(20,34,111,0.8);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;text-align:center;
    background: rgba(247,247,247,0.95);
    border: 1px solid #999;
    box-shadow: 0 1px 7px #a9a9a9, inset 0 1px 0 #fff;
}

#myProgress {
    position: relative;
    width: 100%;
    height: 16px;
    border-radius: 7px;
    background-color: #ddd;
    -moz-box-shadow: inset 0 0 6px #666666;
    -webkit-box-shadow: inset 0 0 6px #666666;
    box-shadow: inset 0 0 6px #666666;
}

#myBar {
    position: absolute;
    width: 4%;
    height: 100%;
    border-radius: 7px;
}

section {
    width: 100%;
}

.index-container {
    width: 100%;
    text-align: center;
    padding-top: 7px;
    padding-bottom: 34px;
    margin-bottom: 30px;
    box-shadow: 0 0 40px 0px rgba(0,0,0,0.1);
}

.index-container a, .index-container a:visited{
    color: #7f7e7e;
}

.tile-header {
    position: relative;
    font-family: "Quicksand Reg",sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 25px 10px 20px 10px;
    color: #14226f;
}

.tile-group {
    position: relative;
    max-width: 100%;
    margin-bottom: 22px;
    padding: 0 4px 4px 4px;
    text-align: center;
    box-shadow: 0 0 50px 0px rgba(0,0,0,0.1);
    background: #f7f7f7;
}

.tile-header h1 {
    font-weight: 100;
    font-size: 22px;
    margin: 0;
    /*margin: 27px 10px 30px 10px;*/
    padding: 0 4px;
}

.tile-header h2 {
    font-size: 16px;
    /*
    margin-top: -26px;
    margin-bottom: 16px;
    */
    margin: 5px;
    font-weight: normal;
    padding: 0 4px;
}

h1.wedding {
    margin: 0 0 20px; 0;
    padding: 5px 0 0 0;
    font-family: 'Wedding Font', cursive;
    font-size: 65px;
    font-weight: normal;
}

h1.birthday {
    margin: 0;
    padding: 10px 0 5px 0;
    font-family: 'Birthday', cursive;
    font-size: 40px;
    font-weight: normal;
}

h2.wedding {
    margin: 0;
    padding: 0 0 10px 0;
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 20px;
    font-weight: normal;
}

h2.birthday {
    margin: 0;
    padding: 0 0 5px 0;
    font-family: 'Birthday', sans-serif;
    font-size: 18px;
    font-weight: normal;
}

.total-download {
    display: inline-block;
    position: absolute;
    top: 9px;
    right: 5px;
    font-size: 13px;
}

.total-download span, .total-download div {
    cursor: pointer;
}

.total-download span {
    margin-right: 3px;
}

.flex-images {
    overflow: hidden;
}

.item {
    float: left;
    margin: 2px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.item img {
    display: block;
    width: auto;
    height: 100%;
    cursor: pointer;
}

.info-icon {
    position: absolute;
    top: 5px;
    left: 1px;
    display: inline-block;
    font-family: "Times New Roman", Times, serif;
    font-size: 20px;
    color: #555;
    cursor:pointer;
    font-style: italic;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 0px 9px;
}

.image-description {
    position: absolute;
    width: calc(100% - 14px);
    bottom: 0px;
    background: rgba(170, 170, 170, 0.55);
    padding: 5px 7px;
    text-align:left;
    font-size: 14px;
    color: #ddd;
    font-weight: bold;
}

.hide-image-description {
    display: none;
}

.instruction-image, #dnall, #dnm, #dnl {
    display: inline-block;
    width: 21px;
    height: 14px;
    vertical-align: bottom;
}

#dnm, #dnall {
    background: url(images/icon-sprite-sheet.png) -80px -68px;
}

#dnl {
    background: url(images/icon-sprite-sheet.png) -20px -68px;
}

#gallery-pane {
    position: fixed;
    padding: 0px;
    z-index: 1;
    opacity: 0;
    top: 50%;
    left: 50%;
}

.med-image {
    position: absolute;
    opacity: 0;
}

.help-paragraphs {
    text-align: left;
    line-height: 1.3;
}

#dnm, #dnl {
    margin-bottom: 3px;
}

#contact-me {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.stack {
    background: #fff;
    display: inline-block;
    max-width: 558px;
    width: 29%;
    height: auto;
    margin: 48px 17px 0px 17px;
    padding: 6px 6px 0 6px;
    background: white;
    cursor: pointer;
    box-sizing: border-box;
    vertical-align: top;
    text-align: center;
    box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.15),0 -14px 0 -7px #f9f9f9,0 -14px 1px -6px rgba(0,0,0,0.15),0 -28px 0 -14px #f9f9f9,0 -28px 1px -13px rgba(0,0,0,0.15),0 -42px 0 -21px #f9f9f9,0 -42px 1px -20px rgba(0,0,0,0.15);
}

.stack img {
    width: 100%;
    height: auto;
}

.stack h2 {
    font-family: "Quicksand Light", sans-serif;
    font-size: 16px;
    font-weight: 100;
    color: #000;
    margin: 4px 3px 8px 3px;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: solid #14226f 1px;
}


/********* MEDIA QUERIES *********/

@media screen and (max-width: 902px) {
    .stack {
        width: 45%;
    }
}

@media screen and (max-width: 770px) {
    .stack {
        width: 44%;
        margin-left: 10px;
        margin-right: 10px;
        }
    }

@media screen and (max-width: 619px) {
    #wrapper {
        padding: 15px 0 23px 0;
    }

    #content-index, #content-main {
        margin-top: -14px;
        margin-bottom: 5px;
        box-shadow: none;
    }

    .index-container {
        margin-top: 0px;
        margin-bottom: 0px;
        padding-top: 0px;
        padding-bottom: 10px;
        box-shadow: none;
    }

    .tile-group {
        box-shadow: none;
        padding: 0 0px 0 0;
        margin: 0 0 8px 0;
    }

    .tile-header {
        padding: 0px 10px 10px 10px;

    }

    .tile-header h1 {
        font-size: 19px;
        margin: 0;
    }

    .tile-header h2 {
        font-size: 14px;
        margin: 5px;
    }


    h1.wedding {
        font-size: 50px;
    }

    h1.birthday {
        font-size: 29px;
    }

    h2.wedding {
        font-size: 18px;
    }

    #dl-all-med {
        display: none;
    }

    .item {
        margin: 2px 0 2px 4px;
    }

    .stack {
        max-width: 100%;
        width: 92%;
        margin: 32px 0px 18px 0px;
    }
}

@media screen and (max-height: 620px) {
    #help-form-wrapper {
        height: calc(100% + 30px);overflow-y:scroll;
    }
}
