.aricert-lightbox {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  outline: none;
  overflow: visible;
}

.aricert-lightbox::backdrop {
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(4px);
}

.aricert-lightbox__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.aricert-lightbox__img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  user-select: none;
  transition: opacity 0.2s ease;
}

.aricert-lightbox__img.is-loading {
  opacity: 0.4;
}

.aricert-lightbox__caption {
  color: #e0e0e0;
  margin-top: 12px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  text-align: center;
  max-width: 80ch;
  line-height: 1.4;
}

.aricert-lightbox__btn {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
  user-select: none;
  z-index: 10;
}

.aricert-lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.aricert-lightbox__btn:active {
  transform: scale(0.95);
}

.aricert-lightbox__close {
  top: 20px;
  right: 20px;
}

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

@media (max-width: 768px) {
  .aricert-lightbox__close {
    top: 10px;
    right: 10px;
  }
}