.gallery-page { background: var(--light); }
.gallery-intro { padding-block: clamp(1.65rem, 4vw, 3.5rem) 1.35rem; }
.gallery-intro h1 {
  font-size: clamp(2.8rem, 5.7vw, 5.15rem);
  letter-spacing: -.06em;
  text-wrap: balance;
}
.gallery-intro > p:last-child { color: var(--muted); max-width: 61ch; margin-top: .58rem; }

.gallery-layout, .format-showcase {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(1rem, 3.4vw, 3rem);
  align-items: start;
}
.gallery-sidebar {
  padding: clamp(.85rem, 2.35vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffffa;
}
.gallery-sidebar h2 { font-size: clamp(1.45rem, 2.55vw, 2rem); }
.gallery-groups, .format-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
  margin-top: .8rem;
}
.gallery-groups button, .gallery-navigation button, .format-picker button {
  min-height: 42px;
  border: 1px solid #dadbcf;
  border-radius: 10px;
  background: #fffffa;
  color: #393c32;
  font-size: .79rem;
  font-weight: 650;
  padding: .36rem .52rem;
  cursor: pointer;
}
.gallery-groups button:hover, .gallery-navigation button:hover, .format-picker button:hover { background: #eff0e6; }
.gallery-groups button[aria-pressed="true"], .format-picker button[aria-pressed="true"] { background: #272722; color: #fffdf8; border-color: #272722; }
#example-list { display: grid; margin-top: .8rem; }
.mobile-example-picker { display: none; }
.example-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .55rem;
  padding: .62rem .65rem;
  min-height: 49px;
  border-bottom: 1px solid #e9e8dd;
  color: var(--ink);
  text-decoration: none;
}
.example-link strong, .example-link small { display: block; }
.example-link strong { font-size: .86rem; line-height: 1.25; }
.example-link small { color: var(--muted); font-size: .73rem; }
.example-arrow { color: #645b62; font-size: .85rem; }
.example-link:hover { background: #f8f5ef; }
.example-link[aria-current] { background: #f6e9ed; border-color: transparent; border-radius: 9px; color: #73233b; }
.example-link[aria-current] .example-arrow { color: #8b2947; }
.gallery-navigation { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .32rem; margin-top: .8rem; }
.gallery-navigation span { font-size: .75rem; color: var(--muted); text-align: center; }

.gallery-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: .85rem;
  padding: clamp(1rem, 3vw, 2.3rem) 1rem 1rem;
  overflow: clip;
  border: 1px solid #9b3f532e;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 94% 42%, #f8b899 0, transparent 66%),
    radial-gradient(ellipse at 5% 105%, #f9d1e0 0, transparent 66%),
    linear-gradient(145deg, #9d2852 4%, #cf5e77 52%, #e2a4b7);
}
.gallery-stage::before, .gallery-stage::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}
.gallery-stage::before {
  inset: -7% -18%;
  border-radius: 47%;
  border: 1px solid #fff9ec50;
  box-shadow: inset 0 0 0 34px #fff7e71a, inset 0 0 0 61px #fff7e710, 0 0 0 33px #fff7e71a;
  transform: rotate(-26deg);
}
.gallery-stage::after {
  inset: 0;
  background: radial-gradient(circle, #fff2e576 .75px, transparent 1px) 0 0 / 15px 15px;
  mask-image: radial-gradient(ellipse at center, #0009, transparent 72%);
}
.gallery-phone {
  position: relative;
  width: min(100%, 330px);
  padding: 6px;
  border: 1px solid #e3cdc4;
  border-radius: 35px;
  background: linear-gradient(148deg,#f4e4d8,#332f35 16%,#1d1b20 63%,#655761 91%,#d9bdb4);
  box-shadow: 2px 4px 0 #3b2639, 12px 18px 35px #56263b55, -1px 0 16px #f9d7bc78;
}
.gallery-phone::before, .gallery-phone::after {
  position: absolute;
  right: -4px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  content: "";
  background: #4d3f44;
}
.gallery-phone::before { top: 78px; height: 42px; }
.gallery-phone::after { top: 129px; height: 24px; }
.gallery-phone-screen { overflow: hidden; border-radius: 29px; color: #242a38; background: #f7f8fc; }
.gallery-status { position: relative; display: flex; justify-content: space-between; align-items: center; height: 27px; padding: 0 15px; font-size: .67rem; font-weight: 740; }
.gallery-camera { position: absolute; inset: 7px auto auto 50%; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 45% 40%,#48454f,#12121a 65%); transform: translateX(-50%); }
.gallery-signal { display: flex; align-items: center; gap: 4px; }
.gallery-signal i:first-child { width: 9px; height: 8px; background: #272b40; clip-path: polygon(0 100%,100% 0,100% 100%); }
.gallery-signal i:last-child { width: 12px; height: 7px; border-radius: 2px; border: 1px solid #272b40; box-shadow: inset 8px 0 #272b40; }
.gallery-app-bar { display: flex; align-items: center; gap: .48rem; min-height: 46px; padding: .28rem .62rem; background: #eef1f9; border-bottom: 1px solid #e1e5ee; font-size: .77rem; line-height: 1.2; }
.gallery-app-bar strong, .gallery-app-bar small { display: block; }
.gallery-app-bar small { margin-top: .12rem; color: #555e70; font-size: .65rem; }
.gallery-avatar { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 9px; background: #304775; color: white; font-weight: 750; }
.gallery-back, .gallery-menu { font-size: 1.18rem; }
.gallery-menu { margin-left: auto; }
.gallery-thread { height: 365px; overflow: auto; overscroll-behavior: auto; scrollbar-width: thin; padding: .7rem; }
.gallery-conversation, .gallery-thread .sample { display: flex; flex-direction: column; align-items: flex-start; gap: .34rem; }
.gallery-message, .gallery-thread .bubble { max-width: 92%; padding: .34rem .53rem; border-radius: 11px 11px 11px 4px; color: #293347; background: #e8ebf5; font-size: .77rem; line-height: 1.3; }
.gallery-message.customer, .gallery-thread .customer { align-self: flex-end; border-radius: 11px 11px 4px 11px; color: white; background: #2e4f8a; }
.gallery-composer { display: flex; align-items: center; gap: .45rem; margin: .38rem .6rem 0; padding: .36rem .52rem; border-radius: 15px; background: #e9edf5; color: #555e70; font-size: .68rem; }
.gallery-composer span:last-child { margin-left: auto; }
.gallery-gesture { width: 74px; height: 3px; margin: 9px auto 7px; background: #28283a; border-radius: 8px; }
.gallery-caption { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; column-gap: .31rem; color: #30242b; background: #fff4ebed; padding: .34rem .58rem; border-radius: 20px; font-size: .71rem; text-align: center; }
.demo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .42rem;
}
.demo-playback {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 36px;
  padding: .35rem .66rem;
  border: 1px solid #30242b36;
  border-radius: 20px;
  background: #fff8f2;
  color: #30242b;
  font: 680 .72rem/1.2 Geist, system-ui, sans-serif;
  cursor: pointer;
}
.demo-playback:hover { background: #fff; }
.demo-playback-icon {
  width: 0;
  height: 0;
  border-block: 4px solid transparent;
  border-inline-start: 7px solid currentColor;
}
.demo-playback.is-playing .demo-playback-icon {
  width: 7px;
  height: 9px;
  border-block: 0;
  border-inline: 2px solid currentColor;
}
.gallery-source { margin: .85rem 0 1.65rem; color: var(--muted); font-size: .79rem; }
.handset-platforms {
  display: inline-flex;
  gap: .22rem;
  max-width: 100%;
  padding: .23rem;
  border-radius: 12px;
  background: #fff4ebed;
}
.handset-platforms button {
  min-height: 37px;
  padding: .35rem .82rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4f3640;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}
.handset-platforms button:hover { background: #f5dee4; }
.handset-platforms button[aria-pressed="true"] { background: #522637; color: white; }

.rcs-card, .gallery-thread .mini-product {
  display: grid;
  width: min(93%, 249px);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #d9dfec;
  color: #26334a;
  background: white;
}
.rcs-photo { display: grid; align-items: center; height: 110px; overflow: hidden; background: #e9e8da; }
.rcs-photo-crop { display: block; width: 100%; aspect-ratio: 4 / 3; background: url("/assets/industry-photos.jpg?v=3981db53d626") no-repeat; background-size: 300% 400%; }
.rcs-card-content { display: flex; gap: .42rem; align-items: center; padding: .44rem .5rem; }
.rcs-card-copy { min-width: 0; }
.rcs-card-copy strong, .rcs-card-copy small { display: block; line-height: 1.22; }
.rcs-card-copy strong { font-size: .77rem; }
.rcs-card-copy small { margin-top: .11rem; font-size: .67rem; color: #515e73; }
.rcs-card-action { padding: .34rem .45rem; border-top: 1px solid #e3e7ef; color: #254b88; font-size: .68rem; font-weight: 680; text-align: center; }
.rcs-card-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; flex: none; color: #43557d; background: #edf1fb; font-size: 1.17rem; }
.rcs-booking .rcs-card-icon { color: #7d4357; background: #faedf3; }
.rcs-status .rcs-card-icon { color: #315941; background: #e4efe6; }
.rcs-document .rcs-card-icon { color: #7c5739; background: #f5ecdf; }
.rcs-carousel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: .32rem; }
.rcs-carousel .rcs-card { width: 100%; }
.rcs-carousel .rcs-photo { height: 78px; }
.rcs-carousel .rcs-card-content { align-items: start; }

.format-showcase { align-items: center; }
.format-copy > p:not(.eyebrow) { max-width: 43ch; color: var(--muted); margin-top: .65rem; }
.format-picker { max-width: 410px; margin-block: 1rem .8rem; }
@media (min-width: 980px) {
  .format-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.format-stage {
  background:
    radial-gradient(ellipse at 85% 75%, #dce8c8 0, transparent 60%),
    radial-gradient(ellipse at 15% 15%, #d3dfc5 0, transparent 70%),
    linear-gradient(125deg, #869e82, #afc4a7);
  border-color: #82977942;
}

@media (prefers-reduced-motion: no-preference) {
  .example-link, .gallery-groups button, .gallery-navigation button, .format-picker button { transition: background .23s ease, color .23s ease, border-color .23s ease; }
  .thread-in { animation: thread-in .5s cubic-bezier(.22,.82,.28,1) both; }
  .thread-in .rcs-card, .thread-in .mini-product { animation: card-in .54s cubic-bezier(.22,.82,.28,1) both; }
}
@keyframes thread-in {
  from { opacity: .55; transform: translateY(11px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes card-in {
  from { opacity: .55; transform: translateY(7px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 760px) {
  .gallery-layout, .format-showcase { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .gallery-intro { padding-block: 1.38rem .9rem; }
  .gallery-intro h1 { font-size: clamp(2.55rem, 10vw, 4.25rem); }
  .gallery-sidebar { border-radius: 15px; }
  #example-list { display: none; }
  .mobile-example-picker { display: block; margin-top: .55rem; }
  .mobile-example-picker select {
    width: 100%;
    min-height: 43px;
    padding-inline: .58rem;
    border: 1px solid #e0c4cd;
    border-radius: 9px;
    background: #f6e9ed;
    color: #73233b;
    font: inherit;
    font-size: .87rem;
    font-weight: 650;
  }
  .gallery-navigation { margin-top: .55rem; }
  .gallery-stage { border-radius: 24px; }
}
@media (max-width: 370px) {
  .gallery-stage { padding-inline: .62rem; }
  .gallery-caption { font-size: .64rem; }
  .gallery-thread { padding-inline: .5rem; }
}
.gallery-handset-mount {
  display: grid;
  justify-items: center;
  width: 100%;
  min-width: 0;
}

#format-phone { display: grid; justify-items: center; width: 100%; min-width: 0; }
.format-stage #format-phone .phone { width: min(100%, 274px); }
@media (max-width: 520px) {
  .format-stage #format-phone .phone { max-width: 255px; }
}
