﻿/* Image Overlay */
:root {
    --bg: var(--cc-primary);
}

.image-overlay {
    position: relative;
    transition: transform 0.3s;
    overflow: hidden;
    border-radius: 10px;
}

    .image-overlay > img.initial-seen {
        object-fit: cover;
    }

    .image-overlay > .initial-seen {
        border-radius: 10px;
        width: 100%;
        height: 10rem;
    }

    .image-overlay > .overlay {
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        background-color: var(--cc-primary);
        filter: brightness(125%);
        overflow: hidden;
        width: 100%;
        height: 0;
        transition: .5s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /*.image-overlay:active {
        transform: translateY(-1rem) !important;
        box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
    }*/

    .image-overlay:hover {
        cursor: pointer;
    }

        .image-overlay:hover .overlay {
            bottom: 0;
            height: 100%;
            border-radius: 10px;
        }

    .image-overlay > .overlay.show {
        bottom: 0;
        height: 100%;
        border-radius: 10px;
    }
    
    /* Variant that is a translucent window */
    .image-overlay > .overlay.show-translucent {
        /*bottom: 0;
        height: 100%;
        filter: opacity(0.75);
        border-radius: 10px;
        flex-direction: column;
        padding: 3rem;*/
        
        bottom: 0;
        height: 100%;
        filter: opacity(0.75);
        border-radius: 10px;
        flex-direction: column;
        padding: 3rem;
        overflow: hidden;
    }

        .image-overlay:hover .overlay.show-translucent {
            background-color: var(--bg);
            filter: opacity(.9);
        }


        .image-overlay:hover img {
            transform: scale(1.2);
            transition: .3s ease;
        }


    .image-overlay > .overlay.show-translucent > .content {
        transition: .3s ease-in-out;
        opacity: 0;
        max-height: 0;
    }

    .image-overlay:hover .overlay.show-translucent .content {
        opacity: 1;
        max-height: 50rem;
    }

    .image-overlay > .overlay.show-translucent > .title,
    .image-overlay > .overlay.show-translucent > .content {
        margin: 0;
    }

@media only screen and (max-width: 576px) {
    .image-overlay > .overlay.show-translucent > .content {
        display: none;
    }
}