body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.gallery {
    margin: 50px auto;
    max-width: 1200px;
    border-radius: 10px;
    background-color: white;
    overflow: hidden;
}
.gallery-event-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-event-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-event-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.event-image {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #f4f4f4;
}

.event-details {
    padding: 15px;
    text-align: center;
}

.event-details h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.event-details h4 {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 10px;
}

.event-details p {
    font-size: 1em;
    color: #666;
    margin: 5px 0;
}

.register-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.register-button:hover {
    background-color: #0056b3;
}
.gallery h2 {
    text-align: center;
    margin: 20px 0;
    font-size: 2em;
    color: #333;
    padding-bottom: 10px;
}

.gallery h2::after {
    content: '';
    display: block;
    width: 190px;
    height: 3px;
    background-color: #333;
    margin: 10px auto;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}
.gallery p {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}
.image-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.fest{
    max-width: 1200px;
    border: 5px solid #ccc;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 10px;
}
.fest h1{
    text-align: center;
    margin: 20px 0;
    font-size: 2em;
    color: #333;
    padding-bottom: 10px;
}
/* Responsive Design */
@media (max-width: 1200px) {
    .gallery {
        margin: 30px auto;
        max-width: 100%;
        padding: 10px;
    }

    .fest {
        max-width: 100%;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .gallery h2 {
        font-size: 1.8em;
    }

    .gallery p {
        font-size: 1em;
    }

    .image-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .modal img {
        max-width: 80%;
        max-height: 80%;
    }

    .fest h1 {
        font-size: 1.8em;
    }
    .gallery-event-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .event-details h3 {
        font-size: 1.3em;
    }

    .event-details h4 {
        font-size: 1.1em;
    }

    .event-details p {
        font-size: 0.9em;
    }

    .register-button {
        font-size: 0.9em;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .gallery h2 {
        font-size: 1.5em;
    }

    .gallery p {
        font-size: 0.9em;
    }

    .image-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .modal-close {
        font-size: 20px;
    }

    .fest h1 {
        font-size: 1.5em;
    }
    .gallery-event-cards-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .event-details h3 {
        font-size: 1.2em;
    }

    .event-details h4 {
        font-size: 1em;
    }

    .event-details p {
        font-size: 0.8em;
    }

    .register-button {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}
