/* Full-screen Image Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.image-modal img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  cursor: pointer;
  border-radius: 0;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--gold);
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
  padding: 10px;
  line-height: 1;
  user-select: none;
}

.modal-close:hover {
  color: white;
  transform: scale(1.1);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--gold);
  border: none;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
  padding: 15px 20px;
  line-height: 1;
  user-select: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
}

.modal-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.modal-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.modal-prev {
  left: 30px;
}

.modal-next {
  right: 30px;
}

/* Modal navigation arrows - matching features style */
.modal-nav .arrow-left,
.modal-nav .arrow-right {
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  transition: all 0.3s ease;
}

.modal-nav .arrow-left {
  transform: rotate(-135deg);
}

.modal-nav .arrow-right {
  transform: rotate(45deg);
}

/* Arrow hover animations */
.modal-nav:hover .arrow-left {
  transform: rotate(-135deg) translateX(-2px);
  border-color: white;
}

.modal-nav:hover .arrow-right {
  transform: rotate(45deg) translateX(2px);
  border-color: white;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
  .image-modal img {
    max-width: 98vw;
    max-height: 90vh;
  }
  
  .modal-close {
    top: 15px;
    right: 20px;
    font-size: 2rem;
    padding: 15px;
  }
  
  .modal-nav {
    font-size: 1.5rem;
    padding: 12px 16px;
    min-width: 50px;
    min-height: 50px;
  }
  
  .modal-prev {
    left: 20px;
  }
  
  .modal-next {
    right: 20px;
  }
}

/* Disable scaling on touch devices to prevent stuck hover states */
@media (hover: none) {
  .modal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    transform: translateY(-50%);
  }
}

/* Feature gallery image cursor indication */
.feature-gallery img {
  cursor: pointer;
}
