/* Editorial app ideas: original photography, native UI, one connected platform. */
.brand-site .app-gallery {
  --ag-ink: #28251f;
  --ag-muted: #706c63;
  padding: 80px 0 64px;
  color: var(--ag-ink);
  background-color: #f8f7f3;
  background-image: linear-gradient(#e9e6df 1px, transparent 1px), linear-gradient(90deg, #e9e6df 1px, transparent 1px);
  background-size: 88px 88px;
  border-block: 1px solid #e8e4dc;
  overflow: clip;
  scroll-margin-top: 108px;
}
.app-gallery .ag-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-block-end: 36px;
}
.app-gallery .ag-intro { max-width: 700px; }
.app-gallery .ag-intro h2 {
  margin: 12px 0 22px;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 500;
  text-wrap: balance;
}
.brand-site .app-gallery .ag-intro h2 em { font-family: 'Crimson Pro', Georgia, serif; font-weight: 400; color: #494332; font-style: italic; }
.app-gallery .ag-intro > p { max-width: 570px; color: var(--ag-muted); font-size: 17px; line-height: 1.65; }
.app-gallery .ag-intro > .eyebrow { font-size: 11px; letter-spacing: .14em; }
.app-gallery .ag-note { display: block; margin-top: 16px; color: var(--ag-muted); font-size: 12px; line-height: 1.5; }
.app-gallery .ag-rail[data-loop="true"] { scroll-snap-type: none; scroll-behavior: auto; scrollbar-width: none; }
.app-gallery .ag-rail[data-loop="true"]::-webkit-scrollbar { display: none; }
.app-gallery .ag-card[hidden] { display: none; }
.app-gallery .ag-rail {
  display: flex;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 4px 20px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  scrollbar-width: thin;
  scrollbar-color: #c9c4b8 transparent;
  list-style: none;
  box-sizing: border-box;
}
.app-gallery .ag-card {
  flex: 0 0 clamp(240px, 21vw, 300px);
  min-width: 0;
  margin: 0;
  padding: 0;
  scroll-snap-align: start;
  list-style: none;
}
.app-gallery .ag-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dedad1;
  border-radius: 18px;
  background: #faf9f6;
  color: var(--ag-ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.app-gallery .ag-link:focus-visible,
.app-gallery .ag-rail:focus-visible { outline: 3px solid #566637; outline-offset: 3px; }
.app-gallery .ag-visual { position: relative; aspect-ratio: 1.4; min-height: 180px; display: grid; place-items: center; overflow: hidden; }
.app-gallery .ag-visual::after { content: ''; position: absolute; inset: 0; background: #191b1320; pointer-events: none; }
.app-gallery .ag-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78);
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
}
.app-gallery .ag-preview {
  position: relative;
  z-index: 1;
  width: 74%;
  padding: 14px 12px;
  border: 1px solid #ffffffb0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px #18180e19;
  color: #292923;
  text-align: start;
  box-sizing: border-box;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) {
  .app-gallery .ag-link:hover .ag-photo { transform: scale(1.045); }
  .app-gallery .ag-link:hover .ag-preview { transform: translateY(-5px); }
  .app-gallery .ag-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
}
.app-gallery .ag-caption { position: relative; padding: 18px 20px; min-height: 100px; box-sizing: border-box; }
.app-gallery .ag-card-arrow { position: absolute; inset-inline-end: 20px; bottom: 18px; color: #767166; font-size: 18px; }
.app-gallery .ag-caption h3 { margin: 0 0 12px; font-size: 16px; font-weight: 550; line-height: 1.3; letter-spacing: -.025em; }
.app-gallery .ag-tag { display: inline-block; padding: 6px 10px; border-radius: 9px; font-size: 12px; font-weight: 500; line-height: 1.25; color: #272626; }
.app-gallery .ag-tag--blue { background: #a9caee; }
.app-gallery .ag-tag--lilac { background: #e4bef1; }
.app-gallery .ag-tag--lemon { background: #f5df5b; }
.app-gallery .ag-tag--rose { background: #edb0ce; }
.app-gallery .ag-tag--mint { background: #bedbca; }
.app-gallery .ag-tag--peach { background: #f4c5a2; }
.app-gallery .ag-micro-label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 500; line-height: 1.4; letter-spacing: .045em; color: #77796e; }
.app-gallery .ag-micro-value { display: block; margin: 0 0 6px; font-size: 42px; line-height: 1; font-weight: 500; letter-spacing: -.05em; }
.app-gallery .ag-micro-foot { display: block; font-size: 10px; line-height: 1.5; color: #77796e; }
.app-gallery .ag-preview--leads { text-align: center; width: 70%; }
.app-gallery .ag-preview--leads .ag-micro-value { color: #414932; }
.app-gallery .ag-mini-row { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 11px; line-height: 1.45; }
.app-gallery .ag-mini-dot { flex-shrink: 0; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: #dceada; color: #486542; font-size: 11px; }
.app-gallery .ag-mini-dot--pending { background: #f7e4c6; color: #986222; }
.app-gallery .ag-preview--proposal { width: 68%; }
.app-gallery .ag-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; direction: ltr; margin: 8px 0 12px; }
.app-gallery .ag-mini-cell { display: block; height: 12px; border-radius: 3px; background: #faf5d8; }
.app-gallery .ag-mini-cell--level-1 { background: #f2eaaa; }
.app-gallery .ag-mini-cell--level-2 { background: #ebd969; }
.app-gallery .ag-mini-cell--level-3 { background: #d5bc42; }
.app-gallery .ag-mini-cell--level-4 { background: #a9983e; }
.app-gallery .ag-mini-chart { display: block; width: 100%; height: 66px; overflow: visible; }
.app-gallery .ag-chart-area { fill: #b5a6df24; }
.app-gallery .ag-chart-line { fill: none; stroke: #9983c5; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.app-gallery .ag-chart-end { fill: #9983c5; stroke: #fff; stroke-width: 2; }
.app-gallery .ag-preview--growth .ag-micro-foot { margin-top: 8px; }
.app-gallery .ag-stock-row { display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 8px; margin: 8px 0; font-size: 10px; }
.app-gallery .ag-mini-track { background: #eef1e9; border-radius: 4px; height: 9px; overflow: hidden; }
.app-gallery .ag-mini-bar { display: block; width: var(--ag-fill); height: 100%; background: #98ad82; border-radius: inherit; }
.app-gallery .ag-preview--stock .ag-stock-row:last-of-type .ag-mini-bar { background: #d5ae6b; }
.app-gallery .ag-mini-row--approval { padding-top: 10px; border-top: 1px solid #eeece7; color: #916a31; }
.app-gallery .ag-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[dir="rtl"] .app-gallery .ag-intro h2 { letter-spacing: -.03em; }
html[dir="rtl"] .brand-site .app-gallery .ag-intro h2 em { font-family: inherit; font-style: normal; }
html.access-motion .app-gallery * { transition: none !important; scroll-behavior: auto !important; }
html.access-contrast .brand-site .app-gallery { background: #fff; color: #000; --ag-ink: #000; --ag-muted: #222; }
html.access-contrast .app-gallery .ag-link,
html.access-contrast .app-gallery .ag-preview { background: #fff; color: #000; border: 2px solid #000; }
html.access-contrast .app-gallery .ag-micro-label,
html.access-contrast .app-gallery .ag-micro-value,
html.access-contrast .app-gallery .ag-micro-foot { color: #000; }
@media (prefers-reduced-motion: reduce) {
  .app-gallery * { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 640px) {
  .brand-site .app-gallery { padding: 62px 0 46px; background-size: 64px 64px; }
  .app-gallery .ag-heading { gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 26px; }
  .app-gallery .ag-intro h2 { font-size: 38px; margin-bottom: 16px; }
  .app-gallery .ag-intro > p { font-size: 15px; }
  .app-gallery .ag-rail { gap: 16px; padding-inline: 20px; scroll-padding-inline: 20px; padding-bottom: 20px; }
  .app-gallery .ag-card { flex-basis: min(72vw, 260px); }
  .app-gallery .ag-caption { padding: 16px 18px; }
  .app-gallery .ag-preview { width: 78%; }
}
