/* Modal Styles for Image Viewing */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 85vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Removed animation to prevent double expansion */
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  pointer-events: auto !important;
  user-select: none;
  -webkit-user-select: none;
}

.modal-close:hover,
.modal-close:focus {
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
  text-decoration: none;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.modal-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  pointer-events: none;
}

.modal-content-wrapper > * {
  pointer-events: auto;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.pod-merch-btn,
.experimental-mode-btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.pod-merch-btn:hover,
.experimental-mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.pod-merch-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.pod-merch-btn:hover {
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.experimental-mode-desc {
  margin-top: 10px;
  color: #bbb;
  font-size: 12px;
  text-align: center;
}


/* Responsive modal */
@media screen and (max-width: 768px) {
  .modal-content {
    max-width: 90vw;
    max-height: 80vh;
  }

  .modal-close {
    top: 10px;
    right: 15px;
    font-size: 32px;
    width: 44px;
    height: 44px;
  }
  
  .modal-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .pod-merch-btn,
  .experimental-mode-btn {
    width: 100%;
  }
  
  .modal-content-wrapper {
    padding: 10px;
  }
}

