/* contents */

.gallery_box {
    width: 90%;
    margin: 135px auto 0;
}

.gallery_box:after {
    content:"";
    display:block;
    clear:both;
}

.gallery_img {
    float: left;
    width: 50%;
    padding: 0 15px 30px 15px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
} 

.img_overlay {
    margin: 0 15px;
    background: rgba(255,255,255,0.7);
    position: absolute;
    width: calc(100% - 30px);
    height: calc(100% - 33px);
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -moz-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
}
.gallery_img:hover .img_overlay {
    opacity: 1;
}

.gallery_img_txt {
    position: absolute;
    text-align: center;
    padding-left: 1em;
    padding-right: 1em;
    width: 100%;
    top: 50%;
    left: 50%;
    opacity: 0;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;    
}
.gallery_img:hover .gallery_img_txt {
    top: 47%;
    left: 50%;
    opacity: 1;
}
.gallery_img_txt h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    color: #333;
    font-weight: 500;
}


img {
    width: 100%;
}

.btn_more {
    font-family: 'Montserrat', sans-serif;
    margin-top: 50px;
    margin-bottom: 70px;
    margin-left: calc(50% - 106px);
    font-size: 18px;
}
.btn_more a {
    display: block;
    width: 212px;
    height: 50px;
    background-color: #fff;
    border: 1px solid #333;
    text-align: center;
    line-height: 50px;
    font-weight: 700;
}

.gallery_box .gallery_img:not(.on) {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 135px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}
.modal img {
    display: block; 
    margin: 0 auto;
    padding-bottom: 270px;
    width: auto;
}

/* .close {
    position: fixed;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
*/

.close {
    position: fixed;
    top: 80px;
    right: 35px;
    transition: 0.3s;
}
.close .line{
    width: 30px;
    height: 3px;
    background-color: #f1f1f1;
    display: block;
    margin: 5px 17px 0 0;
}

.close:hover{
    text-decoration: none;
    cursor: pointer;
}

#close-1 .line:nth-child(1){
    -webkit-transform: translateY(4px) rotate(45deg);
    -ms-transform: translateY(4px) rotate(45deg);
    -o-transform: translateY(4px) rotate(45deg);
    transform: translateY(4px) rotate(45deg);
}

#close-1 .line:nth-child(2){
    -webkit-transform: translateY(-4px) rotate(-45deg);
    -ms-transform: translateY(-4px) rotate(-45deg);
    -o-transform: translateY(-4px) rotate(-45deg);
    transform: translateY(-4px) rotate(-45deg);
}

























