  /* --- Global Reset & Styles --- */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
  }
 
  /* --- Navigation Styles --- */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nav-logo {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
  }

  .nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
  }

  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #00bcd4;
  }


/* Hide dropdown menu by default */
.navbar .dropdown-menu {
  display: none;
  position: absolute;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #fff;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

/* Show dropdown menu on hover */
.navbar .dropdown:hover .dropdown-menu {
  display: block;
}

/* Style dropdown items */
.navbar .dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
}

/* Position relative on parent for absolute dropdown */
.navbar .dropdown {
  position: relative;
}


  /* --- Main Layout Wrapper Split --- */
  .main-wrapper {
    display: flex;
    width: 100%;
   /* align-items: stretch; Forces sidebar and gallery to have the exact same height */
  }

  /* Sidebar hidden by default (mobile/tablet layout) */
  .sidebar {
    display: none;
    width: 200px; /* Fits 200px iframes + padding safely */
    background-color: #f0f0f0;
    border-right: 1px solid #ddd;
    padding: 20px;
    /*overflow: hidden;  Clips any content exceeding the height of the main gallery */
  }

  /* --- Static Frame Container --- */
  .sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
     }
 

  /* --- Sidebar iFrame Styling --- */
  .sidebar iframe {
    width: 160px;
    margin: 0;
    padding: 0;
    overflow:hidden;
    height: 750px; 
    border: 0px auto;
    border-radius: 4px;
    background: #fff;
    background-color: #ffffff;
    max-width: 100%;
  }

  /* --- Main Container Layout --- */
  .container {
    flex: 1; 
    padding: 20px;
  }

  table {
    width: 100%;
    border-collapse: collapse;
  }
 
  .image-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(468px, 1fr));
    gap: 16px;
  }
 
  td {
    padding: 0;
    text-align: center;
  }
 
  .card {
    width: 468px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .card:hover {
    transform: scale(1.02);
  }
 
  .card img {
    width: 468px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }
 
  .label {
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
  }

  .citation {
    padding: 10px;
    font-size: 12px;
    font-weight: normal;
    text-align: center;
  }

  /* --- Responsive Breakpoint --- */
  @media (min-width: 1000px) {
    .sidebar {
      display: block; 
    }
  }

  /* --- Lightbox Styles --- */
  .lightbox {
    display: none; 
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
  }

  .lightbox.active {
    display: flex;
  }

  .lightbox-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 4px;
  }

  .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }
</style>