/*-----------------------------------------------------------------------------------*/

/*    4.     portfolio_area Common CSS
/*-----------------------------------------------------------------------------------*/

.single_portfolio_img>img {
    width: 100%;
}

.gallery_items {
    clear: both;
}

.grid-item img {
    width: 100%;
}

.grid-item.back_dif figure {
    background: #999;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    -web-transition: 0.5s;
}

.grid-item.back_dif_1 figure {
    background: #d9d8d8;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    -web-transition: 0.5s;
}

.grid-item figure figcaption {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba( 239, 170, 21, 0.8);
    text-align: center;
    padding: 15px;
    opacity: 0;
}

.grid-item figure img {
    transform: scaleY(1);
}

.portfolio_table {
    width: 100%;
    height: 100%;
    display: table;
}

.portfolio_cell {
    height: 100%;
    display: table-cell;
    vertical-align: middle;
}

.grid-item figure figcaption h3 {
    font-size: 24px;
    color: #000;
    text-transform: uppercase;
}

.grid-item figure figcaption span {
    font-size: 12px;
    display: block;
    padding-top: 15px;
    color: #fff;
}

.portfoliio_footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    overflow: hidden;
}

.portfoliio_footer a {
    width: 50%;
    font-size: 20px;
    color: #fff;
}

.port_plus {
    float: left;
    text-align: left;
    padding: 15px;
}

.port_arrow {
    float: right;
    text-align: right;
    padding: 15px;
}

.grid-item figure figcaption h3,
.grid-item figure figcaption h3 span,
.grid-item figure .portfolio_table {
    opacity: 0;
    transform: scale(0);
}

.grid-item figure:hover figcaption {
    -webkit-transition: 1s ease-out;
    -moz-transition: 1s ease-out;
    -o-transition: 1s ease-out;
    transition: 1s ease-out;
    opacity: 1;
}

.grid-item figure:hover figcaption h3,
.grid-item figure:hover figcaption h3 span,
.grid-item figure:hover .portfolio_table {
    opacity: 1;
    transform: scale(1);
}

.grid-item figure .portfolio_table {
    -moz-transition: 0.5s ease-out;
    -o-transition: 0.5s ease-out;
    -web-transition: 0.5s ease-out;
}

/* this code is for portfolio menu */

.gallery_menu {
    text-align: right;
    padding-bottom: 40px;
    margin-left: -4px;
}

.gallery_menu .btn.btn-success,
.gallery_menu .btn.btn-raised.btn-success {
    background-color: transparent;
    color: #000;
}

.gallery_menu ul .btn {
    display: inline-block;
    text-transform: uppercase;
    font-size: 20px;
    border-color: transparent;
    padding: 0 5px;
    cursor: pointer;
    margin-left: 30px;
    border-radius: 0px;
}

.gallery_menu ul li.current_menu_item {
    border-bottom: 2px solid #d96a29 !important;
}

.gallery_menu .btn.btn-raised.btn-success:focus:not(.btn-link) {
    border-bottom: 2px solid #efaa15;
}

.gallery_menu .btn.btn-raised.btn-success:hover:not(.btn-link) {
    border-bottom: 2px solid #efaa15 !important;
    border-color: transparent;
}

.btn.active,
.btn:active {
    box-shadow: unset;
}

/* this code is for load more button */

.load_more_button {
    text-align: center;
    padding: 30px 0 0;
}

.load_more_button a.btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    line-height: 40px;
}

.load_more_button a.btn i {
    font-size: 20px;
    animation: spin 1s infinite;
}

@-webkit-keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.load_more_button .btn-success:hover,
.load_more_button .btn-success {
    border: none;
}

.load_more_button .btn.btn-success {
    background-color: #ff5252;
    color: #ffffff;
}

.load_more_button .btn.btn-raised.btn-success:hover:not(.btn-link),
.load_more_button .btn.btn-raised.btn-success:focus:not(.btn-link) {
    background-color: #d64141;
    color: #fff;
}

.grid-item.grid-item4 {
    width: 33.33333%;
}

#home-2 .gallery_items,
#home-4 .gallery_items {
    margin: 0 -7px;
}

#home-2 .grid-item,
#home-4 .grid-item {
    padding: 0 7px;
    padding-bottom: 15px;
}

#home-2 .container.portfolio_padding,
#home-4 .container.portfolio_padding {
    padding: 40px 40px 0 40px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .10);
    border-radius: 10px;
    background-color: #fff;
}

#home-2 .portfolio_area,
#home-4 .portfolio_area {
    position: relative;
    top: -80px;
}

#home-2 .load_more_button,
#home-4 .load_more_button {
    padding-bottom: 0;
    position: relative;
    top: 22px;
}

#home-4 .grid-item figure {
    border: 0;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .10);
}

#home-4 .grid-item figure figcaption h3 {
    position: relative;
}

#home-4 .grid-item figure figcaption h3:before {
    position: absolute;
    content: "";
    left: 50%;
    top: 58%;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    width: 36px;
    margin-left: -18px;
}

#home-4 .grid-item figure figcaption span {
    padding-top: 25px;
}

#home-5 .portfolio_area {
    background-color: #f2f2f2;
}

/*-----------------------------------------------------------------------------------*/

/*    5.     about_area CSS
      5.1    home-4 about_area Css.
      5.2    home-5 about_area Css.
/*-----------------------------------------------------------------------------------*/

.about_area .section_hadlines {
    padding-bottom: 0;
}

.about_content {
    position: relative;
    padding: 130px 0;
}

.about_content:before {
    position: absolute;
    content: "";
    width: 50%;
    height: 100%;
    background: url(../img/about_area_bg.jpg) no-repeat scroll center center / cover;
    left: 0;
    top: 0;
}

#home-4 .about_content:before {
    position: absolute;
    content: "";
    width: 50%;
    height: 100%;
    background: url(../img/about_area_bg.jpg) no-repeat scroll center center / cover;
    right: 0;
    top: 0;
}

.about_content article {
    font-weight: 300;
    padding-bottom: 30px;
}

#home-4 .about_content::before {
    right: 0 !important;
    left: auto;
}

#home-4 .section_hadlines h2 span {
    color: #ff5252;
}

#home-4 .about_area .btn.btn-raised.btn-success {
    background-color: #03a9f4;
}

#home-5 .about_content::before {
    display: none;
}

#home-5 .about_content {
    padding: 70px 0 0;
}

#home-5 .about_area .button_area {
    padding-top: 0;
    text-align: left;
}

#home-5 .about_left_content img {
    border: 7px solid #ffffff;
    box-shadow: 0 0 7px 0 rgba(0, 0, 0, .15);
}