/* NORMAL PC WIDESCREEN SETTINGS (min-WIDTH: 1500px) */
@media (min-width: 1500px){
    
  * { box-sizing: border-box; }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1e1e1e;
    color: white;
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    width: 300px;
    background: #2a2a2a;
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid #444;
  }

  .sidebar h2 {
    color: #7CFC00; /* Lawn green */
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #7CFC00;
    padding-bottom: 5px;
  }

  .thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .thumb-block {
    text-align: center;
    cursor: pointer;
  }

  .thumb {
    width: 100%;
    max-width: 95px;
    height: auto;
    object-fit: contain;
    border: 2px solid #444;
    border-radius: 8px;
    background: white;
    transition: 0.2s ease;
  }

  .thumb:hover {
    transform: scale(1.03);
    border-color: #7CFC00; /* Lawn green hover */
  }

  .thumb-label {
    font-size: 0.8em;
    color: #ccc;
    margin-top: 4px;
    word-wrap: break-word;
    font-weight: bold;
  }

  .main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .main h1 {
    font-size: 34px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    margin-top: 10px; /* reduce this number as you like, can be 0 */
  }

  .viewer-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .column {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    display: flex;
    flex-direction: column;
  }

  .section-title {
    font-size: 30px;
    color: #ffcc00;
    margin-bottom: 10px;
    text-align: center;
    flex: 0 0 auto;
  }

  #backColumn .section-title {
    color: #00e6e6;
  }

  #backColumn .viewer-grid {
    border: 2px solid #00e6e6;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #frontColumn .section-title {
    color: #FFD700;
  }

  #frontColumn .viewer-grid {
    border: 2px solid #FFD700;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

.image-block {
  background: #2c2c2c;
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  width: 100%;
  /* height: 100%;   <-- remove this */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;      /* important in grid/flex layouts */
}

.image-block img {
  width: 100%;
  height: auto;
  max-height: none;   /* remove hard cap */
  object-fit: contain;
  flex: 1 1 auto;     /* allow it to take remaining space */
  min-height: 0;      /* important so it can shrink */
}


.label {
  margin-top: 6px;
  font-weight: bold;
  font-size: 1.5em; /* 50% bigger */
  flex-shrink: 0;
}


  .normal {}
  .inverted { transform: scaleY(-1); }
  .reversed { transform: scaleX(-1); }
  .inverted-reversed { transform: scale(-1, -1); }

  #downloadBtn {
    display: inline-block;
    padding: 12px 20px;
    background: #00e6e6;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    align-self: center;
    max-width: 220px;
    margin: 0 auto 30px;
    cursor: pointer;
    flex: 0 0 auto;
  }

  #downloadBtn:hover {
    background: #00c2c2;
    color: #fff;
  }

  @media (max-width: 900px) {
    body {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #444;
    }
    .main {
      padding: 10px;
    }
    .viewer-columns {
      flex-direction: column;
      gap: 30px;
    }
    .column {
      max-width: 100%;
    }
    .image-block img {
      max-height: 150px;
    }
  }
  
  .upload-label {
  background: #7CFC00;
  color: #000;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.5em; /* make this bigger or smaller as you like */
  display: inline-block; /* ensures padding and size work nicely */
  text-align: center;
}

.qv-link {
    display: inline-block;             /* allow transform */
    color: #ffffff;
    text-decoration: underline;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: left center;     /* anchor to left side */
}

.qv-link:hover {
    color: lawngreen;
    transform: scale(1.5);             /* 50% larger */
}

.label-inverted {
  color: #98fb98; /* pale green */
}

.label-reversed {
  color: yellow;
}

.label-invrev {
  color: #ffc0cb; /* pink */
}

}




