/************************/
/*     12. Projects     */
/************************/
.filter {
    padding-top: 6.5rem;
    padding-bottom: 7rem;
}

.filter .section-title {
    margin-bottom: 0.5rem;
}

.filter h2,
.filter .section-title {
    text-align: center;
}

.filter h2 {
    margin-bottom: 3.25rem;
}

.filter .button-group {
    text-align: center;
}

.filter .button-group a {
    display: inline-block;
    margin-right: 0.1875rem;
    margin-bottom: 0.5rem;
    margin-left: 0.1875rem;
    padding: 0.3125rem 1.375rem 0.25rem 1.375rem;
    border-radius: 0.25rem;
    background-color: #f1f4f7;
    color: #7b7e85;
    font: 700 0.75rem/1.25rem "Montserrat", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter .button-group a:hover {
    background-color: #fed136;
    color: #fff;
    text-decoration: none;
}

.filter .button-group a.button.is-checked {
    background-color: #fed136;
    color: #fff;
}

.filter .grid {
    margin-top: 1.25rem;
    border-radius: 0.375rem;
}

/* Hover Animation */
.filter .grid-item {
    position: relative;
    float: left;
    overflow: hidden;
    width: 25%;
    background-color: #fff; /* to hide 1px white margin in IE */
}

/* Max-width width 768px */
@media (max-width: 768px) {
    .filter .grid-item {
        position: relative;
        float: left;
        overflow: hidden;
        width: 50%; /*  to change to 50 if more images*/ 
        background-color: #fff; /* to hide 1px white margin in IE */
    }
}


.filter .grid-item img {
    max-width: 100%;/* change back to 100 when more album*/
    margin: 0;
    transition: all 0.3s;
    padding:5px;
}

.filter .grid-item:hover img {
    -moz-transform: scale(1.02);
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
} 
/* end of hover animation */

.filter .grid-item .grid-item-overlay { 
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.4);
    opacity: 1;*/
    text-align: center;
    transition: all 0.3s;
}

.filter .grid-item .grid-item-overlay span { 
    position: absolute;
    z-index: 3;
    top: 42%;
    right: 0;
    left: 0;
    color: #fff;
    font: 700 1.125rem/1.625rem "Montserrat", sans-serif;
}
/* Max-width width 768px */
@media (max-width: 768px) {
    .filter .grid-item .grid-item-overlay span {
        font-size: small;
        font-weight: 600;
    }
}



     

.project-modal .modal-dialog-centered 
{
    min-width: 100%;      
}

/* Min-width width 768px */
@media (min-width: 768px) {
  .project-modal .modal-dialog-centered 
    {
        min-width: 0;      
    }
}


.project-modal .modal-dialog {
    width: 800px;
    height: 800px;
    min-height: 400px;    
}

.project-modal img {
    max-height: 100%;
    max-width: 100%;
}