body { color: #000; background: #C0C0C0; }
[hidden] { display: none !important; }

h1 { 
  text-align:center; 
  font-size: 2.5em; 
  margin-bottom: 0; 
}

h3 { 
  text-align:center; 
  margin-top: 0; 
}

form { 
  text-align: center; 
  margin: 2em;
}

input { 
  width: 24em; 
  max-width: 55vw; 
  border-radius: 0; 
}

input[type="checkbox" i] {
  width: auto;
}

button { 
  border-radius: 0; 
}

#settings-panel {
  columns: 2; 
  column-gap: 12px;
  width: 400px;
}

#settings-panel .panel {
  display: block;
  break-inside: avoid;
}

.grid { 
  columns: 5 200px; 
  column-gap: 12px; 
}

.pin {
  display: block;
  break-inside: avoid;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  color: #00e;
  text-align: left;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  border: 1px solid #000;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #9A9A9A;
  border-bottom-color: #9A9A9A;
}

.pin img { 
  display: block; 
  width: 100%; 
  height: auto; 
}

.pin p { 
  border-top: 1px solid #9A9A9A;
  margin: 0; 
  padding: 4px;
  overflow-wrap: anywhere; 
}

.pin img.failed { 
  height: 150px; 
  object-fit: contain;
}

.detail-card { 
    margin: 16px 0; 
}

.detail-card > img { 
  max-width: 100%; 
  max-height: 70vh; 
}

.detail-card > video {
  display: block;
  max-width: 100%;
  max-height: 70vh;
}

#detail-description { 
  white-space: pre-line; 
  overflow-wrap: anywhere; 
}

.links a { 
  margin-right: 1em; 
}

footer {
   text-align: center; 
}
.tsu {
  position: fixed;
  bottom: -3px;
}

@media (max-width: 500px) { 
  .grid { 
    columns: 2; 
  }
  .detail-card > img {
    max-height: inherit;
  }

}
