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

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.gallery-item {
    margin: 10px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    width: 200px;
    height: 200px;
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: #f0f0f0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    cursor: pointer;
}

.lightbox-close, .lightbox-arrow {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
}

.lightbox-arrow {
    width: 50px;
    height: 50px;
    font-size: 2rem;
}

.lightbox-close:hover, .lightbox-arrow:hover {
    background: white;
    color: #333333;
}

.lightbox-arrow.prev {
    left: 20px;
}

.lightbox-arrow.next {
    right: 20px;
}

@media (max-width: 768px) {
    .gallery-item {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 100px;
        height: 100px;
    }

    .lightbox-close {
        font-size: 1.2rem;
        top: 10px;
        right: 10px;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}
