/* Powiększanie grafik z sekcji funkcji aplikacji */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 40px;
    padding: 0;
    background: none;
    border: 0;
    color: #fff;
    font: bold 48px/1 Roboto, sans-serif;
    cursor: pointer;
    z-index: 1000000;
    transition: color .2s ease;
    user-select: none;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
    color: #ff6231;
}

.lightbox__image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
    animation: lightboxZoomIn .3s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(.8);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

/* Grafiki funkcji są klikalne */
.feature__image {
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

.feature__image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
}

.feature__image:focus-visible {
    outline: 3px solid #ff6231;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .lightbox,
    .lightbox__image,
    .feature__image {
        transition: none;
        animation: none
    }

    .feature__image:hover {
        transform: none
    }
}

@media (max-width: 768px) {
    .lightbox__close {
        top: 10px;
        right: 20px;
        font-size: 36px;
    }

    .lightbox__image {
        max-width: 95%;
        max-height: 95%;
    }
}
