.site-main {
    padding: 50px 150px;
}

.committe-description{
    font-family: poppins;
}

.committe-description p{
    text-align: justify;
}

.committe-heading{
    background-color: #563A52;
    color: #FFF;
    padding: 5px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
}

.committe-list{
    padding: 10px;
}

.p-5{
    padding: 10px;
}

.gallery{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* responsive columns */
    gap: 10px; /* spacing between items */
    padding: 30px;
}

.gallery-item{
    overflow: hidden;
    height: 250px;
}

.gallery-item > img{
    width: 100%;
    min-height: 250px;
    height: auto;
    transition: transform 0.5s ease;
}

.gallery-item > img:hover{
    transform: scale(1.2);
    cursor: pointer;
}

.gallery-btn{
    align-items: center;
    text-align: center;
    margin-top: 10px;
}

#galleryModal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    text-align: center;
    padding-top: 60px;
}

#galleryModal img {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 90%;
}

#galleryModal span {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.events{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 20px;
}

.event-item {
    position: relative; /* Ensure items are positioned relative */
    overflow: hidden; /* Ensures the date doesn't overflow outside */
    margin-top: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.event-item-thumb {
    position: relative; /* Make sure relative positioning is set */
    width: 100%;
    overflow: hidden; /* Hide overflowing content */
    height: 250px;
}

.event-item-thumb > img {
    width: 100%;
    min-height: 250px;
    height: auto; /* Allow image to maintain aspect ratio */
    display: block; /* Ensure the image behaves correctly */
}

.event-item-title{
    width: 100%;
    padding: 10px;
    font-family: poppins;
    font-size: 13px;
    font-weight: 500;
    text-align: justify;
}

.event-item-content{
    width: 100%;
    padding: 10px;
    font-family: poppins;
    font-size: 12px;
    text-align: justify;
    color: #868685;
    text-indent: 20px;
}

.event-item-view{
    width: 100%;
    padding: 10px;
}

.event-item-button{
    font-family: poppins;
    font-size: 12px;
    border: 1px solid #563A52;
    background-color: #563A52;
    color: #FFF;
    padding: 5px 10px 5px 10px;
}

.event-item-button:hover{
    background-color: #FFF;
    color: #563A52;
}


.events-btn{
    align-items: center;
    text-align: center;
    margin-top: 10px;
}

@media screen and (max-width: 480px) {
    .site-main {
        padding: 30px;
    }
        
    .p-5{
        padding: 10px 0px;
    }
    
    .gallery{
        padding: 0px;
    }
    
    .events{
        grid-template-columns: 1fr;
    }
}