.triangle-lightbox-trigger {
  cursor: zoom-in;
}

.triangle-lightbox-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.triangle-description-lightbox {
  box-sizing: border-box;
  max-width: calc(100% - 1rem);
  max-height: calc(100% - 1rem);
  margin: auto;
  padding: .5rem;
  border: 0;
  border-radius: .375rem;
  background: #fff;
  color: #222;
}

.triangle-description-lightbox::backdrop {
  background: rgb(0 0 0 / 80%);
}

.triangle-lightbox-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  margin-bottom: .25rem;
}

.triangle-lightbox-actions a {
  color: inherit;
  text-decoration: underline;
}

.triangle-lightbox-actions button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: .25rem;
  color: inherit;
  background: #f0f0f0;
  font-size: 1.5rem;
  line-height: 1;
}

.triangle-description-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  max-height: calc(100dvh - 5rem);
  margin: auto;
  object-fit: contain;
}
