.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    max-width: 1100px;
    font-size: max(1.3vw, 30px);
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    /* width: 100%; */
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 15px;
    text-align: center;
    opacity: 0.8;
    height: 50%;
    cursor: pointer;
    /* transition: 0.3s; */
}

.text-overlay-header {
    height: 45%;
    font-size: 30px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-overlay-sub {
    font-size: 18px;
}

#question_lightbox {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 800px;
    max-width: 80vw;
    height: fit-content;
    max-height: 80vh;
    border-radius: 10px;
    background-color: rgba(30, 42, 59, 0.8);
    max-width: 80vw;
    overflow-y: scroll;
}

#question_header {
    font-size: 30px;
    padding: 0px 20px;
    /* font-family: "Literata", serif; */
    font-weight: 800;
}

#question_text {
    padding: 20px;
    /* font-family: "Literata", serif; */
}

/* .grid-item:hover .text-overlay { */
/*     opacity: 1; */
/* } */

