.tangle-gallery {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tangle-gallery .tangle-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tangle-picker {
  position: relative;
  width: min(100%, 22rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.tangle-picker label {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding-inline: .12em;
  border-bottom: 1px solid #ada98b;
  color: var(--forest);
  font-size: clamp(.94rem, 2.4vw, 1.06rem);
  text-align: center;
  cursor: pointer;
}

.tangle-picker input:checked + label {
  border-bottom: 3px solid currentColor;
}

.tangle-picker input:focus-visible + label {
  outline: 2px dashed currentColor;
  outline-offset: -3px;
}

.tangle-photo {
  display: none;
  grid-column: 1 / -1;
  padding-top: .85rem;
}

#tangle-today:checked ~ #tangle-today-photo,
#tangle-locks:checked ~ #tangle-locks-photo,
#tangle-twists:checked ~ #tangle-twists-photo {
  display: block;
}

.tangle-photo a {
  display: block;
  width: min(82%, 15.5rem);
  max-width: none;
  margin-inline: auto;
}

.tangle-photo figcaption {
  margin-top: .8rem;
  text-align: center;
  text-wrap: balance;
}
