/* Ticket Archive: company back-link, image gallery + lightbox, zoomable shots (shared with the Atesen product sites). */
.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.co-by {
  color: var(--text-dim);
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}

.co-by:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}

.all-apps {
  font-weight: 600;
}

/* The site's global button look must not leak into the gallery controls. */
.g-dot,
.g-thumb,
.g-prev,
.g-next,
.g-open,
.shot-btn {
  min-height: 0;
  gap: 0;
  font-weight: inherit;
}

/* Gallery: infographic first, then real app screens and PDF pages; every image opens the lightbox. */
.gallery {
  position: relative;
  justify-self: center;
  width: min(100%, 540px);
  margin: 0;
}

.g-viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.g-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.g-track::-webkit-scrollbar {
  display: none;
}

.g-track:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.g-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  background: var(--surface-2);
  scroll-snap-align: start;
}

.g-slide figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.g-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.g-open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.g-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 650;
  pointer-events: none;
}

.g-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 6px 16px -6px rgb(15 118 110 / 45%);
  pointer-events: none;
}

.g-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.g-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.g-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.g-dot[aria-current="true"] {
  width: 26px;
  background: var(--accent);
}

.g-caption {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.4;
  text-align: center;
}

.g-arrows {
  display: flex;
  gap: 8px;
}

.g-prev,
.g-next {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.g-prev:hover,
.g-next:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}

.g-prev svg,
.g-next svg,
.lb svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.g-thumbs {
  position: relative;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  margin-top: 12px;
}

.g-thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  opacity: 0.9;
  transition:
    opacity 0.18s ease,
    border-color 0.18s ease;
}

.g-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.g-thumb:hover,
.g-thumb[aria-current="true"] {
  border-color: var(--accent);
  opacity: 1;
}

/* How-it-works screens open in the lightbox too. */
.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.shot-btn img {
  transition: transform 0.25s ease;
}

.shot-btn:hover img {
  transform: translateY(-3px);
}

.zoom-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 13px;
}

@media (max-width: 1000px) {
  .gallery {
    width: min(100%, 560px);
  }
}

@media (max-width: 760px) {
  .brand-wrap {
    display: grid;
    gap: 0;
  }
  .co-by {
    margin: -3px 0 0 40px;
    font-size: 11.5px;
    line-height: 1.3;
  }
  .g-caption {
    display: none;
  }
  .g-viewport {
    border-radius: 16px;
  }
  .g-hint {
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 12px;
  }
  .g-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .g-thumbs::-webkit-scrollbar {
    display: none;
  }
  .g-thumb {
    flex: 0 0 62px;
  }
}
