/* ============================================================ */
/*                                                              */
/*  CLOSURE NOTICE POPUP                                        */
/*  Nursery Outlet — Scheduled image popup with 1-day cookie    */
/*                                                              */
/* ============================================================ */
.closure-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.closure-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Backdrop */
.closure-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.6s ease;
}
.closure-modal.open .closure-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* Content box */
.closure-content {
  position: relative;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
.closure-modal.open .closure-content {
  transform: translateY(0);
  opacity: 1;
}

/* Image */
.closure-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

/* Close button */
.closure-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease;
  z-index: 2;
}
.closure-close:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* ============================= */
/* Mobile                        */
/* ============================= */
@media (max-width: 768px) {
  .closure-content {
    max-width: 92vw;
    border-radius: 8px;
  }
  .closure-modal .closure-content {
    transform: translateY(25px);
  }
  .closure-modal.open .closure-content {
    transform: translateY(0);
    opacity: 1;
  }
  .closure-close {
    top: 0.4rem;
    right: 0.4rem;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.5rem;
  }
}