/* Fullscreen modal */
#wc-image-modal {
  border: none;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: rgba(0,0,0,0.3);
}

#wc-image-modal::backdrop {
  background: rgba(0,0,0,0.3);
}

/* Layout fills entire screen */
#wc-image-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

/* Frame fills screen */
#wc-image-modal .wcim-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image takes up as much as possible */
#wc-image-modal .wcim-img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  margin: auto;
  object-fit: contain;
  display: block;
}

/* Close button top-right */
#wc-image-modal .wcim-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: #000;
  font-size: 26px;
  cursor: pointer;
  z-index: 10;
}

/* Nav arrows */
#wc-image-modal .wcim-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  width: 48px;
  height: 72px;
  cursor: pointer;
  font-size: 32px;
  z-index: 10;
}
#wc-image-modal .wcim-prev { left: 10px; }
#wc-image-modal .wcim-next { right: 10px; }

/* Counter at bottom-center */
#wc-image-modal .wcim-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
  background: rgba(0,0,0,0.5);
  padding: 4px 8px;
  border-radius: 6px;
}
