.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 540px;
  width: calc(100% - 40px);
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #333;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.modal-close:hover {
  background: #f0f0f0;
}

.modal-img {
  width: 100%;
  height: auto;
  border: none;
  border-radius: 16px 16px 0 0;
  display: block;
}

.modal-body {
  padding: 24px;
}

.modal-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.modal-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.modal-techs span {
  padding: 4px 12px;
  background: #f2f2f2;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #444;
}

.modal-body p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 24px;
}

.modal-body a {
  display: inline-block;
  padding: 10px 24px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s;
}

.modal-body a:hover {
  background: #333;
}

.modal-body a.hidden {
  display: none;
}