/* MATEVIEW SETTINGS (min-height: 1000px) */
@media (min-height: 1000px){
    
  * { box-sizing: border-box; }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1e1e1e;
    color: white;
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    width: 300px;
    background: #2a2a2a;
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid #444;
  }

  .sidebar h2 {
    color: #7CFC00; /* Lawn green */
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #7CFC00;
    padding-bottom: 5px;
  }

  .thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .thumb-block {
    text-align: center;
    cursor: pointer;
  }

  .thumb {
    width: 100%;
    max-width: 95px;
    height: auto;
    object-fit: contain;
    border: 2px solid #444;
    border-radius: 8px;
    background: white;
    transition: 0.2s ease;
  }

  .thumb:hover {
    transform: scale(1.03);
    border-color: #7CFC00; /* Lawn green hover */
  }

  .thumb-label {
    font-size: 0.8em;
    color: #ccc;
    margin-top: 4px;
    word-wrap: break-word;
    font-weight: bold;
  }

  .main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .main h1 {
    font-size: 34px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    margin-top: 10px; /* reduce this number as you like, can be 0 */
  }

  .viewer-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .column {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    display: flex;
    flex-direction: column;
  }

  .section-title {
    font-size: 30px;
    color: #ffcc00;
    margin-bottom: 10px;
    text-align: center;
    flex: 0 0 auto;
  }

  #backColumn .section-title {
    color: #00e6e6;
  }

  #backColumn .viewer-grid {
    border: 2px solid #00e6e6;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #frontColumn .section-title {
    color: #FFD700;
  }

  #frontColumn .viewer-grid {
    border: 2px solid #FFD700;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

.image-block {
  background: #2c2c2c;
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  width: 100%;
  /* height: 100%;   <-- remove this */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;      /* important in grid/flex layouts */
}

.image-block img {
  width: 100%;
  height: auto;
  max-height: none;   /* remove hard cap */
  object-fit: contain;
  flex: 1 1 auto;     /* allow it to take remaining space */
  min-height: 0;      /* important so it can shrink */
}

.label {
  margin-top: 6px;
  font-weight: bold;
  font-size: 1.5em; /* 50% bigger */
  flex-shrink: 0;
}


  .normal {}
  .inverted { transform: scaleY(-1); }
  .reversed { transform: scaleX(-1); }
  .inverted-reversed { transform: scale(-1, -1); }

  #downloadBtn {
    display: inline-block;
    padding: 12px 20px;
    background: #00e6e6;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    align-self: center;
    max-width: 220px;
    margin: 0 auto 30px;
    cursor: pointer;
    flex: 0 0 auto;
  }

  #downloadBtn:hover {
    background: #00c2c2;
    color: #fff;
  }

  @media (max-width: 900px) {
    body {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #444;
    }
    .main {
      padding: 10px;
    }
    .viewer-columns {
      flex-direction: column;
      gap: 30px;
    }
    .column {
      max-width: 100%;
    }
    .image-block img {
      max-height: 150px;
    }
  }
  
  .upload-label {
  background: #7CFC00;
  color: #000;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.5em; /* make this bigger or smaller as you like */
  display: inline-block; /* ensures padding and size work nicely */
  text-align: center;
}

.qv-link {
    display: inline-block;             /* allow transform */
    color: #ffffff;
    text-decoration: underline;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: left center;     /* anchor to left side */
}

.qv-link:hover {
    color: lawngreen;
    transform: scale(1.5);             /* 50% larger */
}

.label-inverted {
  color: #98fb98; /* pale green */
}

.label-reversed {
  color: yellow;
}

.label-invrev {
  color: #ffc0cb; /* pink */
}

}

@media (max-width: 1400px) {
    
  * { box-sizing: border-box; }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1e1e1e;
    color: white;
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    width: 300px;
    background: #2a2a2a;
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid #444;
  }

  .sidebar h2 {
    color: #7CFC00; /* Lawn green */
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #7CFC00;
    padding-bottom: 5px;
  }

  .thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .thumb-block {
    text-align: center;
    cursor: pointer;
  }

  .thumb {
    width: 100%;
    max-width: 95px;
    height: auto;
    object-fit: contain;
    border: 2px solid #444;
    border-radius: 8px;
    background: white;
    transition: 0.2s ease;
  }

  .thumb:hover {
    transform: scale(1.03);
    border-color: #7CFC00; /* Lawn green hover */
  }

  .thumb-label {
    font-size: 0.7em;
    color: #ccc;
    margin-top: 4px;
    word-wrap: break-word;
  }

  .main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .main h1 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    margin-top: 10px; /* reduce this number as you like, can be 0 */
  }

  .viewer-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .column {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    display: flex;
    flex-direction: column;
  }

  .section-title {
    font-size: 20px;
    color: #ffcc00;
    margin-bottom: 10px;
    text-align: center;
    flex: 0 0 auto;
  }

  #backColumn .section-title {
    color: #00e6e6;
  }

  #backColumn .viewer-grid {
    border: 2px solid #00e6e6;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #frontColumn .section-title {
    color: #FFD700;
  }

  #frontColumn .viewer-grid {
    border: 2px solid #FFD700;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .image-block {
    background: #2c2c2c;
    border-radius: 10px;
    padding: 6px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .image-block img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    flex-shrink: 0;
  }

