.gallery-container {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    margin-top: 35px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 3rem;
    color: #333;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    justify-content: center; /* Centers the items horizontally */
    gap: 15px; /* Space between items */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 400px; /* Fixed height for uniformity */
    flex: 0 1 250px; /* Allows the item to grow and shrink, with a minimum width of 250px */
}

.gallery-img {
    height: 100%;
    width: 100%; /* Ensures the image takes the full width of the container */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.1);
}

.overlay {
    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;
    margin-top: 30px;
}

.overlay.active {
    display: flex;
}

.overlay-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

.close-btn:hover {
    color: #ccc;
}
