.projects-section, .projects-section *, #imageModal, #imageModal * {
      box-sizing: border-box;
    }

    .projects-section{
      width:90%;
      max-width:1200px;
      margin:40px auto;
      text-align:center;
    }

    .projects-section h1{
      font-size:70px;
      font-weight:300;
      margin-bottom:15px;
      letter-spacing:1px;
    }

    .quote{
      font-size:22px;
      margin-bottom:10px;
      color:#222;
    }

    .author{
      font-size:24px;
      margin-bottom:35px;
      color:#222;
    }

    .divider{
      width:72%;
      margin:0 auto 35px;
      border:none;
      border-top:2px solid #8d8d8d;
    }

    .gallery{
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:14px;
    }
    .gallery1{
      display:grid;
      grid-template-columns:repeat(2,1fr);
      gap:40px;
    }

    .gallery-item{
      position:relative;
      overflow:hidden;
      cursor:pointer;
      background:#f8f9fa;
      border-radius:10px;
      aspect-ratio: 4/3;
      box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    }

    .gallery-item img{
      width:100%;
      height:100%;
      object-fit:cover;
      display:block;
      transition:0.4s ease;
    }

    .gallery-item:hover img{
      transform:scale(1.06);
    }

    .gallery-item .gallery-overlay{
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 18px 14px 10px;
      background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
      color: #ffffff;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.3px;
      text-align: left;
      opacity: 0;
      transform: translateY(8px);
      transition: all 0.3s ease;
      pointer-events: none;
    }

    .gallery-item:hover .gallery-overlay{
      opacity: 1;
      transform: translateY(0);
    }

    .view-btn{
      margin-top:40px;
      padding:14px 40px;
      border:1px solid #666;
      background:transparent;
      color:#555;
      font-size:18px;
      cursor:pointer;
      transition:0.3s;
    }

    .view-btn:hover{
      background:#111;
      color:#fff;
    }

    /* MODAL FOR IMAGE GALLERY ONLY */

    #imageModal.modal,
    .gallery-modal{
      position:fixed;
      inset:0;
      background:rgba(0,0,0,0.9);
      display:none;
      justify-content:center;
      align-items:center;
      z-index:99999;
      padding:30px;
    }

    #imageModal.modal.active,
    .gallery-modal.active{
      display:flex;
    }

    #imageModal.modal img,
    .gallery-modal img{
      max-width:90%;
      max-height:90vh;
      border-radius:6px;
    }

    .close-btn{
      position:absolute;
      top:25px;
      right:35px;
      font-size:45px;
      color:#fff;
      cursor:pointer;
      font-weight:300;
    }

    @media(max-width:768px){

      .projects-section h1{
        font-size:45px;
      }

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

    @media(max-width:500px){

      .gallery{
        grid-template-columns:1fr;
      }

      .quote,
      .author{
        font-size:18px;
      }
    }