.label {
  margin-top: 6px;
  font-weight: bold;
  font-size: 0.8em; /* 50% bigger */
  flex-shrink: 0;
}


  .normal {}
  .inverted { transform: scaleY(-1); }
  .reversed { transform: scaleX(-1); }
  .inverted-reversed { transform: scale(-1, -1); }

  #downloadBtn {
    display: inline-block;
    padding: 12px 20px;
    background: #00e6e6;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    align-self: center;
    max-width: 220px;
    margin: 0 auto 30px;
    cursor: pointer;
    flex: 0 0 auto;
  }

  #downloadBtn:hover {
    background: #00c2c2;
    color: #fff;
  }

  @media (max-width: 900px) {
    body {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #444;
    }
    .main {
      padding: 10px;
    }
    .viewer-columns {
      flex-direction: column;
      gap: 30px;
    }
    .column {
      max-width: 100%;
    }
    .image-block img {
      max-height: 150px;
    }
  }
  
  .upload-label {
  background: #7CFC00;
  color: #000;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em; /* make this bigger or smaller as you like */
  display: inline-block; /* ensures padding and size work nicely */
  text-align: center;
}

.qv-link {
    display: inline-block;             /* allow transform */
    color: #ffffff;
    text-decoration: underline;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: left center;     /* anchor to left side */
}

.qv-link:hover {
    color: lawngreen;
    transform: scale(1.2);             /* 50% larger */
}

.label-inverted {
  color: #98fb98; /* pale green */
}

.label-reversed {
  color: yellow;
}

.label-invrev {
  color: #ffc0cb; /* pink */
}

}


/* =========================
   TABLET (TALL)  (includes iPad landscape)
   ========================= */
@media (max-width: 1100px) and (min-aspect-ratio: 1/1) and (max-aspect-ratio: 89/50) {
    
  * { box-sizing: border-box; }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1e1e1e;
    color: white;
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    width: 300px;
    background: #2a2a2a;
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid #444;
  }

  .sidebar h2 {
    color: #7CFC00; /* Lawn green */
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #7CFC00;
    padding-bottom: 5px;
  }

  .thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .thumb-block {
    text-align: center;
    cursor: pointer;
  }

  .thumb {
    width: 100%;
    max-width: 95px;
    height: auto;
    object-fit: contain;
    border: 2px solid #444;
    border-radius: 8px;
    background: white;
    transition: 0.2s ease;
  }

  .thumb:hover {
    transform: scale(1.03);
    border-color: #7CFC00; /* Lawn green hover */
  }

  .thumb-label {
    font-size: 0.8em;
    color: #ccc;
    margin-top: 4px;
    word-wrap: break-word;
    font-weight: bold;
  }

  .main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .main h1 {
    font-size: 34px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    margin-top: 10px; /* reduce this number as you like, can be 0 */
  }

  .viewer-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .column {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    display: flex;
    flex-direction: column;
  }

  .section-title {
    font-size: 30px;
    color: #ffcc00;
    margin-bottom: 10px;
    text-align: center;
    flex: 0 0 auto;
  }

  #backColumn .section-title {
    color: #00e6e6;
  }

  #backColumn .viewer-grid {
    border: 2px solid #00e6e6;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #frontColumn .section-title {
    color: #FFD700;
  }

  #frontColumn .viewer-grid {
    border: 2px solid #FFD700;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

.image-block {
  background: #2c2c2c;
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  width: 100%;
  /* height: 100%;   <-- remove this */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;      /* important in grid/flex layouts */
}

.image-block img {
  width: 100%;
  height: auto;
  max-height: none;   /* remove hard cap */
  object-fit: contain;
  flex: 1 1 auto;     /* allow it to take remaining space */
  min-height: 0;      /* important so it can shrink */
}

