 .page-title {
      text-align: center;
      font-size: 2em;
      margin-bottom: 20px;
      color: #003366;
      border-bottom: 2px solid #003366;
      padding-bottom: 10px;
      font-weight: bold;
    }

    .photo-gallery-heading {
      text-align: justify;
      font-size: 1.5em;
      margin-bottom: 10px;
      line-height: 1.6;
    }

    .instruction-text {
      margin-bottom: 20px;
      color: #666;
      font-style: italic;
    }

    .gallery-list {
      list-style: none;
      padding-left: 0;
      max-width: 100%;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      margin: 0;
    }

    .gallery-list li {
      margin-bottom: 0;
    }

    .gallery-item {
      text-align: center;
      border: 2px solid #ccc;
      border-radius: 8px;
      padding: 8px;
      background: #f9f9f9;
      transition: 0.3s ease;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .gallery-item:hover,
    .gallery-item:focus-within {
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      transform: translateY(-3px);
      border-color: #003366;
    }

    .gallery-link {
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    .gallery-link:focus {
      outline: 2px solid #0066cc;
      outline-offset: 2px;
      border-radius: 6px;
    }

    .gallery-image {
      width: 100%;
      height: auto;
      border-radius: 6px;
      aspect-ratio: 4/3;
      object-fit: cover;
    }

    .gallery-caption {
      margin-top: 8px;
      font-size: 0.95rem;
      color: #333;
      font-weight: 500;
      flex-grow: 1;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Ensure proper focus management */
    .page-title:focus {
      outline: 2px solid #0066cc;
      outline-offset: 4px;
    }

    /* Skip link styles */
    .skip-link {
      position: absolute;
      top: -40px;
      left: 6px;
      background: #0056b3;
      color: white;
      padding: 8px;
      text-decoration: none;
      border-radius: 4px;
      z-index: 10000;
      transition: top 0.3s;
    }
    
    .skip-link:focus {
      top: 6px;
    }

    /* Screen reader only class */
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    /* List announcement for NVDA */
    .list-announcement {
      position: absolute;
      left: -10000px;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }

    hr {
      margin: 20px 0;
      border: 0;
      border-top: 1px solid #ccc;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .gallery-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
      }
    }

    @media (max-width: 480px) {
      .gallery-list {
        grid-template-columns: 1fr;
        gap: 10px;
      }
    }