@media (min-width: 1450px){
    .image-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .image-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 10px;
    }

    .image-item {
        flex-basis: calc(25% - 10px);
        padding: 5px;
    }

    #content {
        padding-bottom: 7%;
        padding-top: 2%;
    }
}
@media (max-width: 1450px) and (min-width: 950px) {
    .image-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .image-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 10px;
    }

    .image-item {
        flex-basis: calc(33% - 10px);
        padding: 5px;
    }

    #content {
        padding-bottom: 9%;
        padding-top: 2%;
    }
}

@media (max-width: 950px) and (min-width: 650px)  {
    .image-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .image-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 10px;
    }

    .image-item {
        flex-basis: calc(50% - 10px);
        padding: 5px;
    }

    #content {
        padding-bottom: 11%;
        padding-top: 2%;
    }
}

@media (max-width: 650px) {
    .image-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .image-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 10px;
    }

    .image-item {
        flex-basis: calc(100% - 10px);
        padding: 5px;
    }

    #content {
        padding-bottom: 18%;
        padding-top: 2%;
    }
}

.image {
    width: 100%;
    height: auto;
}

.text-overlay {
    position: absolute;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    background-color: rgba(43, 43, 43, 0.5);
    padding: 10px;
    border-radius: 20px 0px 0px 0px;
}

.image_container {
    border-radius: 20px;
}