/* ================= RESET ================= */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  background: #0e0e0e;
  font-family: Arial, sans-serif;
}


/* ================= GALLERY ================= */
.gallery{
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 24px;
  padding: 40px;
}


/* ================= THUMB ================= */
.thumb{
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;                 /* ❌ white line fix */
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  background: #000;
}

.thumb img{
  width: 100%;
  height: 425px;
  object-fit: cover;
  display: block;                   /* ❌ white gap fix */
}


/* ================= MODAL ================= */
.modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  z-index: 99999;
  overflow-y: auto;
}

.modal.active{
  display: block;
}


/* ================= CLOSE BUTTON ================= */
.close{
  position: fixed;
  top: 30px;
  left: 30px;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  font-weight: bold;
  line-height: 1;

  color: #fff;
  background: rgba(0,0,0,0.8);

  border-radius: 50%;
  cursor: pointer;

  z-index: 999999;                  /* 🔥 WP header se upar */
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.close:hover{
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}


/* ================= MODAL IMAGES ================= */
.modal-images{
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 20px;
  padding: 90px 40px;
}

.modal-images img{
  width: 100%;
  border-radius: 12px;
  display: block;
}


/* ================= MOBILE ================= */
@media (max-width: 768px){

  .gallery{
    grid-template-columns: 100%;
    padding: 20px;
  }

  .thumb img{
    height: auto;          /* 🔥 FIX */
    aspect-ratio: 16 / 9;  /* optional but recommended */
  }

  .modal-images{
    grid-template-columns: 100%;
    padding: 80px 20px;
  }

}
