h3 {
    font-size: 1.1em;
    font-weight: normal;
    text-align: center;
    margin: 0 0 20px;
}

.lightbox {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.85);
      z-index: 50;
      justify-content: center;
      align-items: center;
      cursor: pointer;
    }

    .lightbox.active {
      display: flex;
    }

    .lightbox-content {
      position: relative;
      max-width: 90%;
      max-height: 90%;
    }

    .lightbox-content img {
      max-width: 100%;
      max-height: 90vh;
      object-fit: contain;
      border: 2px solid white;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }

    .close-btn {
      position: absolute;
      top: -40px;
      right: 0;
      color: white;
      font-size: 30px;
      cursor: pointer;
      background: rgba(0, 0, 0, 0.5);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .r3cg {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-bottom: 20px;
    }

    .r3cg div {
      overflow: hidden;
      border-radius: 8px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }

    .r3cg div:hover {
      transform: scale(1.03);
    }

    .r3cg img {
      width: 100%;
      height: auto;
      display: block;
      cursor: pointer;
    }

    /* Responsive design */
    @media (max-width: 768px) {
      .r3cg {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 480px) {
      .r3cg {
        grid-template-columns: 1fr;
      }
    }

    /* Dark mode styles */
    .dark .r3cg div {
      box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
      background-color: #333;
    }
    
    .dark .figure {
      color: #fff;
    }
