.experience-layouts-charities_grid {
    margin-bottom: 50px !important;
}

#charities-grid-component {
    max-width: 1440px;
    margin: 0 auto;
}

.experience-charities_grid_tile {
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-template-rows: auto;
    grid-row-gap: 25px;
    justify-items: center;
}

@media screen and (max-width: 900px) {
    .experience-charities_grid_tile {
        grid-template-columns: auto auto auto;
    }
}

@media screen and (max-width: 500px) {
    .experience-charities_grid_tile {
        grid-template-columns: auto auto;
    }
}

.charities-grid-modal {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    z-index: 2;
}

.charities-grid-modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.5);
}

.charities-grid-modal .charities-grid-content-wrapper {
    position: relative;
    width: 90%;
    max-width: 550px;
    background-color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.22);
    z-index: 3;
    padding: 0 30px 40px 50px;
    max-height: 80vh;
}

.charities-grid-modal .charities-grid-content-wrapper #charities-grid-close {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background-color: transparent;
}

.charities-grid-modal .charities-grid-content-wrapper #charities-grid-close:before,
.charities-grid-modal .charities-grid-content-wrapper #charities-grid-close:after {
    position: absolute;
    content: '';
    width: 30px;
    height: 6px;
    background-color: #f2f2f2;
}

.charities-grid-modal .charities-grid-content-wrapper #charities-grid-close:before {
    transform: rotate(-45deg);
}

.charities-grid-modal .charities-grid-content-wrapper #charities-grid-close:after {
    transform: rotate(45deg);
}

.charities-grid-modal .charities-grid-content-wrapper #charities-grid-close:hover:before,
.charities-grid-modal .charities-grid-content-wrapper #charities-grid-close:hover:after {
    background-color: #c1c1c1;
}

.charities-grid-modal-image {
    height: 200px;
    width: 200px;
    margin-bottom: 36px;
}

.charities-grid-modal-image img {
    height: 200px;
    width: 200px;
    object-fit: cover;
    display: block;
}

.charities-grid-modal-image-bottom {
    height: 6px;
}

.charities-grid-modal-text {
    font-family: 'Roboto', sans-serif;
}

.charities-grid-modal-charity-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}

.charities-grid-modal-charity-description {
    color: #7a7a7a;
    font-size: 13px;
    font-weight: 300;
    line-height: 20px;
}

.charities-grid-modal-charity-description br {
    display: block;
    content: '';
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .charities-grid-modal .charities-grid-content-wrapper {
        overflow-y: scroll;
    }
}

@media screen and (max-width: 500px) {
    .charities-grid-modal .charities-grid-content-wrapper {
        width: 95%;
        padding: 0 30px 30px 30px;
    }

    .charities-grid-modal-image {
        height: 150px;
        width: 150px;
        margin-bottom: 36px;
    }

    .charities-grid-modal-image img {
        height: 150px;
        width: 150px;
        object-fit: cover;
        display: block;
    }

    .charities-grid-modal-charity-description {
        font-size: 12px;
        line-height: 18px;
    }
}
