    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: #f0f4f8;
      color: #333;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 2rem 1rem 4rem;
    }

    h1 {
      font-weight: 700;
      font-size: 2.8rem;
      margin-bottom: 1rem;
      color: #2c3e50;
      text-shadow: 0 2px 4px rgba(44, 62, 80, 0.1);
    }

    p.subtitle {
      margin-bottom: 2rem;
      color: #7f8c8d;
      font-size: 1.1rem;
    }

    button#backButton {
      margin-bottom: 1rem;
      background: #3498db;
      border: none;
      color: white;
      font-size: 1rem;
      font-weight: 600;
      padding: 0.5rem 1.2rem;
      border-radius: 24px;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(52, 152, 219, 0.4);
      transition: background 0.3s ease;
    }

    button#backButton:hover {
      background: #2980b9;
    }

    .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1.2rem;
      width: 100%;
      max-width: 1000px;
    }

    .gallery-item {
      position: relative;
      cursor: pointer;
      overflow: hidden;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
      background: white;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .gallery-item:hover {
      transform: scale(1.05);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
      z-index: 10;
    }

    .gallery-item img {
      width: 100%;
      height: 160px;
      object-fit: cover;
      display: block;
      border-radius: 12px;
    }

    .gallery-item .caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
      color: white;
      padding: 0.7rem 1rem;
      font-size: 1rem;
      font-weight: 600;
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
      user-select: none;
      text-align: center;
    }

    /* Modal styles */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(44, 62, 80, 0.85);
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      z-index: 1000;
    }

    .modal-overlay.show {
      opacity: 1;
      pointer-events: auto;
    }

    .modal-content {
      position: relative;
      max-width: 90vw;
      max-height: 80vh;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
      animation: modalOpen 0.4s ease forwards;
    }

    @keyframes modalOpen {
      from {
        transform: scale(0.75);
        opacity: 0;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    .modal-content img {
      display: block;
      width: 100%;
      height: auto;
      max-height: 80vh;
      user-select: none;
    }

    .modal-caption {
      background: #2c3e50;
      color: #ecf0f1;
      font-size: 1.2rem;
      font-weight: 600;
      padding: 0.75rem 1.5rem;
      text-align: center;
    }

    .modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      background: #e74c3c;
      border: none;
      color: white;
      font-size: 1.6rem;
      font-weight: bold;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      transition: background 0.3s ease;
    }

    .modal-close:hover {
      background: #c0392b;
    }

    /* Responsive text size */
    @media (max-width: 600px) {
      h1 {
        font-size: 2rem;
      }

      .gallery-item img {
        height: 140px;
      }
    }