/*
Theme Name: Astra Child
Theme URI: [Enter the URL of your child theme's website or leave it blank]
Description: Child theme of Astra
Author: Namit Shrivastava
Author URI: [Your website URL or leave it blank]
Template: astra
Version: 1.0
*/

/* Custom styles go below this line */
.elementor-widget-image-box .elementor-image-box-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
}
.elementor-widget-image-box .elementor-image-box-img img {
  width: 80px;
  height: auto;
}
.elementor-widget-image-box .elementor-image-box-content{
  flex:1 1 auto;
}


/* Overlay setup */
#menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6); /* dark transparent layer */
  z-index: 999; /* below header and submenu */
  transition: opacity 0.3s ease;
  opacity: 0;
}

/* When active */
#menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Keep header and submenu on top of overlay */
#mainheader,
.mega-menu-wrap {
  position: relative;
  z-index: 1000;
}
#menu-overlay {
  transition: opacity 0.1s ease;
}



/* Magnifier wrapper + lens styles (square lens) */
.magnify {
  position: relative;
  display: inline-block;
  overflow: hidden;    /* clip lens at edges */
  cursor: none;
}

.magnify img {
  display: block;
  width: 100%;
  height: auto;
}

/* Square lens (rounded corners) */
.magnify-lens {
  position: absolute;
  pointer-events: none;
  border-radius: 8px;            /* square with soft corners — change value to taste */
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.95);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: cover;
  transform: translate3d(0,0,0);
  will-change: left, top, background-position;
  z-index: 50;
  display: none;
}

/* Mobile lightbox styles */
.magnify-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 12, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  touch-action: none; /* we'll handle touch actions ourselves */
}

.magnify-lightbox .lb-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.magnify-lightbox img {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  transition: transform 120ms ease-out;
}

/* Close button */
.magnify-lightbox .lb-close {
  position: fixed;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 18px;
  z-index: 10000;
}

/* Hint: small caption or indicator if needed */
.magnify-lightbox .lb-hint {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  z-index: 10000;
  opacity: 0.85;
}
