.parent {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            grid-template-rows: repeat(5, 1fr);
            grid-gap: 1rem;
            height: 80vh;
            min-height: 600px;
        }

        .grid-item {
            border-radius: 20px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .grid-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0; 
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 1;
        }

        .grid-item:hover::before {
            opacity: 1;
        }

        /* Background image animation */
        .grid-item:not(.div1)::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: inherit;
            background-size: cover;
            background-position: center;
            transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            z-index: 0;
        }

        .grid-item:not(.div1):hover::after {
            transform: scale(1.1);
        }

        .content {
            position: relative;
            z-index: 2;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 1.5rem;
            color: white; 
        }

        .title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            opacity: 1;
            transform: translateY(20px);
            transition: all 0.3s ease 0.1s;
        }

        .subtitle {
            font-size: 0.9rem;
            opacity: 0.8;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease 0.2s;
        }

        .grid-item:hover .title,
        .grid-item:hover .subtitle {
            opacity: 1;
            transform: translateY(0);
        }

        /* Works section styling */
        .div1 {
            grid-area: 3 / 3 / 4 / 4;
           
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .div1 .content {
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 0;
        }

        .div1 .works-title {
            font-size: 2rem;
            font-weight: 800;
            color: #000000; 
            letter-spacing: -0.02em;
        }

        /* Grid areas and backgrounds */
        .div2 {
            grid-area: 1 / 2 / 3 / 3;
            background: url('images/Google-Read-Along-App.jpg') center/cover;
        }

        .div3 {
            grid-area: 1 / 3 / 3 / 4;
            background: url('images/science-kit.jpg') center/cover;
        }

        .div4 {
            grid-area: 1 / 1 / 4 / 2;
            background: url('images/Project-Learning-Lab-1.jpg') center/cover;
        }

        .div5 {
            grid-area: 4 / 1 / 6 / 2;
            background: url('images/Project-Sports-2.jpg') center/cover;
        }

        .div6 {
            grid-area: 3 / 2 / 6 / 3;
            background: url('images/Teacher-Development.jpg') center/cover;
        }

        .div7 {
            grid-area: 1 / 4 / 4 / 5;
            background: url('images/Project-Stagecraft.jpg') center/cover;
        }

        .div8 {
            grid-area: 4 / 3 / 6 / 5;
            background: url('images/Infrastructure-Support.jpg') center/cover;
        }

        .div9 {
            grid-area: 1 / 5 / 2 / 6;
            background: url('images/Eco-Club.jpg') center/cover;
        }

        .div10 {
            grid-area: 2 / 5 / 4 / 6;
            background: url('images/Learning-Lab-collage.jpg') center/cover;
        }

        .div11 {
            grid-area: 4 / 5 / 6 / 6;
            background: url('images/tiny-tots.png') center/cover;
        }

        /* Glow effect on hover - removed grid animation */
        .div1:hover {
            background: #ff6b6b;
        }
   


        .div1 .works-title {
            transition: all 0.3s ease;
        }


        .div1:hover .works-title {
            transform: scale(1.05); color: aliceblue;
        
        }


         /* Responsive design */
        @media (max-width: 1200px) {
            .container {
                padding: 1rem;
            }
            
            .parent {
                height: 75vh;
                min-height: 550px;
            }
            
            .title {
                font-size: 1.3rem;
            }
            
            .div1 .works-title {
                font-size: 1.8rem;
            }
        }

        @media (max-width: 992px) {
              .parent {
                grid-template-columns: repeat(4, 1fr);
                grid-template-rows: repeat(7, 1fr);
                height: auto;
                min-height: 70vh;
                grid-gap: 0.8rem;
            }

            .div1 { grid-area: 3 / 1 / 4 / 3; }
            .div2 { grid-area: 1 / 1 / 3 / 2; }
            .div3 { grid-area: 1 / 2 / 2 / 4; }
            .div4 { grid-area: 2 / 2 / 3 / 3; }
            .div5 { grid-area: 5 / 1 / 7 / 2; }
            .div6 { grid-area: 4 / 1 / 5 / 2; }
            .div7 { grid-area: 2 / 3 / 4 / 4; }
            .div8 { grid-area: 4 / 2 / 7 / 4; }
            .div9 { grid-area: 1 / 4 / 2 / 5; }
            .div10 { grid-area: 2 / 4 / 4 / 5; }
            .div11 { grid-area: 4 / 4 / 7 / 5; }

            .title {
                font-size: 1.2rem;
            }

            .div1 .works-title {
                font-size: 1.6rem;
            }
        }

        @media (max-width: 768px) {
            body {
                padding: 1rem;
            }

            /* Keep the same collage layout as desktop, just miniaturized */
            .parent {
                grid-template-columns: repeat(5, 1fr);
                grid-template-rows: repeat(5, 1fr);
                height: 55vh;
                min-height: 320px;
                grid-gap: 0.4rem;
            }

            /* Restore desktop tile positions (overrides the 992px tablet layout above) */
            .div1 { grid-area: 3 / 3 / 4 / 4; }
            .div2 { grid-area: 1 / 2 / 3 / 3; }
            .div3 { grid-area: 1 / 3 / 3 / 4; }
            .div4 { grid-area: 1 / 1 / 4 / 2; }
            .div5 { grid-area: 4 / 1 / 6 / 2; }
            .div6 { grid-area: 3 / 2 / 6 / 3; }
            .div7 { grid-area: 1 / 4 / 4 / 5; }
            .div8 { grid-area: 4 / 3 / 6 / 5; }
            .div9 { grid-area: 1 / 5 / 2 / 6; }
            .div10 { grid-area: 2 / 5 / 4 / 6; }
            .div11 { grid-area: 4 / 5 / 6 / 6; }

            .grid-item {
                border-radius: 10px;
                min-height: 0;
            }

            .content {
                padding: 0.35rem;
            }

            .title {
                font-size: 0.55rem;
                margin-bottom: 0.15rem;
                line-height: 1.1;
            }

            .subtitle {
                font-size: 0.45rem;
            }

            .div1 .works-title {
                font-size: 0.9rem;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 0.5rem;
            }

            /* Same collage layout, scaled down further for small phones */
            .parent {
                grid-template-columns: repeat(5, 1fr);
                grid-template-rows: repeat(5, 1fr);
                height: 45vh;
                min-height: 260px;
                grid-gap: 0.25rem;
            }

            .grid-item {
                border-radius: 6px;
                min-height: 0;
            }

            .content {
                padding: 0.2rem;
            }

            .title {
                font-size: 0.4rem;
                margin-bottom: 0.05rem;
                line-height: 1;
            }

            .subtitle {
                display: none;
            }

            .div1 .works-title {
                font-size: 0.65rem;
            }
        }

        /* Hover effects adjustment for touch devices */
        @media (hover: none) and (pointer: coarse) {
            .grid-item .title,
            .grid-item .subtitle {
                opacity: 1;
                transform: translateY(0);
            }

            .grid-item::before {
                opacity: 0.3;
            }
        }
