
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.oldcontainer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.subtitle a {
    color: #3498db;
    text-decoration: none;
}

.subtitle a:hover {
    text-decoration: underline;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
}

.navigation {
    display: flex;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.nav-button {
    display: inline-block;
    padding: 15px 30px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.break-point {
  flex-basis: 100%; /* Forces the next element onto a new line */
  height: 0; /* Keeps the break element from taking up vertical space */
}

.nav-button:hover {
    background: #2980b9;
}

.nav-button.active {
    background: #2c3e50;
    cursor: default;
}

.sketchbook-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0;
}

.sketchbook-nav-label {
    font-weight: bold;
    font-size: 0.85em;
    color: #555;
    margin-right: 4px;
}

.sketchbook-nav-button {
    padding: 4px 10px;
    font-size: 0.8em;
}

.artwork-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.artwork-table thead {
    background: #34495e;
    color: white;
}

.artwork-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.artwork-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
}

.artwork-table tbody tr:hover {
    background: #f8f9fa;
}

.id-cell {
    font-family: 'Courier New', monospace;
    color: #7f8c8d;
    font-size: 0.9em;
}

.title-cell {
    font-weight: 500;
    color: #2c3e50;
}

.date-cell {
    white-space: nowrap;
}

.dimensions-cell {
    font-size: 0.9em;
    color: #7f8c8d;
}

.series-grid, .location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.series-card, .location-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.series-card:hover, .location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.series-card h3, .location-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.series-count, .location-count {
    color: #3498db;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.series-date {
    color: #7f8c8d;
    font-size: 0.9em;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 0.9em;
}

  div.gallery 
  {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  div.gallery-item
  {
    margin: 5px;
    border: 1px solid #ccc;
    width: 250px;
    position: relative;
  }
  div.gallery-item:hover
  {
    border: 1px solid #777;
    z-index: 50;
  }
  div.gallery-item img
  {
    width: 100%;
    height: auto;
  }
  div.gallery-item > a > img
  {
    display: block;
    transition: transform 0.2s ease;
  }
  div.gallery-item > a > img:hover
  {
    transform: scale(2);
    transform-origin: bottom center;
  }
  div.gallery-item div.desc
  {
    padding: 5px;
    text-align: center;
  }

  .thumb-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 5px;
    background: #f8f9fa;
  }

  .thumb-button {
    display: inline-block;
    position: relative;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s;
  }

  .thumb-button:hover {
    border-color: #3498db;
  }

  .thumb-button img:not(.thumb-preview) {
    display: block;
    width: 36px;
    height: 36px;
  }

  .thumb-button img.thumb-preview {
    display: none;
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 280px;
    max-height: 280px;
    width: auto;
    height: auto;
    border: 2px solid #3498db;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    background: white;
    z-index: 200;
    pointer-events: none;
  }

  .thumb-button:hover img.thumb-preview {
    display: block;
  }

  body.no-thumb-hover .thumb-button:hover img.thumb-preview {
    display: none;
  }

  body.no-image-hover div.gallery-item > a > img:hover {
    transform: none;
  }

  .site-notice {
    text-align: center;
    background: #0000CC;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.85em;
    border-bottom: 1px solid #d0c8b8;
    letter-spacing: 0.02em;
  }

  .page-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: #f0f4f8;
    border-bottom: 1px solid #d0d8e0;
    font-size: 0.875em;
    color: #444;
  }

  .page-controls-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
  }

  .page-controls-label {
    font-weight: bold;
    color: #555;
  }

  .page-controls label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }

  #type-filter-checkboxes {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    align-items: center;
  }

@media (max-width: 768px) {
    .artwork-table {
        font-size: 0.9em;
    }

    .artwork-table th, .artwork-table td {
        padding: 8px 10px;
    }

    h1 {
        font-size: 2em;
    }
}
