.gallery
{
    overflow:hidden;
}


/* ---------------------- for images ---------------------- */
.gridBox
{
    float:left;
    width:20%;
    padding-bottom:20%;
    position:relative;
}

#blank
{
	text-align:center;
    width:100%;
	margin-top: 24%;
    margin-left: 6%;
    position:relative;
	font-size:25px;
}

.gridContent
{
    position:absolute;
    left: 1px;
    right: 1px;
    top: 1px;
    bottom: 1px;
    
    overflow: hidden;
}

.gridContent img
{
    width:100%;
    height:100%;
}

.gridContent .gridTitle
{

    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: -50px; 
    background: #000;
    background: rgba(0, 0, 0, 0.5);
    color: #FFF;
    padding: 10px;
    text-align: center;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

.gridNoTouch .gridContent:hover .gridTitle, .gridTouch .gridTitle {
    margin-bottom: 0;
}

/* ---------------------- for images ---------------------- */


/* ---------------------- for albums ---------------------- */

.albumGallery
{
    overflow:hidden;
}

.albumBox
{
    float:left;
    width:250px;
    margin:50px;
    position:relative;
    border:1px solid #000;
}

.albumContent
{
    position:relative;
    width:100%;
    overflow: hidden;
}

.albumContent img
{
    width:100%;
}

.albumContent .albumTitle
{
    position:relative;
    padding:5%;

}

/* ---------------------- for albums ---------------------- */

@media only screen and (max-width : 480px) {
    /* Smartphone view: 1 tile */
    .gridBox {
        width: 100%;
        padding-bottom: 100%;
    }

    .albumBox
    {
        float:left;
        width:98%;
        position:relative;
    }
}
@media only screen and (max-width : 650px) and (min-width : 481px) {
    /* Tablet view: 2 tiles */
    .gridBox {
        width: 50%;
        padding-bottom: 50%;
    }
    .albumBox
    {

        width:48%;

    }
}
@media only screen and (max-width : 1050px) and (min-width : 651px) {
    /* Small desktop / ipad view: 3 tiles */
    .gridBox {
        width: 33.3%;
        padding-bottom: 33.3%;
    }

    .albumBox
    {

        width:31.3%;

    }
}
@media only screen and (max-width : 1290px) and (min-width : 1051px) {
    /* Medium desktop: 4 tiles */
    .gridBox {
        width: 25%;
        padding-bottom: 25%;
    }
    .albumBox
    {

        width:23%;

    }
}