@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

html{
    font-family: 'Montserrat', sans-serif!important;
}
p,span,a, h1, h2, h3, h4, h5, h6{
    font-family: 'Montserrat', sans-serif!important;
}
.parent {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    grid-template-rows: repeat(20, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    height: 100vh;
    width: 70%;
    /* Center */
    margin: 0 auto;
    min-height: 100vh;
    overflow: hidden;
}
html{
    height: 100vh;
    overflow: hidden;
}



.image-div img {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.child{
    position: relative;
}


.overlay {
    position: absolute;
    /* Center */
    width: 70%;
    height: 103vh;
    z-index: 5;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    /* Gradient */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.overlay img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62%;
    height: 97%;
    opacity: 0.58;
    pointer-events: none;
    z-index: 7;
}

.creds{
    position: absolute;
    opacity: 0;
    /* Bottom Left */
    font-size: 11px;
    z-index: 6;
    pointer-events: none;
    color: black; 
    /* margin-top: -20px; */
}
.show{
    opacity: 1;
    transition: all 0.48s ease-in-out;
}

.mouse-over{
    cursor: pointer;
    z-index: 9999999999;
    width: 100%;
    /* Cannot Exceed View Port */
    max-width: 100%;
    position: relative;
}

.mouse-over img{
    transform: scale(4.07);
    transition: all 0.28s ease-in-out;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    width: 100%;
    height: 100%;
    position: relative;
}

.mouse-over .creds{
    transform: scale(4.07);
    transition: all 0.28s ease-in-out;
    background-color: white;
    width: 100%;
    height:auto;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    position: absolute;
    z-index: 99999999999;
    top: 10rem;
}



.creds span{
    font-size: 3px;
    font-weight: bold;
    color: black;
    text-align: center;
    display: block;
    margin: 0;
    padding: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 0;
    padding-right: 0;
}

@media only screen and (min-width: 1800px){
    .mouse-over .creds{
        top: 22rem;
    }
}

@media only screen and (max-width: 768px) {
    .parent {
        grid: repeat(18, 1fr) / repeat(10, 1fr)!important;
        width: 100%!important;
        overflow: hidden!important;
        height: 100vh!important;
    }
    .overlay{
        width: 100%!important;
    }
    .overlay img{
        width: 100%!important;
        height: 70%!important;
        opacity: 0.58!important;
    }
    .mouse-over img{
        transform: scale(2.5)!important;
        width: 100%!important;
    }
    .mouse-over .creds{
        top: 80px!important;
        width: 103px;
        height: max-content!important;
        text-align: center!important;
        transform: scale(1)!important;
        height: auto!important;
    }
    .creds span {
        font-size: 0.7rem!important;
        width: 100%;
    }
}