.agbsp-project-grid {
  display: grid;
  grid-template-columns: repeat(var(--agbsp-columns, 3), minmax(0, 1fr));
  gap: 1.5rem;
}

.agbsp-project-card {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  background: #fff;
}

.agbsp-project-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.agbsp-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.agbsp-project-content { padding: 1.25rem; }
.agbsp-project-title { margin: 0 0 .35rem; font-size: 1.25rem; }
.agbsp-project-title a { color: inherit; text-decoration: none; }
.agbsp-project-meta { margin: 0 0 .9rem; opacity: .68; font-size: .92rem; }
.agbsp-project-excerpt { margin: 0 0 1rem; }
.agbsp-tech-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; }
.agbsp-tech-list span { padding: .25rem .55rem; border-radius: 999px; background: rgba(0,0,0,.06); font-size: .82rem; }
.agbsp-project-links { display: flex; gap: .9rem; font-weight: 600; }
.agbsp-project-links a { text-decoration: none; }
.agbsp-empty { opacity: .7; }
.agbsp-editor-placeholder { padding: 2rem; border: 1px dashed #aaa; text-align: center; border-radius: 8px; }

@media (max-width: 900px) {
  .agbsp-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .agbsp-project-grid { grid-template-columns: 1fr; }
}
.agbsp-custom-values { margin: 14px 0 0; display: grid; gap: 7px; }
.agbsp-custom-values > div { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: baseline; }
.agbsp-custom-values dt { font-weight: 600; }
.agbsp-custom-values dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.agbsp-portfolio {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.agbsp-portfolio-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin: 0 0 3rem;
  padding: 2rem 0 2.25rem;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.agbsp-profile-photo img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}
.agbsp-profile-name { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
.agbsp-profile-headline { margin: .5rem 0 0; font-size: 1.2rem; opacity: .72; }
.agbsp-profile-intro { max-width: 760px; margin-top: 1rem; }
.agbsp-profile-intro p { margin: 0 0 .7rem; }
.agbsp-profile-location { margin: .8rem 0 0; opacity: .7; }
.agbsp-profile-links { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1.15rem; }
.agbsp-profile-links a { font-weight: 600; text-decoration: none; }
.agbsp-portfolio-projects > h2 { margin: 0 0 1.25rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
@media (max-width: 600px) {
  .agbsp-portfolio-hero { grid-template-columns: 1fr; gap: 1.25rem; }
  .agbsp-profile-photo img { width: 112px; height: 112px; }
}

/* Complete Portfolio: hard-coded presentation themes. */
/* Minimal: light, neutral system sans with restrained scale and generous spacing. */
.agbsp-portfolio-style-minimal {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}
.agbsp-portfolio-style-minimal .agbsp-portfolio-hero {
  gap: 1.5rem;
  padding-top: .5rem;
  border-bottom: 1px solid rgba(0,0,0,.16);
}
.agbsp-portfolio-style-minimal .agbsp-profile-name {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.agbsp-portfolio-style-minimal .agbsp-profile-headline {
  font-weight: 400;
  letter-spacing: .01em;
}
.agbsp-portfolio-style-minimal .agbsp-portfolio-projects > h2 {
  font-size: clamp(1.45rem, 2.7vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -.015em;
}
.agbsp-portfolio-style-minimal .agbsp-project-title {
  font-weight: 550;
  letter-spacing: -.01em;
}
.agbsp-portfolio-style-minimal .agbsp-profile-photo img { border-radius: 0; }
.agbsp-portfolio-style-minimal .agbsp-project-card { border-radius: 0; box-shadow: none; }
.agbsp-portfolio-style-minimal .agbsp-tech-list span { border-radius: 2px; background: transparent; border: 1px solid rgba(0,0,0,.14); }

/* Professional: classic serif display type with highly readable sans-serif body copy. */
.agbsp-portfolio-style-professional {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}
.agbsp-portfolio-style-professional .agbsp-portfolio-hero {
  padding: 1.75rem;
  border: 1px solid rgba(0,0,0,.16);
  border-top: 6px solid currentColor;
}
.agbsp-portfolio-style-professional .agbsp-profile-name,
.agbsp-portfolio-style-professional .agbsp-portfolio-projects > h2,
.agbsp-portfolio-style-professional .agbsp-project-title {
  font-family: Georgia, "Times New Roman", serif;
}
.agbsp-portfolio-style-professional .agbsp-profile-name {
  font-size: clamp(2.15rem, 4.7vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.04;
}
.agbsp-portfolio-style-professional .agbsp-profile-headline {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .015em;
}
.agbsp-portfolio-style-professional .agbsp-portfolio-projects > h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0;
}
.agbsp-portfolio-style-professional .agbsp-project-title {
  font-weight: 700;
  letter-spacing: 0;
}
.agbsp-portfolio-style-professional .agbsp-profile-photo img { border-radius: 4px; }
.agbsp-portfolio-style-professional .agbsp-project-card { border-radius: 5px; }
.agbsp-portfolio-style-professional .agbsp-project-content { padding: 1.35rem; }

/* Modern: heavier geometric-feeling system sans with tighter display typography. */
.agbsp-portfolio-style-modern {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}
.agbsp-portfolio-style-modern .agbsp-portfolio-hero {
  padding: 2rem;
  border: 0;
  border-radius: 22px;
  background: rgba(0,0,0,.035);
}
.agbsp-portfolio-style-modern .agbsp-profile-name {
  font-size: clamp(2.3rem, 5.3vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}
.agbsp-portfolio-style-modern .agbsp-profile-headline {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.agbsp-portfolio-style-modern .agbsp-portfolio-projects > h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -.035em;
}
.agbsp-portfolio-style-modern .agbsp-project-title {
  font-weight: 700;
  letter-spacing: -.025em;
}
.agbsp-portfolio-style-modern .agbsp-profile-photo img { border-radius: 50%; }
.agbsp-portfolio-style-modern .agbsp-project-card {
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
.agbsp-portfolio-style-modern .agbsp-profile-links a {
  display: inline-block;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
}

.agbsp-project-detail { margin-top: 1.15rem; }
.agbsp-project-detail + .agbsp-project-detail { margin-top: 1.25rem; }
.agbsp-project-detail h4 { margin: 0 0 .45rem; font-size: .95em; font-weight: 700; line-height: 1.3; }
.agbsp-project-detail p { margin: 0; white-space: normal; }
.agbsp-project-detail-technologies { margin-bottom: .15rem; }


/* Project search and category filtering */
.agbsp-project-filters{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    gap:12px;
    margin:0 0 18px;
}
.agbsp-project-filters label{
    display:flex;
    flex-direction:column;
    gap:5px;
    font-size:14px;
    font-weight:600;
}
.agbsp-project-search{
    flex:1 1 260px;
}
.agbsp-project-category-filter{
    flex:0 1 240px;
}
.agbsp-project-filters input[type="search"],
.agbsp-project-filters select{
    width:100%;
    min-height:40px;
    padding:7px 10px;
    border:1px solid #c3c4c7;
    border-radius:4px;
    background:#fff;
    color:#1d2327;
    font:inherit;
    font-weight:400;
}
.agbsp-project-filter-clear{
    min-height:40px;
    padding:7px 14px;
    border:1px solid #c3c4c7;
    border-radius:4px;
    background:#fff;
    color:#1d2327;
    cursor:pointer;
}
.agbsp-project-filter-status{
    min-height:1.2em;
    margin:-8px 0 12px;
    font-size:14px;
}
.agbsp-project-categories{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:0 0 10px;
}
.agbsp-project-categories span{
    display:inline-block;
    padding:3px 8px;
    border-radius:999px;
    background:rgba(0,0,0,.06);
    font-size:12px;
    line-height:1.4;
}
.agbsp-project-card[hidden]{
    display:none!important;
}
.agbsp-filter-empty{
    margin-top:16px;
}
@media (max-width:600px){
    .agbsp-project-filters{
        align-items:stretch;
    }
    .agbsp-project-search,
    .agbsp-project-category-filter,
    .agbsp-project-filter-clear{
        flex:1 1 100%;
        width:100%;
    }
}
