.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.lightbox-content img {
    position: relative !important;
    left: 0 !important;
    opacity: 1 !important;
    max-width: 90% !important;
    max-height: 80% !important;
    margin: auto !important;
    display: block !important;
    animation: zoomIn 0.3s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: none !important;

    /* Kikapcsoljuk az átmenetet, ami balra mozgatná a képet */
    object-fit: contain !important;

    /* Hogy a kép arányosan jelenjen meg */
}

.lightbox-caption {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 16px;
    padding: 10px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    box-sizing: border-box;
}

.prev-btn,
.next-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 30px;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(128, 128, 128, 0.8);
}

/* Animációk */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

/* Módosítsuk a képgaléria képeit, hogy jelezze a kattinthatóságot */
.screenshot-box {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}