/* :: 15.0 Gallery CSS */

.alime-portfolio-area {
    position: relative;
    z-index: 1;

    .container-fluid {
        padding-right: 10%;
        padding-left: 10%;
        
        @media #{$breakpoint-lg} {
            padding-right: 5%;
            padding-left: 5%;
        }
        
        @media #{$breakpoint-md} {
            padding-right: 5%;
            padding-left: 5%;
        }
        
        @media #{$breakpoint-xs} {
            padding-right: 5%;
            padding-left: 5%;
        }
    }
}

.alime-projects-menu {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;

    .portfolio-menu .btn {
        position: relative;
        z-index: 1;
        padding: 0;
        border: 0;
        background-color: transparent;
        font-size: 20px;
        font-weight: 600;
        border-radius: 0;
        margin: 0 25px;
        @include transition-duration(500ms);
        
        @media #{$breakpoint-xs} {
            font-size: 14px;
            margin: 0 5px;
        }

        &::after {
            @include transition-duration(500ms);
            position: absolute;
            width: 0%;
            height: 3px;
            background-color: $primary;
            content: '';
            bottom: -5px;
            left: 0;
            right: 0;
            z-index: 1;
        }

        &.active {
            &::after {
                width: 100%;
            }
        }
    }
}

.single-portfolio-content {
    position: relative;
    z-index: 1;
    @include transition-duration(500ms);
    overflow: hidden;

    img {
        width: 100%;
        @include transition-duration(500ms);
    }

    .hover-content {
        @include transition-duration(500ms);
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        z-index: 10;

        a {
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: 0;
            margin-left: -26px;
            z-index: 100;
            display: inline-block;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background-color: $primary;
            text-align: center;
            line-height: 52px;
            font-size: 30px;
            color: $white;

            &:hover,
            &:focus {
                background-color: $dark;
            }
        }
    }

    &:hover,
    &:focus {
        img {
            @include transform(scale(1.2));
        }

        .hover-content {
            opacity: 1;
            visibility: visible;

            a {
                margin-top: -26px;
            }
        }
    }
}