.fera-zoom {
  cursor: zoom-in;
}

.fera-zoom:focus-visible {
  outline: 2px solid #d4a553;
  outline-offset: -3px;
}

body:has(.fera-lightbox[open]) {
  overflow: hidden;
}

.fera-lightbox {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 64px 16px 20px;
  border: 0;
  background: transparent;
  color: #efe7d8;
  text-align: center;
}

.fera-lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fera-lightbox::backdrop {
  background: rgba(8, 10, 9, .96);
}

.fera-lightbox img {
  display: block;
  flex: none;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 132px);
  object-fit: contain;
}

.fera-lightbox p {
  flex-shrink: 0;
  margin: 12px 0 0;
}

.fera-lightbox button {
  position: absolute;
  top: 10px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid #b99a63;
  background: #171b18;
  color: inherit;
  font-size: var(--font-icon);
  cursor: pointer;
}
