.graymere-photo-open {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.graymere-photo-open span {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 8px;
  padding: 8px 12px;
  color: #f5edda;
  background: #102019ed;
  border: 1px solid #b49a58;
  font: 12px/1.4 Arial, sans-serif;
}

#graymere .supplied-estate figcaption {
  pointer-events: none;
  max-width: calc(100% - 130px);
}

.graymere-photo-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #07110d;
}

.graymere-photo-dialog > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.graymere-photo-dialog form {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  margin: 0;
}

.graymere-photo-dialog button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #b49a58;
  border-radius: 50%;
  color: #f5edda;
  background: #102019ed;
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.graymere-photo-open:focus-visible,
.graymere-photo-dialog button:focus-visible {
  outline: 2px solid #e7c57e;
  outline-offset: 2px;
}
