.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.news-events {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.news-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
}

.news-title {
    margin-top: 0;
    margin-bottom: 5px;
}

.news-date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

.news-image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.news-description {
    margin-bottom: 10px;
}

.news-details {
    display: none;
    margin-top: 10px;
}

.toggle-details {
    background-color: #007BFF;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.toggle-details:hover {
    background-color: #0056b3;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .news-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .news-item {
        flex: 1 1 calc(100% - 20px);
    }
}


.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f8f8;
}

.gallery-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Arial', sans-serif;
    color: #333;
    font-size: 2em;
    position: relative;
}

.gallery-container h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007BFF;
    margin: 10px auto 0;
}

.gallery {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zoom-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.zoom-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.zoom-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.zoom-modal-content {
    position: relative;
    animation: zoomIn 0.5s ease;
}

.zoom-modal.show {
    display: flex;
}

.zoom-modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .gallery {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .gallery {
        gap: 10px;
    }
}
