#main-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: black;
    width: 100%;
    height: 100%;
}

#main-grid a{
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

.event-trigger-overlay {
    cursor: pointer;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.cell1x1 {
    position: relative;
    width: 25%;
    height: 50%;
    overflow: hidden;
}

.cell2x1 {
    position: relative;
    width: 50%;
    height: 50%;
    overflow: hidden;
}

.background-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s all ease-in-out;
    z-index: 1;
}

.background-img.dimmed {
    transform: scale(1.3);
    opacity: 0.1;
}

.info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3vh 2vw;
    background-color: #144390;
    transition-duration: 500ms;
    z-index: 3;
    font-weight: bold;
}

.one .info-overlay {
    background-color: #909598;
}

.two .info-overlay {
    background-color: #818689;
}

.three .info-overlay {
    background-color: #72777a;
}

.four .info-overlay {
    background-color: #676b6e;
}

.five .info-overlay {
    background-color: #55595c;
}

.six .info-overlay {
    background-color: #404040;
}

.cell2x1 .info-box {
    display: flex;
    position: absolute;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 95%;
    z-index: 2;
    margin-left: 5%;
}

.cell1x1 .info-box {
    display: flex;
    position: absolute;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 70%;
    width: 100%;
    z-index: 2;
    text-align: center;
    margin-top: 10%;
}

.info-box .info {
    position: relative;
    left: -100%;
    top: 0;
}

.info-box .header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.info-box .description {
    font-size: 12px;
    margin-bottom: 10px;
}

.info-box .continue {
    color: white;
    font-weight: bold;
    font-size: 14px;
    border: 0px;
    border-radius: 50px;
    padding: 10px 20px;
    background-color: #144390;
    transition-duration: 500ms;
    margin-top: 10px;
}

.info-box .continue:hover {
    background-color: #002653;
}

.info-box .image {
    position: relative;
    right: -100%;
}

.slide-in-from-left {
    animation: slide-in-from-left;
    animation-duration: 500ms;
}

.slide-in-from-right {
    animation: slide-in-from-right;
    animation-duration: 500ms;
}

.slide-out-from-left {
    animation: slide-out-from-left;
    animation-duration: 500ms;
}

.slide-out-from-right {
    animation: slide-out-from-right;
    animation-duration: 500ms;
}

@keyframes slide-in-from-left {
    0% {
        left: -100%;
    }

    100% {
        left: 0;
    }
}

@keyframes slide-in-from-right {
    0% {
        right: -100%;
    }

    100% {
        right: 0;
    }
}

@keyframes slide-out-from-left {
    0% {
        left: 0;
    }

    100% {
        left: -100%;
    }
}

@keyframes slide-out-from-right {
    0% {
        right: 0;
    }

    100% {
        right: -100%;
    }
}

@media only screen and (max-width: 1000px){
    #main-grid {
        flex-direction: column;
    }
    .event-trigger-overlay{
        display:none;
    }
    .cell1x1, .cell2x1{
        width: 50%;
        height: 33.33%;
    }

    .cell2x1 .info-box {
        display: flex;
        position: absolute;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 70%;
        width: 100%;
        z-index: 2;
        text-align: center;
        margin-top: 10%;
    }
    
    .info-box .info {
        display: none;
    }

    .info-overlay{
        font-size: 14px;
    }
}