/* =========================
           OUR WORKS
        ========================== */

        .works-section {
            width: 100%;

            padding: 100px 20px;

            background: #f6f8f6;
        }

        .works-container {
            max-width: 1200px;

            margin: 0 auto;
        }


        /* =========================
           SECTION HEADING
        ========================== */

        .section-heading {
            max-width: 650px;

            margin: 0 auto 55px;

            text-align: center;
        }

        .section-heading > span {
            display: inline-block;

            margin-bottom: 12px;

            font-size: 13px;
            font-weight: 700;

            letter-spacing: 3px;

            color: #7bc043;
        }

        .section-heading h2 {
            margin: 0 0 18px;

            font-size: 46px;
            line-height: 1.2;

            color: #222222;
        }

        .section-heading h2 strong {
            color: #1f6f43;
        }

        .section-heading p {
            margin: 0;

            font-size: 16px;
            line-height: 1.8;

            color: #666666;
        }


        /* =========================
           WORKS GRID
        ========================== */

        .works-grid {
            display: grid;

            grid-template-columns: repeat(3, 1fr);

            gap: 22px;
        }


        /* Work Item */

        .work-item {
            position: relative;

            height: 330px;

            overflow: hidden;

            background: #111111;

            cursor: pointer;
        }


        /* Image */

        .work-image {
            width: 100%;
            height: 100%;

            display: block;

            object-fit: cover;

            transition: transform 0.6s ease;
        }


        /* =========================
           IMAGE OVERLAY
        ========================== */

        .work-overlay {
            position: absolute;

            inset: 0;

            display: flex;
            align-items: flex-end;
            justify-content: space-between;

            padding: 25px;

            background:
                linear-gradient(
                    to top,
                    rgba(0, 0, 0, 0.78),
                    rgba(0, 0, 0, 0.05) 65%
                );

            opacity: 0;

            transition: opacity 0.4s ease;
        }

        .work-item:hover .work-overlay {
            opacity: 1;
        }

        .work-item:hover .work-image {
            transform: scale(1.07);
        }


        /* Overlay Text */

        .work-overlay-content span {
            display: block;

            margin-bottom: 6px;

            font-size: 11px;
            font-weight: 700;

            letter-spacing: 2px;

            color: #7bc043;
        }

        .work-overlay-content h3 {
            margin: 0;

            font-size: 19px;
            font-weight: 600;

            color: #ffffff;
        }


        /* Expand Icon */

        .work-view {
            width: 42px;
            height: 42px;

            display: flex;
            align-items: center;
            justify-content: center;

            flex-shrink: 0;

            border: 1px solid rgba(255, 255, 255, 0.5);

            border-radius: 50%;

            color: #ffffff;

            font-size: 14px;

            transition: 0.3s ease;
        }

        .work-view:hover {
            background: #7bc043;

            border-color: #7bc043;
        }


        /* =========================
           LIGHTBOX
        ========================== */

        .work-lightbox {
            position: fixed;

            inset: 0;

            width: 100%;
            height: 100%;

            background: rgba(0, 0, 0, 0.94);

            z-index: 9999;

            display: flex;
            align-items: center;
            justify-content: center;

            padding: 50px;

            opacity: 0;
            visibility: hidden;

            transition:
                opacity 0.3s ease,
                visibility 0.3s ease;
        }

        .work-lightbox.active {
            opacity: 1;

            visibility: visible;
        }


        /* Lightbox Image */

        .lightbox-image-wrapper {
            width: 100%;
            height: 100%;

            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-image-wrapper img {
            max-width: 90%;
            max-height: 85vh;

            object-fit: contain;

            border-radius: 2px;

            transform: scale(0.92);

            transition: transform 0.35s ease;
        }

        .work-lightbox.active .lightbox-image-wrapper img {
            transform: scale(1);
        }


        /* =========================
           LIGHTBOX BUTTONS
        ========================== */

        .lightbox-close,
        .lightbox-prev,
        .lightbox-next {
            position: absolute;

            width: 45px;
            height: 45px;

            display: flex;
            align-items: center;
            justify-content: center;

            border: none;

            background: rgba(255, 255, 255, 0.1);

            color: #ffffff;

            border-radius: 50%;

            cursor: pointer;

            font-size: 16px;

            transition: 0.3s ease;

            z-index: 10;
        }

        .lightbox-close:hover,
        .lightbox-prev:hover,
        .lightbox-next:hover {
            background: #7bc043;
        }


        /* Close */

        .lightbox-close {
            top: 25px;
            right: 30px;
        }


        /* Previous */

        .lightbox-prev {
            left: 30px;
            top: 50%;

            transform: translateY(-50%);
        }


        /* Next */

        .lightbox-next {
            right: 30px;
            top: 50%;

            transform: translateY(-50%);
        }


        /* Counter */

        .lightbox-counter {
            position: absolute;

            bottom: 25px;
            left: 50%;

            transform: translateX(-50%);

            color: rgba(255, 255, 255, 0.8);

            font-size: 13px;

            letter-spacing: 1px;
        }


        


        /* =========================
           TABLET
        ========================== */

        @media (max-width: 900px) {
            
            

            

            .works-section {
                padding: 80px 25px;
            }

            .works-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .work-item {
                height: 300px;
            }

            .section-heading h2 {
                font-size: 40px;
            }

            
            
            

        }


        /* =========================
           MOBILE
        ========================== */

        @media (max-width: 600px) {
            
            

            

            .works-section {
                padding: 65px 20px;
            }

            .section-heading {
                margin-bottom: 35px;
            }

            .section-heading h2 {
                font-size: 34px;
            }

            .section-heading p {
                font-size: 15px;
            }

            .works-grid {
                grid-template-columns: 1fr;

                gap: 15px;
            }

            .work-item {
                height: 300px;
            }

            /* Always show overlay on mobile */

            .work-overlay {
                opacity: 1;
            }

            .work-lightbox {
                padding: 20px;
            }

            .lightbox-image-wrapper img {
                max-width: 100%;
                max-height: 80vh;
            }

            .lightbox-prev {
                left: 12px;
            }

            .lightbox-next {
                right: 12px;
            }

            .lightbox-close {
                top: 15px;
                right: 15px;
            }

            
            
            

        }
        
        

/* =========================
   LIGHTBOX FADE SLIDES
========================== */

.lightbox-image-wrapper img {
    opacity: 1;
    transition:
        opacity 0.55s ease,
        transform 0.35s ease;
}

.lightbox-image-wrapper img.fade-out {
    opacity: 0;
}


/* Hide navigation when project has only one image */

.work-lightbox.single-image .lightbox-prev,
.work-lightbox.single-image .lightbox-next,
.work-lightbox.single-image .lightbox-counter {
    display: none;
}