.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 1.25rem;
  background: rgba(32, 33, 36, 0.9);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  border: 0;
  border-radius: 0;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  padding: 0;
  border: 0;
  border-block-end: 3px solid var(--color-primary, #dc143c);
  background: none;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  background-color: var(--color-primary-hover, #b91c3c);
  color: #ffffff;
  outline: 2px solid var(--color-primary, #dc143c);
  outline-offset: 2px;
}

body.lightbox-open {
  overflow: hidden;
}
