.photo-share {
  position: relative;
  display: inline-block;
  color: #50504d;
  pointer-events: auto;
}
.photo-share[hidden],
.photo-share [hidden] { display: none !important; }
.photo-share .share-toggle {
  padding: .4em .1em;
  min-height: 32px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  cursor: pointer;
}
.photo-share .share-options {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 3px);
  width: max-content;
  max-width: calc(100vw - 16px);
  box-sizing: border-box;
  overflow: auto;
  padding: 5px 10px;
  border: 1px solid #d8d6ce;
  background: #fffefa;
  color: #292925;
  font: 13px/1.5 Han, system-ui, sans-serif;
  letter-spacing: .01em;
  white-space: normal;
  text-align: start;
}
.photo-share .share-options.below { top: calc(100% + 3px); bottom: auto; }
.photo-share .share-options :is(button,a) {
  display: flex;
  align-items: center;
  min-height: 34px;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  padding: 4px;
  font: inherit;
  color: inherit;
  text-align: start;
  text-decoration: none;
  white-space: nowrap;
}
.photo-share :is(button,a,input):focus-visible { outline: 1px solid currentColor; outline-offset: -1px; }
@media (hover:hover) {
  .photo-share .share-options :is(button,a):hover { text-decoration: underline; text-underline-offset: .2em; }
}
.photo-share .share-status { margin: .4em 4px; padding: 0; font: inherit; color: #555; }
.photo-share .share-status:empty { display: none; }
.photo-share input { box-sizing: border-box; width: min(220px, 68vw); max-width: 100%; margin: 0 0 .4em; font: inherit; }
@media (pointer:coarse) {
  .photo-share .share-toggle, .photo-share .share-options :is(button,a) { min-height: 44px; }
}
