/* SB theme: opt-in portfolio cards for gallery-grid layout="projects". */
.project-gallery {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 48px);
  background-color: #f3f7fa;
  color: #132f43;
}

.project-gallery .project-gallery-inner { max-width: 1240px; }
.project-gallery .project-gallery-header { margin-bottom: 48px; }
.project-gallery .project-gallery-eyebrow,
.project-gallery .project-card-eyebrow { color: #2575a9; text-transform: uppercase; }
.project-gallery .project-gallery-header h2 { color: #132f43; }
.project-gallery .project-gallery-intro { max-width: 720px; color: #334f62; }
.project-gallery .project-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

.project-gallery .project-card {
  border: 1px solid rgba(19, 47, 67, 0.13);
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(19, 47, 67, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-gallery .project-card-frame { background-color: #e8eef2; }
.project-gallery .project-card-browser-bar {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(19, 47, 67, 0.12);
  background-color: #f8fafb;
}
.project-gallery .project-card-browser-bar span { width: 7px; height: 7px; border-radius: 50%; background-color: #2575a9; opacity: .55; }
.project-gallery .project-card-browser-bar span:nth-child(2) { background-color: #c08b3d; }
.project-gallery .project-card-browser-bar span:nth-child(3) { background-color: #132f43; }
.project-gallery .project-card-media { background-color: #e8eef2; }
.project-gallery .project-card-image { transition: transform 240ms ease; }
.project-gallery .project-card-content { padding: 26px 28px 28px; }
.project-gallery .project-card-logo { margin-bottom: 18px; }
.project-gallery .project-card h3 { color: #132f43; font-size: 23px; }
.project-gallery .project-card-description { color: #334f62; }
.project-gallery .project-card-features { color: #526a79; font-size: 13px; font-weight: 600; }
.project-gallery .project-card-features li:not(:last-child)::after { content: '•'; margin-left: 14px; color: #c08b3d; }
.project-gallery .project-card-link { min-height: 44px; box-sizing: border-box; color: #17618f; text-decoration-color: rgba(23, 97, 143, .4); }
.project-gallery .project-card-link:hover { text-decoration-color: currentColor; }
.project-gallery .project-card-link:focus-visible { outline: 3px solid #c08b3d; }

@media (hover: hover) and (pointer: fine) {
  .project-gallery .project-card-linked:hover { transform: translateY(-4px); border-color: rgba(37, 117, 169, .3); box-shadow: 0 14px 32px rgba(19, 47, 67, .13); }
  .project-gallery .project-card-linked:hover .project-card-image-top { transform: translateY(-1.5%); }
}

@media (prefers-reduced-motion: reduce) {
  .project-gallery .project-card,
  .project-gallery .project-card-image { transition: none; }
}

@media (max-width: 700px) {
  .project-gallery .project-gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .project-gallery .project-card-content { padding: 22px; }
}

app-gallery-grid .project-gallery .project-card { height: 100%; }
app-gallery-grid .project-gallery .project-card-content { min-height: 0; }
app-gallery-grid .project-gallery .project-card-link { margin-top: auto; }

/* Four-up desktop portfolio for the SB Media Hub showcase. */
.project-gallery { padding: clamp(64px, 6vw, 88px) clamp(20px, 4vw, 56px); }
.project-gallery .project-gallery-inner { max-width: 1440px; }
.project-gallery .project-gallery-header { max-width: 900px; margin-bottom: 40px; }
.project-gallery .project-gallery-intro { max-width: 800px; font-size: clamp(1rem, 1.1vw, 1.12rem); }
.project-gallery .project-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.project-gallery .project-card-media { aspect-ratio: 4 / 3; }
.project-gallery .project-card-content { padding: 22px 22px 24px; }
.project-gallery .project-card-logo { margin-bottom: 14px; }
.project-gallery .project-card h3 { font-size: clamp(1.18rem, 1.4vw, 1.4rem); line-height: 1.22; }
.project-gallery .project-card-description { font-size: .95rem; line-height: 1.55; }
@media (max-width: 1100px) { .project-gallery .project-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .project-gallery { padding: 52px 18px; }
  .project-gallery .project-gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* Runtime cascade: beat GalleryGridComponent's later emulated styles. */
app-gallery-grid .project-gallery {
  padding: clamp(64px, 6vw, 86px) clamp(20px, 4vw, 52px) !important;
}
app-gallery-grid .project-gallery .project-gallery-inner { width: min(100%, 1320px); max-width: 1320px; }
app-gallery-grid .project-gallery .project-gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
app-gallery-grid .project-gallery .project-card-media { aspect-ratio: 16 / 11; }
app-gallery-grid .project-gallery .project-card-content { padding: 20px 20px 22px; }
app-gallery-grid .project-gallery .project-card-description { font-size: 15px; line-height: 1.5; }
@media (max-width: 1100px) {
  app-gallery-grid .project-gallery .project-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  app-gallery-grid .project-gallery { padding: 52px 18px !important; }
  app-gallery-grid .project-gallery .project-gallery-grid { grid-template-columns: minmax(0, 1fr); }
}
