/* Styles for Portfolio page */

@media (min-width: 300px) {
    #gallery-header,
    #gallery-header-bottom,
    #gallery-search {
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

@media (min-width: 576px) {
    #gallery-header,
    #gallery-header-bottom,
    #gallery-search {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

@media (min-width: 768px) {
    #gallery-header,
    #gallery-header-bottom,
    #gallery-search {
        margin-top: 15px;
        margin-bottom: 15px;
    }
}

@media (min-width: 992px) {
    #gallery-header,
    #gallery-header-bottom,
    #gallery-search {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

@media (min-width: 1200px) {
    #gallery-header,
    #gallery-header-bottom,
    #gallery-search {
        margin-top: 25px;
        margin-bottom: 25px;
    }
}

.grid-sizer {
    height: 0px;
}

.grid-item {
    margin-bottom: 30px;
    overflow: hidden;
}

@media (min-width: 300px) {
    .grid-item {
        margin-bottom: 15px;
        overflow: hidden;
    }
}

@media (min-width: 576px) {
    .grid-item {
        margin-bottom: 15px;
        overflow: hidden;
    }
}

@media (min-width: 768px) {
    .grid-item {
        margin-bottom: 15px;
        overflow: hidden;
    }
}

@media (min-width: 992px) {
    .grid-item {
        margin-bottom: 20px;
        overflow: hidden;
    }
}

@media (min-width: 1200px) {
    .grid-item {
        margin-bottom: 25px;
        overflow: hidden;
    }
}

.grid-item a {
    color: #fff;
    text-decoration: none;
}

.grid-item img {
    width: 100%;
    height: auto;
    opacity: 1;
    -moz-transform: scale(1, 1)rotate(0deg);
    -webkit-transform: scale(1, 1)rotate(0deg);
    -ms-transform: scale(1, 1)rotate(0deg);
    transform: scale(1, 1)rotate(0deg);
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    -ms-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
}

.grid-item:hover img {
    opacity: 0.3;
    -moz-transform: scale(1.5, 1.5)rotate(-5deg);
    -webkit-transform: scale(1.5, 1.5)rotate(-5deg);
    -ms-transform: scale(1.5, 1.5)rotate(-5deg);
    transform: scale(1.5, 1.5)rotate(-5deg);
}

.grid-item .mask {
    position: absolute;
    align-items: center;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    opacity: 0;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -ms-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

.grid-item:hover .mask {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
}

.grid-item .info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    opacity: 0;
    -moz-transform: scale(0, 0);
    -webkit-transform: scale(0, 0);
    -ms-transform: scale(0, 0);
    transform: scale(0, 0);
    -webkit-transition: -webkit-transform 0.2s 0.1s ease-in, opacity 0.1s ease-in-out;
    -moz-transition: -moz-transform 0.2s 0.1s ease-in, opacity 0.1s ease-in-out;
    -ms-transition: -ms-transform 0.2s 0.1s ease-in, opacity 0.1s ease-in-out;
    transition: transform 0.2s 0.1s ease-in, opacity 0.1s ease-in-out;
}

.grid-item:hover .info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    /*padding-top: 30%;*/
    opacity: 1;
    -moz-transform: scale(1, 1);
    -webkit-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    transform: scale(1, 1);
    -moz-transition-delay: 0.3s;
    -webkit-transition-delay: 0.3s;
    -ms-transition-delay: 0.3s;
    transition-delay: 0.3s;
}

.grid-item .info h6 {
    font-weight: 600;
}

@media(min-width: 300px) and (max-width: 576px) {
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12 {
        padding-right: 7px;
        padding-left: 7px;
    }
}