/* project-overlay.css */

.project-overlay-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 34, 60, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vw;
  overflow-y: auto;
}

.project-overlay-content {
  background: #fff;
  border-radius: 1rem;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(26,35,126,0.18);
  position: relative;
  padding: 2.5rem 2rem 2rem 2rem;
  animation: fadeInOverlay 0.3s;
}

.project-overlay-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #1976d2;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.project-overlay-close:hover {
  color: #1a237e;
}

.project-overlay-body {
  max-height: 70vh;
  overflow-y: auto;
}

@keyframes fadeInOverlay {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .project-overlay-content {
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    max-width: 98vw;
  }
}
