body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}  
/*Gallery Page*/
.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
} 

.thumbnail {
    position: relative;
    width: 20%;
    margin: 20px;
    cursor: pointer;
}

.thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.event-details {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;

    /* to center the div*/
    width: 95%; /* Full width or a set width */
    padding: 10px; /* Optional padding to add space around the text */
    text-align: center; /* Centers the text horizontally */
    word-wrap: break-word; /* Ensures the text breaks to the next line if too long */
    overflow: hidden; /* Hides any overflow (if necessary) */
}


/*Gallery Images Page*/
.image-gallery {
    display: flex;
    flex-wrap: wrap; /* Allows images to wrap to the next row */
    gap: 10px; /* Adds gap between images (optional, based on your preference) */
}

.event-image {
    width: calc(33% - 10px); /* Each image takes 33% minus the gap */
    max-width: 700px; /* Ensures the max width is respected */
    height: 300px; /* Set a fixed height */
    object-fit: cover; /* Ensures the image covers the entire area */
    margin-bottom: 10px; /* Adds space at the bottom */
}


.event-description{
    width: 100%;
    text-align: center;
    font-size: 2rem;
    padding: 15px;
    word-wrap: break-word;
    overflow: hidden;
}
.event-description h1{
    line-height: 40px;
}
.event-description p{
    line-height: 40px;
}


 /*Gallery images css*/
.event-description-gallery-images{
    width: 100%;
    text-align: center;
    font-size: 2rem;
    padding: 15px;
    word-wrap: break-word;
    overflow: hidden;
    
}
.event-description-gallery-images h1{
    line-height: 40px;
    font-weight: 500;
}
.event-description-gallery-images h4{
    line-height: 40px;
    font-size: 1.5rem;
    font-weight: 400;
}

.event-description-gallery-images p{
    font-size: 1.5rem;
    line-height: 40px;
}

.close-button{
    position: fixed;
    top: 50px; /* Distance from the top of the container */
    right: 60px; /* Distance from the right of the container */
    font-size: 2rem; /* Adjusts the size of the 'X' symbol */
    cursor: pointer; /* Changes cursor to a pointer */
    background-color: rgb(238, 238, 238); /* Adds a background to make it visible */
    border-radius: 50%; /* Makes the background circular */
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* Ensures the button stays on top of the image */
}
.close-button a{
    color: black;
    text-decoration: none;
}
.text-description{
    color: white;
    text-transform: capitalize;
}

.go-back-btn {
    display: inline-block;
    text-decoration: none;
    width: 100%;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}



@media only screen and (max-width: 1600px) {
    .thumbnail {
        width: 40%;
    }
    
}

@media only screen and (max-width: 1000px) {
    .thumbnail {
        width: 100%;
    }
    .image-gallery{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .event-image{
        width: 100%;
        height: auto;
    }
    


}

@media only screen and (max-width:800px) {
    .close-button{
        position: fixed;
        top: 20px; /* Distance from the top of the container */
        right: 20px; /* Distance from the right of the container */
    }
    
}

@media only screen and (max-width:600px) {
    .close-button{
        position: fixed;
        top: 5px; /* Distance from the top of the container */
        right: 5px; /* Distance from the right of the container */
        font-size: 22px;
    }
    
}