.custom-portfolio {

}

.c-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.c-col {
    width: 50%;
    padding: 16px;
    flex: 0 0 50%;
    cursor: pointer;


}

.c-col img {
    width: 600px;
    height: 450px;
    transition: .3s ease-in-out;
}

.p-image {
    overflow: hidden;
    position: relative;
}

.c-col:hover img {
    transform: scale(1.1);
}


.c-text-hide {
    background: rgba(1, 22, 39, .7);
    opacity: 0;
    transition: .3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.c-col:hover .c-text-hide {
    opacity: 1;
}

.c-hide-content {
    font-size: 16px;
    color: #ffffff;
}

.c-hide-title {
    font-size: 24px;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 12px;
}

#image-viewer {
    display: none;
    opacity: 0;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .7);
    top: 0;
    left: 0;
    z-index: 1000;
    transition: .5s ease-in-out;
}

#image-viewer.active {
    display: block;
    opacity: 1;
}

#image-viewer-image {
    width: 50%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.next {
    display: block;
    position: absolute;
    width: 36px;
    height: 36px;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) rotateZ(45deg);
    cursor: pointer;
}

.prev {
    display: block;
    position: absolute;
    width: 36px;
    height: 36px;
    border-bottom: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    left: 24px;
    top: 50%;
    transform: translateY(-50%) rotateZ(45deg);
    cursor: pointer;
}

.exit {
    display: block;
    width: 42px;
    height: 42px;
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
}

.exit:before, .exit:after {
    content: '';
    width: 2px;
    height: 100%;
    background: #ffffff;
    position: absolute;
    top: 0;
    left: 50%;
}

.exit:before {
    transform: translateX(-50%) rotate(45deg);
}

.exit:after {
    transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 600px) {
    .c-col{
        width: 100%;
        flex: 0 0 100%;
    }
}


@media (max-width: 1200px) {


    .next{
        width: 16px;
        height: 16px;
    }
    .prev{
        width: 16px;
        height: 16px;
    }

    .exit{
        width: 24px;
        height: 24px;
    }

    #image-viewer-image{
        width: 75%;
    }
}
