.ag-projects-content {
  --ag-black: #101212;
  --ag-ink: #172017;
  --ag-muted: #53634e;
  --ag-line: #dce4d7;
  --ag-cream: #e8f4d6;
}
.ag-projects-content [hidden] { display: none !important; }
body.ag-site .ag-projects-content .ag-hero h1 { color: #fff !important; }
body.ag-site .ag-projects-content .ag-hero .ag-hero-content > p { color: #edf3ea; }
body.ag-site .ag-projects-content .ag-project_gallery { background: #101612; color: #e3ebdf; scroll-margin-top: 95px; }
body.ag-site .ag-projects-content .ag-project_gallery :is(h2,h3) { color: #f6faf3 !important; }
.agp-gallery .ag-section-heading { margin-bottom: 1.5rem; }
.agp-gallery .ag-section-heading p { color: #b9c8b5; }
.agp-tools, .agp-filters, .agp-arrows, .agp-dialog-nav, .agp-dialog-top {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.agp-tools { justify-content: space-between; flex-wrap: wrap; margin-bottom: 1.35rem; }
.agp-filters { flex-wrap: wrap; }
.ag-projects-content .agp-gallery button {
  border: 1px solid #455846;
  border-radius: .4rem;
  background: #1c281e;
  color: #fff;
  cursor: pointer;
  min-height: 44px;
  padding: .55rem .85rem;
  font: inherit;
}
.ag-projects-content .agp-gallery button[aria-pressed=true] { background: var(--ag-accent,#b6ff00); color: #111; border-color: transparent; }
.ag-projects-content .agp-gallery button:disabled { opacity: .4; cursor: default; }
.ag-projects-content .agp-gallery :is(a,button,div):focus-visible { outline: 2px solid #b6ff00; outline-offset: 3px; }
.agp-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: #799553 #18261b;
  padding: 3px 3px 1rem;
}
.agp-card { min-width: 0; scroll-snap-align: start; background: #1a251c; border: 1px solid #364839; border-radius: .8rem; overflow: hidden; }
.agp-cover { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.agp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.agp-cover:hover img { transform: scale(1.045); }
.agp-cover span { position: absolute; right: .8rem; bottom: .8rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ag-accent,#b6ff00); color: #111; font-size: 1.25rem; }
.agp-card-copy { padding: 1.2rem; }
.agp-card-copy h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; margin: .35rem 0 .6rem; }
.agp-card-copy p { color: #c4d1bf; margin: 0; }
.agp-card-copy .agp-category { color: #b6ff00; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.agp-dialog {
  width: min(940px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(.65rem, 2vw, 1.3rem);
  border-radius: .8rem;
  border: 1px solid #455846;
  background: #101612;
  color: #e3ebdf;
}
.agp-dialog::backdrop { background: #060a07de; }
.agp-dialog-top { justify-content: space-between; margin-bottom: .6rem; }
.agp-dialog-top h3 { margin: 0; font-size: clamp(1.3rem, 4vw, 2rem); }
.agp-dialog figure { margin: 0; touch-action: pan-y; }
.agp-dialog figure img { display: block; width: 100%; height: min(53dvh, 520px); object-fit: contain; background: #080d09; }
.agp-dialog figcaption { text-align: center; padding: .45rem; }
.agp-dialog-nav { justify-content: center; }
.agp-thumbs { display: flex; gap: .4rem; margin-top: .5rem; overflow: auto; }
.ag-projects-content .agp-thumbs button { padding: 2px; flex: 0 0 65px; }
.agp-thumbs img { width: 100%; height: 44px; display: block; object-fit: cover; border-radius: .25rem; }
@media (max-width: 920px) { .agp-rail { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (max-width: 580px) { .agp-rail { grid-auto-columns: 88%; } }
@media (prefers-reduced-motion: reduce) { .agp-cover img { transition: none; } }
