.gallery-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 30px;
}

.image-container {
    width: 23%;
    aspect-ratio: 4 / 3;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 5px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.lightbox-img-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    max-height: 80%;
    aspect-ratio: 4 / 3;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #bbb;
}

.prev, .next {
    cursor: pointer;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s;
}

.prev {
    left: -50px;
}

.next {
    right: -50px;
}

.prev:hover, .next:hover {
    color: #bbb;
}

.image-description {
    color: white;
    font-size: 18px;
    margin-top: 15px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 4px;
    max-width: 80%;
    margin: 10px auto;
}

.image-counter {
    position: absolute;
    top: 10px;
    text-align: center;
    color: white;
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 4px;
}

/* === ✅ Responzivita === */
@media screen and (max-width: 1024px) {
    .image-container {
        width: 45%;
    }
    .prev {
        left: -30px;
    }
    .next {
        right: -30px;
    }
}

@media screen and (max-width: 768px) {
    .image-container {
        width: 90%;
    }
    .prev, .next {
        font-size: 30px;
    }
    .prev {
        left: -15px;
    }
    .next {
        right: -15px;
    }
}
