/* Realizacje Page Specific Styles */
.realizacje-hero {
    background: url('/img/home/tlo ciemne.jpg') center / cover no-repeat;
    color: #fff;
    padding: 160px 0 100px;
    min-height: 30vh;
    position: relative;
    overflow: hidden;
}

.realizacje-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.realizacje-hero__container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.realizacje-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.realizacje-hero__description {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.realizacje-gallery {
    background-color: #fff;
    padding: 8.75rem 0;
}

.realizacje-gallery__container {
    max-width: 72.624rem;
    margin: 0 auto;
    padding: 0 0.938rem;
}

.realizacje-gallery__title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 600;
    color: #303a4d;
    margin-bottom: 3rem;
}

.realizacje-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.realizacje-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #f8f9fa;
    pointer-events: auto;
    user-select: none;
}

.realizacje-gallery__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.realizacje-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    pointer-events: none;
    user-select: none;
    display: block;
}

.realizacje-gallery__item:hover img {
    transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    margin: auto;
    animation: zoomIn 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox__image {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
    position: fixed;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 0;
    cursor: pointer;
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0;
    margin: 0;
}

.lightbox__close span {
    display: block;
    position: relative;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    overflow: hidden;
}

.lightbox__close span::before,
.lightbox__close span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 3px;
    background-color: #fff;
    transform-origin: center;
    border-radius: 2px;
}

.lightbox__close span::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox__close span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox__close:hover {
    background: rgba(0, 177, 207, 0.9);
    border-color: rgba(0, 177, 207, 0.9);
    transform: scale(1.1);
}

.lightbox__prev,
.lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.lightbox__prev {
    left: 30px;
}

.lightbox__next {
    right: 30px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(0, 177, 207, 0.9);
    border-color: rgba(0, 177, 207, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox__prev:active,
.lightbox__next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .realizacje-hero__title {
        font-size: 2.5rem;
    }

    .realizacje-hero__description {
        font-size: 1.1rem;
    }

    .realizacje-gallery__title {
        font-size: 2.5rem;
    }

    .realizacje-gallery__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .lightbox__close {
        top: 15px;
        right: 20px;
        font-size: 32px;
        width: 50px;
        height: 50px;
    }

    .lightbox__prev,
    .lightbox__next {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .lightbox__prev {
        left: 15px;
    }

    .lightbox__next {
        right: 15px;
    }

    .lightbox__image {
        max-width: 98vw;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .realizacje-gallery__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}