.share-tile {
  position: relative;
  cursor: zoom-in;
}

.share-tile .share-focus-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px;
  background: rgb(20 17 23 / 86%);
  color: #fff;
}

.share-focus-toggle svg {
  width: 19px;
  height: 19px;
}

.share-focus-toggle span { display: none; }

.viewing-share, .viewing-share body { overflow: hidden; }
.viewing-share .picture { isolation: auto; }

.share-tile.focused-share {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  border: 0;
  border-radius: 0;
  background: #09080b;
  color: var(--text);
  cursor: default;
}

.focused-share > video {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.focused-share figcaption {
  padding: 8px 12px;
  background: var(--surface);
}

.focused-share .share-focus-toggle { position: static; }
.focused-share .share-focus-toggle span { display: inline; }
