
.portfolio-slideshow-wrap {
    position: relative;
    
    @media #{$screen-normal} {
        margin-bottom: 30px;
    }
    
    &.large-alt { 
        width: 100%; 
        margin-bottom: 30px; 
    }
    
    .portfolio-wrapper & {
        margin-bottom: 15px;
    }
}

.portfolio-wrapper.grid-layout .post-item.col-xs-6 { 
    @media #{$screen-small} {
        width: 100%; 
    }
}   

.portfolio-content {
    
    > div:last-child {
        margin-bottom: 0;
    }
    > div.last-child {
        margin-bottom: 0;
    }
    
    .entry-meta { 
        margin-top: 30px; 
        margin-bottom: 30px;

        .portfolio-cat-content {
            margin-top: 20px;
        }
    }
    
    &.large-alt .entry-meta {
        margin-top: 0;
        
        @media #{$screen-normal} {
            margin-top: 15px;
            
            .column1 & {
                margin-top: 0;
            }
        }
        
        @media #{$screen-medium} {
            margin-top: 30px;
            
            .column1 & {
                margin-top: 30px;
            }
        }
    }
}

.portfolio-page-content {
    .post-item { 
        padding-bottom: 50px; 
    }
    
    .post-image,
    .fit-video { 
        margin-bottom: 15px; 
        position: relative;
    }
}

.post-item {
    .post-image,
    .fit-video { 
        margin-bottom: 15px; 
        position: relative;
    }
}

.post-slideshow-wrap,
.portfolio-slideshow-wrap, 
.post-image,
.product-image {
    .figcaption {
        background: $bg_figcaption;
        height: 100%;
        width: 100%;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 100;
        @include transition($fig-transition);
        overflow: hidden;
        @include opacity(0);
        
        .zoom-button,
        .link-button {
            display: inline-block;
            width: 36px;
            height: 36px;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-left: -18px;
            margin-top: -18px;
            padding: 0;
            @include opacity(0);
            @include transition($fig-btn-transition);
            font-family: "FontAwesome"; 
            font-size: 20px;
            font-weight: bold;
            line-height: 34px; 
        }
    }
    
    &:hover .figcaption {
        @include opacity(1);
        
        .zoom-button,
        .link-button {
            @include opacity(1);
        }
        
        .link-button {
            margin-left: -46px;
        }
        
        .zoom-button {
            margin-left: 10px;
        }
    }
}

.product-image {
    .figcaption {
        background: transparent;
        display: none;

        .quickview-button {
            display: inline-block;
            width: 36px;
            height: 36px;
            border-radius: 2px !important;
            position: absolute;
            top: 0;
            right: 0;
            margin-left: 0;
            margin-top: 0;
            padding: 0;
            @include transition($fig-btn-transition);
            font-family: "FontAwesome";
            font-size: 20px;
            font-weight: bold;
            line-height: 34px;
            text-align: center;

            &.top-left {
                right: auto;
                left: 0;
            }

            &.bottom-left {
                right: auto;
                left: 0;
                top: auto;
                bottom: 0;
            }

            &.bottom-right {
                top: auto;
                bottom: 0;
            }
        }

        body.mobile &,
        &.no-hover,
        .products .product > .inner.hover & {
            @include opacity(1);

            .quickview-button {
                @include opacity(1);
            }
        }
    }

    &:hover .figcaption {
        .quickview-button {
            @include transition(all 0.3s ease 0s);
        }
    }
}

