/* ===========================================
   AOB Image Comparison Modal (Chrome)
   File: aob-ic-modal.css
   Purpose: Modal shell styling (overlay + panel)
   Notes: Slider styling stays in your existing slider CSS
   =========================================== */

/* Modal root (hidden by default) */
.aob-ic-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999; /* above headers/Elementor */
}

/* Open state */
.aob-ic-modal.is-open{
  display: block;
}

/* Backdrop */
.aob-ic-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

/* Panel */
.aob-ic-modal__panel{
  position: relative;
  margin: 6vh auto;
  width: min(92vw, 820px);
  max-height: 88vh;
  overflow: auto;

  background: #111;
  color: #fff;

  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}

/* Body spacing */
.aob-ic-modal__body{
  padding: 18px;
}

/* Title (simple, clean) */
.aob-ic-modal__title{
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 12px;
}

/* Close button */
.aob-ic-modal__close{
  position: absolute;
  top: 10px;
  right: 10px;

  width: 42px;
  height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 999px;

  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;

  cursor: pointer;
}

.aob-ic-modal__close:hover{
  background: rgba(255,255,255,0.22);
}

/* Content wrapper */
.aob-ic-modal__content{
  display: block;
}

/* If you place your image-comparison slider inside the modal,
   force it to be square for this Chrome preview */
#aob-ic-modal--chrome .image-comparison{
  --ic-ratio: 1 / 1;
}

/* Mobile tweaks */
@media (max-width: 480px){
  .aob-ic-modal__panel{
    margin: 4vh auto;
    width: min(94vw, 820px);
    border-radius: 14px;
  }

  .aob-ic-modal__body{
    padding: 14px;
  }
}
