.buk-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.buk-popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s;
}

.buk-popup-overlay.is-hidden {
  display: none;
}

.buk-popup-box {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.buk-popup-link {
  display: block;
  line-height: 0;
}

.buk-popup-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.buk-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}

.buk-popup-close:hover,
.buk-popup-close:focus {
  background: #f2f2f2;
  transform: scale(1.05);
  outline: none;
}

@media (max-width: 600px) {
  .buk-popup-box {
    max-width: 100%;
  }
  .buk-popup-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}
