/*************************************************************/
/***********************  Version 15.4  **********************/
/*************************************************************/

/**** Stickies ****/

.front-sticky {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: -1;
}

.stickyaddto-body {
    height: 100%;
    z-index: -1;
}

.stickyaddto-front-sticky {
    min-height: calc(100% - 98px);
    position: relative;
    padding-top: 15px;
    padding-bottom: 23px;
}

.stickyaddto-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}


/**** Photo section ****/

#panel {
    position: relative;
    background-size: cover;
    display: flex;
    justify-content: center;
    visibility:hidden;
}

#section-photos {
    position: relative;
    background:none;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-content: center;
    opacity: 0;
    visibility: hidden;
    min-width: 700px;
}

.gallery-thumb {
    position: relative;
    flex-basis: 45%;
    margin: 2%;
    padding: 6px 6px 0 6px;
    background: #f7f7f7;
    text-align: center;
    box-shadow: 2px 2px 5px rgba(51,51,51,0.4);
    box-sizing: border-box;
    max-width: 441px;
    cursor: pointer;
}

.gallery-thumb img {
    max-width: 100%;
}

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

.gallery-thumb > img:first-child {
    width: 100%;
}

.standby-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    height: calc(100% - 34px);
    width: auto;
}

#gallery-pane {
    position: absolute;
    box-sizing: border-box;
    padding: 6px;
}

#gallery-pane > h2 {
    display: none;
}

#gallery-pane > img {
    display: block;
    box-sizing: border-box;
    box-shadow: 3px 3px 4px rgba(51,51,51,0.5);
    padding: 0;
}

#gallery-pane > img:first-child {
    width: 100%;
}

#m-gallery-pane {
    position: relative;
    box-sizing: border-box;
    top: 0;
    left: 0;
    padding: 0 3px 3px 3px;
    max-width: 635px;
    margin: 100px auto 20px auto;
    box-shadow: 0 0 40px 0px rgb(0 0 0 / 10%);
}

#m-gallery-pane > h2 {
    display: none;
}

#m-gallery-pane>img {
    display:block;
    width:100%;
    padding:3px 0px 0 0px;
}


/**** Media queries ****/

@media (max-height: 850px) {
    .gallery-thumb {
        margin: 13px;
    }
}

@media (max-width: 619px), (max-height: 808px) {
    .section-photos {
        align-items:start;
    }
}

@media screen and (max-width: 729px) {
    #section-photos {
        min-width: 0px;
    }

    .gallery-thumb {
        margin: 10px;
    }

    #m-gallery-pane {
        margin-top: 60px;
        box-shadow: none;
    }
}

@media (max-width: 619px) {
    #section-photos {
        margin-bottom: 10px;
        padding: 0;
    }

    .gallery-thumb {
        flex-basis: 100%;
        max-width: 100%;
        margin: 10px 20px;
        box-shadow: 0 0 15px 1px rgba(0,0,0,0.15);
    }

    #m-gallery-pane {
        margin-top: 0;
        margin-bottom: 0;
    }
}
