/* GRID */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* CARD */

.portfolio-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  overflow: hidden;
  background: #fafafa;
  cursor: pointer;
}

.portfolio-thumb {
  height: 180px;
  background: #f0f0f0;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-tags {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.portfolio-tags span {
  font-size: 12px;
  padding: 4px 8px;
  background: #eee;
  border-radius: 999px;
}

/* MODAL */

.portfolio-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
}

.portfolio-overlay.active {
  display: flex;
}

.portfolio-modal {
  background: #fff;
  max-width: 720px;
  width: 90%;
  padding: 28px;
  border-radius: 16px;
  position: relative;
  z-index: 1001;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 22px;
  line-height: 1;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1002;
}



/* PORTFOLIO FOOTER */

.portfolio-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #eee;

  display: flex;
  justify-content: flex-end;
}

.portfolio-footer-right {
  display: flex;
  gap: 18px;
}

.portfolio-footer-right a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  position: relative;
}

.portfolio-footer-right a::after {
  content: "↗";
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.6;
}

.portfolio-footer-right a:hover {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
}















/* MODAL BULLETS – CLEAN ENGINEERING STYLE */

.modal-bullets {
  list-style: none;
  padding-left: 0;
  margin: 16px 0 20px;
}

.modal-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.modal-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
}


.portfolio-modal p {
  margin: 12px 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #555;
}

.read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
}



