/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Gallery Styling */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.gallery-item {
    flex: 1 1 calc(25% - 20px); /* Adjust to 4 items per row */
    max-width: calc(25% - 20px);
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Popup Styling */
.popup {
    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;
}

.popup-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 calc(33.33% - 20px); /* Adjust to 3 items per row */
    }
}

@media (max-width: 576px) {
    .gallery-item {
        flex: 1 1 calc(50% - 20px); /* Adjust to 2 items per row */
    }
}

@media (max-width: 400px) {
    .gallery-item {
        flex: 1 1 100%; /* Adjust to 1 item per row */
    }
}
