/* =========================
   Global Styles
   ========================= */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222;
}

.page-container {
  padding-left: 16px;
  padding-right: 16px;
  max-width: 1200px;
  margin: auto;
}

h2, h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  color: #333;
}

a {
  color: #0645ad;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ul {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
}

/* =========================
   Homepage Table Layout
   ========================= */
table {
  border-collapse: collapse;
  width: 100%;
  max-width: 1200px;
}

td {
  vertical-align: top;
  padding: 8px;
}

.photo-cell {
  width: 230px;
}

.info-cell {
  width: 800px;
}

h2 {
  margin-top: 0;
}

/* =========================
   Art Tools Page Styles
   ========================= */

.table-container {
  width: 100%;
  overflow-x: auto; /* enable horizontal scroll on mobile */
}

.table-container table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px; /* prevent table from shrinking too much */
}

.table-container td,
.table-container th {
  padding: 6px 10px;
  border: 1px solid #ccc;
  vertical-align: top;
  text-align: left;
}

.table-container th {
  background-color: #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* =========================
   Content & Media
   ========================= */
.content-table {
  width: 100%;
  max-width: 1080px;
  margin: auto;
  border-collapse: collapse;
}

/* Responsive YouTube Video */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;   /* limit maximum size */
  margin: 20px auto;  /* center horizontally */
  padding-bottom: 56.25%; /* keep 16:9 ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Specific limit for large screenshots */
.responsive-img {
  max-width: 90%;   /* keeps images within the page width */
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 8px 0;
}

.responsive-img.small {
  max-width: 180px;  /* thumbnails */
  margin: 4px;
}

/* =========================
   Responsive Adjustments
   ========================= */
@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  td, th {
    padding: 8px;
  }

  h2 {
    font-size: 20px;
  }

  .info-cell {
    width: auto;
  }
}

.back-link {
  display: block;
  text-align: left;
  margin: 16px 0;
  font-weight: bold;
  color: #0645ad;
}
.back-link:hover {
  text-decoration: underline;
}

.thumb-grid {
  display: flex;
  flex-wrap: wrap;      /* allows wrapping on small screens */
  justify-content: center;
  gap: 8px;             /* space between images */
}

.thumb-grid a {
  display: inline-block;
}

