.gallery-box {
    width: 100%;
    padding: 1rem;
    height: auto;
}

@media (min-width: 1200px) {

    .gallery-box {
        width: 100%;
        margin: auto;
    }
}

.gallery-box .waterfall {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
}


.pin a {
    padding: 10px;
    background: #ffffff;
    width: 100%;
    height: 100%;
    display: block;
    box-shadow: 0px 1px 5px #d4d4d4;
}

.pin {
    width: 33%;
    height: 20rem;
    padding: 1rem;
}

.pin a span {
    width: 100%;
    height: 100%;
    display: block;
    background-size: cover !important;
    background-position: center center !important;
}


@media (min-width: 1200px) {
    .pin {
        height: 25rem;
    }

}

@media (max-width: 600px) {
    .pin {
        width: 100%;
        height: 25rem;
        padding: 1rem 0;
    }
}

.img-box {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    display: none;
    top: 0;
    overflow: hidden;
    padding: 20px 0;
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.67);
}

.img-box-in img {
    width: 100%;
}

.img-box-in-close-bar {

    text-align: right;
}

.img-box-in-sou {
    max-width:800px;

    height: 90%;
    margin: auto;

}

.img-box-in {
    border-radius: 10px;
    text-align: center;
    height: 100%;
    overflow: scroll;
    margin: auto;
    background-color: white;
    padding : 20px;
}

.slide_out_area_close-img {
    top: -20px;
    right: -20px;
}

@media (max-width: 992px) {
    .img-box-in-sou {
        width: 90%;
        height: 80%;
        margin: auto;
    }

    .img-box-in {
        border-radius: 10px;
        text-align: center;
        height: 80%;
        overflow: scroll;
        margin: auto;

        padding-bottom: 30px;
    }
}
