/* ============================================
   MODAL OVERLAY 
============================================ */
.gd-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9999;
}

.gd-modal-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   MODAL CONTENT 
============================================ */
.gd-modal-content {
  position: relative;
  max-width: 92vw;
  max-height: 85vh;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
  animation: zoomIn 0.35s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.88);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================
   MODAL IMAGE 
============================================ */
.gd-modal-img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

/* ============================================
   CAPTION 
============================================ */
.gd-modal-caption {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  padding: 15px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.4px;
}

/* ============================================
   NAVIGATION ARROWS  
   Clean, rounded, blur-glass buttons
============================================ */
.gd-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  
  transition: all 0.25s ease;
  z-index: 2000;
}

.gd-nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: rgba(255, 255, 255, 0.58);
}

.gd-left {
  left: 20px;
}
.gd-right {
  right: 20px;
}

/* SVG ARROW FIX */
.gd-nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: #000;
}

/* ============================================
   MOBILE RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .gd-nav-btn {
    width: 42px;
    height: 42px;
  }

  .gd-nav-btn svg {
    width: 17px;
    height: 17px;
  }

  .gd-left {
    left: 10px;
  }
  .gd-right {
    right: 10px;
  }
}

/* ============================================
   CLOSE BUTTON 
============================================ */
.gd-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 34px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
}

.gd-modal-close:hover {
  transform: rotate(90deg);
}
