.gallery-section {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-item {
    flex: 1 1 calc(16.66% - 10px); /* 6 images per row */
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Lightbox styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    animation: fadeIn 0.5s ease-in-out;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 50%;
}

.lightbox-controls {
    display: flex;
    justify-content: space-between;
    width: 100px;
    margin-top: 20px;
}

.lightbox-nav {
    background-color: white;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 calc(33.33% - 10px); /* 3 images per row */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 1 1 calc(50% - 10px); /* 2 images per row */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
