/* Showcase free gallery (design/mockups/Main.dc.html). Shared by gallery pages and the embed. */

.sc-root {
  --sc-ink: #1E2422;
  --sc-text: #2B2F2E;
  --sc-muted: #5B6461;
  --sc-line: #E4E7E6;
  --sc-focus: #2EA3F2;
  font-family: 'Jost', Helvetica, Arial, sans-serif;
  color: var(--sc-text);
  background: #ffffff;
  font-size: 16px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  text-align: left;
}
.sc-root *, .sc-root *::before, .sc-root *::after { box-sizing: border-box; }
html, body { margin: 0; background: #ffffff; }
.sc-root img { max-width: 100%; }
.sc-root a { color: var(--sc-brand); }
.sc-root a:focus-visible, .sc-root button:focus-visible {
  outline: 3px solid var(--sc-focus);
  outline-offset: 2px;
}
.sc-root ul[role="list"] { list-style: none; margin: 0; padding: 0; }

/* Demo bar: only on demo galleries linked from the landing page. */
.sc-demo { background: #1B1D1F; color: #ffffff; font-size: 14px; }
.sc-demo-in {
  max-width: 1240px; margin: 0 auto; padding: 8px 24px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
}
.sc-root .sc-demo-back { color: #ffffff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; }
.sc-demo-note { color: #C9CBD0; }
.sc-root .sc-demo-cta {
  text-decoration: none; background: #ffffff; color: #1B1D1F; border-radius: 999px;
  min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; font-weight: 600;
}

/* Header */
.sc-header { background: var(--sc-head-bg); color: var(--sc-head-fg); border-bottom: 1px solid var(--sc-line); }
.sc-header-in {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.sc-root .sc-brand {
  display: flex; flex-direction: column; text-decoration: none; line-height: 1;
  color: var(--sc-head-button); min-height: 44px; justify-content: center;
}
.sc-logo { display: block; max-height: 56px; max-width: min(240px, 60vw); width: auto; height: auto; }
.sc-wordmark { font-size: 26px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sc-wordmark-sub {
  font-size: 11px; font-weight: 500; letter-spacing: 0.42em; margin-top: 4px; text-transform: uppercase;
  color: var(--sc-head-sub);
}
.sc-root .sc-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--sc-head-button); border-radius: 999px; color: var(--sc-head-button);
  text-decoration: none; font-weight: 600; font-size: 15px;
}

/* Main */
.sc-main { max-width: 1200px; margin: 0 auto; padding: 44px 24px 24px; }
.sc-main-project { padding-top: 28px; }
.sc-intro {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between;
  margin-bottom: 30px;
}
.sc-h1 { margin: 0; font-size: clamp(30px, 7vw, 40px); font-weight: 600; color: var(--sc-ink); line-height: 1.15; }
.sc-rule { width: 56px; height: 3px; background: var(--sc-accent); margin-top: 12px; }
.sc-lead { margin: 0; max-width: 46ch; color: var(--sc-muted); font-size: 16px; line-height: 1.55; }
.sc-empty { color: var(--sc-muted); font-size: 16px; }

/* Project cards */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 26px; }
.sc-root .sc-card {
  display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--sc-line);
  background: #ffffff; text-decoration: none; color: inherit; transition: transform .25s ease;
}
.sc-root .sc-card:hover { transform: translateY(-3px); }
.sc-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #F3F3F4; }
.sc-card-body { display: block; padding: 14px 16px 16px; }
.sc-card-title { display: block; font-size: 18px; font-weight: 600; color: var(--sc-ink); }
.sc-card-meta { display: block; font-size: 14px; color: var(--sc-muted); margin-top: 4px; }

/* Project page */
.sc-root .sc-all {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; color: var(--sc-brand); font-size: 15px; text-decoration: none;
}
.sc-project-title { margin-top: 10px; margin-bottom: 4px; font-size: clamp(28px, 6.5vw, 36px); }
.sc-project-meta { margin: 0 0 26px; color: var(--sc-muted); font-size: 16px; }
.sc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.sc-root .sc-photo { display: block; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.sc-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: #F3F3F4; }

/* Messages (not available, project not found) */
.sc-message { text-align: center; padding-top: 70px; padding-bottom: 70px; }
.sc-message .sc-lead { margin: 12px auto 26px; max-width: 44ch; line-height: 1.6; }
.sc-root .sc-button {
  min-height: 48px; padding: 0 22px; background: var(--sc-brand); color: #ffffff; text-decoration: none;
  font-weight: 600; display: inline-flex; align-items: center; border-radius: 999px;
}

/* Footer */
.sc-footer { margin-top: 56px; border-top: 1px solid var(--sc-line); }
.sc-footer-in {
  max-width: 1200px; margin: 0 auto; padding: 22px 24px 32px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--sc-muted);
}
.sc-credit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sc-credit img { height: 24px; width: auto; display: block; }
.sc-root .sc-credit a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* Embedded inside a client's page */
.sc-embedded .sc-main { padding-top: 24px; }
.sc-embedded .sc-footer { margin-top: 32px; }

/* Full-screen viewer (built by gallery.js) */
.sc-viewer {
  position: fixed; inset: 0; z-index: 2147483000; background: rgba(12, 14, 13, 0.94);
  display: flex; align-items: center; justify-content: center; padding: 60px 70px;
  font-family: 'Jost', Helvetica, Arial, sans-serif; touch-action: pan-y pinch-zoom;
}
.sc-viewer[hidden] { display: none; }
.sc-viewer-img {
  max-width: 100%; max-height: 100%; object-fit: contain; display: block;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: opacity .2s ease;
}
.sc-viewer-img.sc-loading { opacity: 0.35; }
.sc-viewer button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.14); color: #ffffff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.sc-viewer button:hover { background: rgba(255, 255, 255, 0.24); }
.sc-viewer button:focus-visible { outline: 3px solid #2EA3F2; outline-offset: 2px; }
.sc-viewer-close { top: 14px; right: 14px; }
.sc-viewer-prev { left: 12px; top: 50%; margin-top: -24px; }
.sc-viewer-next { right: 12px; top: 50%; margin-top: -24px; }
.sc-viewer-label { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #D7DCDA; font-size: 14px; }
.sc-viewer button[hidden] { display: none; }

@media (max-width: 600px) {
  .sc-header-in, .sc-main, .sc-footer-in, .sc-demo-in { padding-left: 16px; padding-right: 16px; }
  .sc-main { padding-top: 32px; }
  .sc-viewer { padding: 64px 0; }
  .sc-viewer-prev, .sc-viewer-next { top: auto; bottom: 8px; margin-top: 0; }
  .sc-viewer-prev { left: 16px; }
  .sc-viewer-next { right: 16px; }
  .sc-viewer-label { bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-root .sc-card, .sc-viewer-img { transition: none; }
  .sc-root .sc-card:hover { transform: none; }
}

/* Framework Creative screens (gallery not found) – Screens.dc.html */
.fc-screen {
  margin: 0; min-height: 100vh; background: #E7E8EA; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; box-sizing: border-box; font-family: 'Open Sans', Helvetica, Arial, sans-serif; color: #1B1D1F;
}
.fc-panel {
  background: #ffffff; border-radius: 18px; padding: 36px; max-width: 520px; width: 100%;
  box-sizing: border-box; text-align: center;
}
.fc-panel img { height: 34px; width: auto; }
.fc-404 { font-family: 'Archivo', Helvetica, sans-serif; font-weight: 800; font-size: 80px; line-height: 1; margin-top: 22px; color: #D5D8DC; }
.fc-h { margin: 8px 0 0; font-family: 'Archivo', Helvetica, sans-serif; font-weight: 800; font-size: 28px; }
.fc-p { margin: 10px 0 22px; color: #44474C; font-size: 15px; line-height: 1.6; }
.fc-btn {
  font: inherit; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid #28282B;
  background: #ffffff; color: #1B1D1F; font-weight: 700; font-size: 15px; display: flex;
  align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; width: 100%;
}
.fc-btn:focus-visible { outline: 3px solid #2EA3F2; outline-offset: 2px; }
@media (max-width: 600px) { .fc-panel { padding: 28px 20px; } }