.label {
  margin-top: 6px;
  font-weight: bold;
  font-size: 1.5em; /* 50% bigger */
  flex-shrink: 0;
}


  .normal {}
  .inverted { transform: scaleY(-1); }
  .reversed { transform: scaleX(-1); }
  .inverted-reversed { transform: scale(-1, -1); }

  #downloadBtn {
    display: inline-block;
    padding: 12px 20px;
    background: #00e6e6;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    align-self: center;
    max-width: 220px;
    margin: 0 auto 30px;
    cursor: pointer;
    flex: 0 0 auto;
  }

  #downloadBtn:hover {
    background: #00c2c2;
    color: #fff;
  }

  @media (max-width: 900px) {
    body {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #444;
    }
    .main {
      padding: 10px;
    }
    .viewer-columns {
      flex-direction: column;
      gap: 30px;
    }
    .column {
      max-width: 100%;
    }
    .image-block img {
      max-height: 150px;
    }
  }
  
  .upload-label {
  background: #7CFC00;
  color: #000;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.5em; /* make this bigger or smaller as you like */
  display: inline-block; /* ensures padding and size work nicely */
  text-align: center;
}

.qv-link {
    display: inline-block;             /* allow transform */
    color: #ffffff;
    text-decoration: underline;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: left center;     /* anchor to left side */
}

.qv-link:hover {
    color: lawngreen;
    transform: scale(1.5);             /* 50% larger */
}

.label-inverted {
  color: #98fb98; /* pale green */
}

.label-reversed {
  color: yellow;
}

.label-invrev {
  color: #ffc0cb; /* pink */
}

}

@media (max-width: 1400px) {
    
  * { box-sizing: border-box; }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1e1e1e;
    color: white;
    display: flex;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    width: 300px;
    background: #2a2a2a;
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid #444;
  }

  .sidebar h2 {
    color: #7CFC00; /* Lawn green */
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #7CFC00;
    padding-bottom: 5px;
  }

  .thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .thumb-block {
    text-align: center;
    cursor: pointer;
  }

  .thumb {
    width: 100%;
    max-width: 95px;
    height: auto;
    object-fit: contain;
    border: 2px solid #444;
    border-radius: 8px;
    background: white;
    transition: 0.2s ease;
  }

  .thumb:hover {
    transform: scale(1.03);
    border-color: #7CFC00; /* Lawn green hover */
  }

  .thumb-label {
    font-size: 0.7em;
    color: #ccc;
    margin-top: 4px;
    word-wrap: break-word;
  }

  .main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .main h1 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    margin-top: 10px; /* reduce this number as you like, can be 0 */
  }

  .viewer-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .column {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    display: flex;
    flex-direction: column;
  }

  .section-title {
    font-size: 20px;
    color: #ffcc00;
    margin-bottom: 10px;
    text-align: center;
    flex: 0 0 auto;
  }

  #backColumn .section-title {
    color: #00e6e6;
  }

  #backColumn .viewer-grid {
    border: 2px solid #00e6e6;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #frontColumn .section-title {
    color: #FFD700;
  }

  #frontColumn .viewer-grid {
    border: 2px solid #FFD700;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .image-block {
    background: #2c2c2c;
    border-radius: 10px;
    padding: 6px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .image-block img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    flex-shrink: 0;
  }

.label {
  margin-top: 6px;
  font-weight: bold;
  font-size: 0.8em; /* 50% bigger */
  flex-shrink: 0;
}


  .normal {}
  .inverted { transform: scaleY(-1); }
  .reversed { transform: scaleX(-1); }
  .inverted-reversed { transform: scale(-1, -1); }

  #downloadBtn {
    display: inline-block;
    padding: 12px 20px;
    background: #00e6e6;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    align-self: center;
    max-width: 220px;
    margin: 0 auto 30px;
    cursor: pointer;
    flex: 0 0 auto;
  }

  #downloadBtn:hover {
    background: #00c2c2;
    color: #fff;
  }

  @media (max-width: 900px) {
    body {
      flex-direction: column;
    }
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #444;
    }
    .main {
      padding: 10px;
    }
    .viewer-columns {
      flex-direction: column;
      gap: 30px;
    }
    .column {
      max-width: 100%;
    }
    .image-block img {
      max-height: 140px;
    }
  }
  
  .upload-label {
  background: #7CFC00;
  color: #000;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em; /* make this bigger or smaller as you like */
  display: inline-block; /* ensures padding and size work nicely */
  text-align: center;
}

.qv-link {
    display: inline-block;             /* allow transform */
    color: #ffffff;
    text-decoration: underline;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: left center;     /* anchor to left side */
}

.qv-link:hover {
    color: lawngreen;
    transform: scale(1.2);             /* 50% larger */
}

.label-inverted {
  color: #98fb98; /* pale green */
}

.label-reversed {
  color: yellow;
}

.label-invrev {
  color: #ffc0cb; /* pink */
}

}