.events-container {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 10px;

    background-color: #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    max-width: 520px;
    margin: 140px auto;

    box-sizing: border-box;

    justify-items: center; 

}

.events-heading {
    font-size: var(--text-3xl);
    font-weight: bold;
    color: var(--color-primary);
    text-align: center;
}

.events-title {
    font-size: var(--text-xl);
    font-weight: bold;
    color: var(--color-secondary);
    text-align: center;
}

.events-img {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.events-img img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.events-text {
    line-height: 1.6;
    font-size: var(--text-md);
}



#image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#modal-img {
    max-width: 90%;
    max-height: 90%;
}

#image-modal span {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}




@media (max-width: 400px) {
    .events-title {
        font-size: var(--text-xl);
    }

    .events-text {
        font-size: var(--text-sm);
    }
}

@media (max-width: 800px) {

    .events-title {
        font-size: var(--text-2xl);
    }

}