

/* --- Gallery / Albums / Photos  ---------------------------------------------------------------- */
.gallery-image-thumb {
    /*width: 150px;
    height: 150px;*/
}
/***************************
    Gallery - List all albums
    ***************************/
.gallery-container {
    clear: both;
    margin-top: 10px;
}
    /* smaller default gutter */
    .gallery-container .row {
        padding-left: 7px;
        padding-right: 7px;
    }

    .gallery-container .col {
        padding-left: 7px;
        padding-right: 7px;
    }

    .gallery-container .gallery-album {
        border-radius: 4px;
        border: 1px solid #ddd;
        overflow: hidden;
        margin-bottom: 14px;
        padding: 0;
    }

        .gallery-container .gallery-album figure {
            height: 150px;
            overflow: hidden;
            background: #eee;
            text-align: center;
        }

            .gallery-container .gallery-album figure a {
                width: 100%;
                height: 100%;
                display: block;
            }

        .gallery-container .gallery-album img {
            min-height: 100%;
            width: 100%;
        }

        .gallery-container .gallery-album:hover img {
            opacity: 0.9
        }

    .gallery-container .gallery-album-details {
        padding: 10px;
    }

        .gallery-container .gallery-album-details a {
            font-size: 14px;
            font-weight: bold;
            white-space: nowrap;
            text-overflow: ellipsis;
            width: 90%;
            overflow: hidden;
            display: block;
        }

        .gallery-container .gallery-album-details span {
            margin: 0 5px;
        }

    .gallery-container .admin {
        border-top: 1px solid #eee;
    }

        .gallery-container .admin .btn {
            border: 0;
        }

            .gallery-container .admin .btn:first-child {
                border-right: 1px solid #eee;
            }


/******************************
    Album - list thumbnails in an album
*******************************/
/*Ny settings-bar*/

.album {
    display: grid;
    grid-template-columns: 33.3% 33.3% 33.3%;
    grid-gap: 1px;
    margin-top: 10px;
}

.album-image {
    text-align: right;
    background: #eee;
}


    .album-image img {
        width: 100%;
    }

    .album-image a.album-image-link:hover {
        opacity: 0.8;
    }


    .album-image .settings {
        position: absolute;
        border-radius: 0 0 0 4px;
        width: 33.3%;
        z-index: 2;
    }

        .album-image .settings a {
            text-align: center;
            display: inline-block;
            padding: 7px 6px;
            background: rgba(255,255,255,0.85);
        }

            .album-image .settings a:first-child {
                padding-left: 10px;
                border-radius: 0 0 0 4px;
            }

            .album-image .settings a:last-child {
                padding-right: 10px;
            }

        .album-image .settings a:hover {
            background: rgba(255,255,255,0.95);
        }


/* Album - thumbnail view smaller devices */
@media (max-width: 888px) {
    .gallery-container {
        margin-top: 10px;
    }

        .gallery-container .col {
            padding-left: 5px;
            padding-right: 5px;
        }

        .gallery-container .gallery-album figure {
            height: 110px;
        }


    .album {
        grid-template-columns: 33.3% 33.3% 33.3%;
        margin-left: -15px;
        margin-right: -15px;
    }

    .album-image .settings a {
        padding: 5px 6px;
    }

}

/******************************
    Photo - Show photo in album
*******************************/
.photo-container {
    position: relative;
    min-height: 100px;
    background: #eee;
    margin-top:5px;
}

/* Tags*/
#pictag_box {
    z-index: 3;
}

#pictag_done {
    position: absolute;
    bottom: 0;
    margin: 0 !important;
    border: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #333;
    font-size: 85%;
    text-align: center;
}

/* Next / Previous buttons inside image */
.photo-container .photo-navigate {
    display: none;
}

#album-navigation .next-prev {
    display: block;
}



@media (max-width: 888px) {
    /* Remove gutter so image can be fullwidth.*/
    .photo-container {
        margin-right: -15px;
        margin-left: -15px;
    }


    /* Change tag-square size for smaller devices.*/
    .pictag .square_box {
        width: 50px;
        height: 50px;
        background: 0;
        border: 3px solid #fff;
        box-shadow: 0 0 1px 1px #000;
    }

    /* Next / Previous buttons inside image */
    #album-navigation .next-prev {
        display: none;
    }

    .photo-container .photo-navigate {
        z-index: 888;
        display: block;
    }

        .photo-container .photo-navigate a {
            display: inline-block;
            background: rgba(0,0,0,0.6);
            border-radius: 50%;
            width: 38px;
            height: 38px;
            line-height: 38px;
            text-align: center;
            color: #fff;
            position: absolute;
            top: 50%;
            margin: -20px 10px 0;
            z-index: 2;
        }

            .photo-container .photo-navigate a.photo-next {
                text-indent: 1px;
                right: 0;
            }

            .photo-container .photo-navigate a.photo-prev {
                text-indent: -1px;
            }
}
