/**
 * CSS for SimplePics gallery
 *
 * Created 23 Nov 2011
 * Updated 06 Apr 2023
 *
 * Last update: remove margin from figure in slideshow
 *
 * @author Allan A Beattie
 */

/* album display
------------------------------------------------------------ */

/* SimpleCMS list bullets over-ride */
#main_content ul li {
    padding-left: 0;
    background: none;
}

#main_content ul li a:hover {
    border-bottom: 0;
}

.album_container ul {
    margin: 1em 0;
    padding: 0;
    list-style: none;
}

.album_container li {
    position: relative;
    margin: 0 0 1em;
}

.album_container a {
    position: relative;
    display: block;
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 4em 0 0 4em;
    background-color: #f1f1f1;
    text-decoration: none;
    color: #444;
    transition-property: box-shadow, transform;
    transition-duration: 0.3s;
}

.album_container a:hover,
.album_container a:focus {
    border-bottom: 0;
    box-shadow: 1px 5px 7px 0 rgba(0, 0, 0, 0.47);
    color: rgb(74, 80, 87);
}

.album_image {
    float: left;
    width: 5.5em;
    height: 5.5em;
    border-radius: 50%;
    background-position: center center;
}

.album_container h2 {
    margin: 0 0 1em 7em;
    font-size: 0.9em;
}

.album_container i {
    position: absolute;
    bottom: 0.8em;
    right: 1em;
}


/* album display
------------------------------------------------------------ */

.gallery_container {
    display: inline;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    margin-top: 1em;
    padding: 0;
    list-style: none;
}

.gallery_container li {
    display: inline-block;
    width: 50%;
    margin-bottom: 1em;
    text-align: center;
}

.gallery_container li:nth-child(2n+1) {
    clear: left;
}

.gallery_container a.lightbox,
.gallery_container a.lightbox:hover {
    display: inline-block;
    border-bottom: 0;
}

.gallery_container img {
    display: block;
    box-shadow: 0 0.2em 0.3em rgba(50, 50, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery_container a.lightbox:hover img {
    transform: scale(110%);
    box-shadow: 0 0.2em 0.4em -0.2em rgba(50, 50, 0, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature_more {
    text-align: center;
}


/* slideshow overrides
------------------------------------------------------------ */

.gallery_area figure {
    margin: 0;
}


/* responsive
------------------------------------------------------------ */

@media screen and (min-width: 640px) {
    .album_container li {
        float: left;
        width: 49%;
        margin: 0 2% 1em 0;
    }

    .album_container li:nth-child(2n) {
        margin-right: 0;
    }

    .album_container li:nth-child(2n+1) {
        clear: left;
    }
}


@media screen and (min-width: 700px) {
    .gallery_container li {
        width: 33%;
    }

    .gallery_container li:nth-child(2n+1) {
        clear: none;
    }

    .gallery_container li:nth-child(3n+1) {
        clear: left;
    }
}