.post-slideshow-wrap,
.portfolio-slideshow-wrap {
    .figcaption {
        background: transparent;
        height: 66px;
        width: 112px;
        
        @media #{$screen-medium} {
            height: 42px;
            width: 74px;
            
            .zoom-button,
            .link-button {
                width: 26px;
                height: 26px;
                font-size: 15px;
                margin-left: -13px;
                margin-top: -13px;
                line-height: 24px;
            }
        }
    }
    
    &:hover .figcaption {
        .link-button {
            margin-left: -41px;
            
            @media #{$screen-medium} {
                margin-left: -29px;
            }
        }
        
        .zoom-button {
            margin-left: 5px;
            
            @media #{$screen-medium} {
                margin-left: 3px;
            }
        }
    }
    
    &.small-alt,
    &.grid,
    &.timeline {
        
        .figcaption {
            height: 42px;
            width: 74px;
            
            .zoom-button,
            .link-button {
                width: 26px;
                height: 26px;
                font-size: 15px;
                margin-left: -13px;
                margin-top: -13px;
                line-height: 24px;
            }
        }
        
        &:hover .figcaption {
            .link-button {
                margin-left: -29px;
            }
            
            .zoom-button {
                margin-left: 3px;
            }
        }
    }
    
    .single-post &,
    .single-portfolio & {
        .figcaption {
            width: 66px;
            @include opacity(1);

            @media #{$screen-medium} {
                width: 42px;
            }
            
            .zoom-button,
            .link-button {
                @include opacity(1);
            }
            
            .link-button {
                display: none;
            }
        }
    
        &:hover .figcaption {
            .zoom-button {
                margin-left: -18px;
                
                @media #{$screen-medium} {
                    margin-left: -13px;
                }
            }
        }
    }
}

.portfolio-filter, 
.faq-filter,
.product-tabs .nav-tabs {
    list-style: none; 
    margin: 0 0 30px; 
    padding: 0; 
    
    li {
        float: left; 
        margin: 0 3px 5px 0;
        
        a {
            font-weight: bold;
            padding: 6px 20px 5px;
            text-transform: uppercase; 
            border-radius: 0; 
            border-width: 0 !important;
        } 
    }
}

.portfolio-filter a,
.faq-filter a,
.product-tabs .nav-tabs li a {

    &:active,
    &.active {
        @include box-shadow(none);
    }
}

.product-tabs .nav-tabs li a {
    padding: 6px 32px 5px;

    @media #{$screen-large} {
        padding: 6px 26px 5px;
    }

    @media #{$screen-normal} {
        padding: 6px 20px 5px;
    }
}

.portfolio-title {
    font-size: 17px;
    font-weight: bold;
    margin: 0;
    line-height: 1.5;

    .portfolio-cat-content & {
        font-size: 27px;
        padding-left: 0 !important;
        margin-bottom: 20px !important;

        @media #{$screen-small} {
            font-size: 20px;
        }

        &:before {
            display: none;
        }
    }
}

.portfolio-cat-content {
    .portfolio {
        margin-bottom: 50px;

        @media #{$screen-small} {
            margin-bottom: 30px;
        }
    }
}

.portfolio-cats { 
    font-size: 13px; 
    font-weight: normal; 
    font-family: inherit; 
    margin: 0; 
    line-height: 1.5; 
}

.faq-wrapper {

    .post-item {
        background: transparent !important;
        @include box-shadow(none);
        border-radius: 0;
        border-width: 0;

        + .post-item {
            margin-top: 0;
            border-top-width: 0;
        }
    }

    .panel-heading { 
        position: relative; 
        border-radius: 0; 
        padding: 10px 0;
        background: transparent !important;
    }
    
    .panel-title { 
        font-size: 17px;
        font-weight: bold;
        line-height: 24px;
        background: transparent;
    }

    .panel-body { 
        padding: 15px 20px 25px;
        border-width: 0 !important;
        
        p:last-child {
            margin-bottom: 0;
        }
        p.last-child {
            margin-bottom: 0; 
        }
    }
    
    .panel-heading {
        a { 
            display: inline-block; 
        }

        .faq-icon {
            display: inline-block;
            width: 20px;
            height: 20px;
            line-height: 19px;
            text-align: center;
            margin-right: 8px;
        }
        
        .fa { 
            font-weight: bold;
            margin-left: 1px;
            
            &:before {
                content: "\f107";
            }
        }
    
        .collapsed .fa {
            margin-left: 2px;

            &:before {
                content: "\f105";
            }
        }
    }
}