/* Test variant: centered copy and a large, zoomable screenshot on function detail pages. */
main > div.py-20 > div.mx-auto.max-w-7xl > div.grid:has(img[src*="/img/screenshots/functions-20261123/"]) {
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  text-align: center;
}

main > div.py-20 > div.mx-auto.max-w-7xl > div.grid:has(img[src*="/img/screenshots/functions-20261123/"]) > div:first-child {
  margin-inline: auto;
  max-width: 820px;
}

main > div.py-20 > div.mx-auto.max-w-7xl > div.grid:has(img[src*="/img/screenshots/functions-20261123/"]) > div:first-child > div:first-child {
  margin-inline: auto;
}

main > div.py-20 > div.mx-auto.max-w-7xl > div.grid:has(img[src*="/img/screenshots/functions-20261123/"]) > div:first-child > .mt-6 {
  display: flex;
  justify-content: center;
}

main > div.py-20 > div.mx-auto.max-w-7xl > div.grid:has(img[src*="/img/screenshots/functions-20261123/"]) > div:nth-child(2) {
  margin-inline: auto;
  max-width: 1200px;
  width: 100%;
}

main > div.py-20 > div.mx-auto.max-w-7xl > div.grid:has(> div:first-child :is(.lucide-mail, .lucide-printer, .lucide-receipt, .lucide-file-output)) {
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  text-align: center;
}

main > div.py-20 > div.mx-auto.max-w-7xl > div.grid:has(> div:first-child :is(.lucide-mail, .lucide-printer, .lucide-receipt, .lucide-file-output)) > div:first-child {
  margin-inline: auto;
  max-width: 820px;
}

main > div.py-20 > div.mx-auto.max-w-7xl > div.grid:has(> div:first-child :is(.lucide-mail, .lucide-printer, .lucide-receipt, .lucide-file-output)) > div:first-child > div:first-child {
  margin-inline: auto;
}

main > div.py-20 > div.mx-auto.max-w-7xl > div.grid:has(> div:first-child :is(.lucide-mail, .lucide-printer, .lucide-receipt, .lucide-file-output)) > div:first-child > .mt-6 {
  display: flex;
  justify-content: center;
}

main > div.py-20 > div.mx-auto.max-w-7xl > div.grid:has(> div:first-child :is(.lucide-mail, .lucide-printer, .lucide-receipt, .lucide-file-output)) > div:nth-child(2) {
  margin-inline: auto;
  max-width: 1200px;
  width: 100%;
}

img[data-zynq-function-zoom="true"] {
  cursor: zoom-in;
}

img[data-zynq-function-zoom="true"]:focus-visible {
  border-radius: 1rem;
  outline: 3px solid var(--zynq-primary);
  outline-offset: 4px;
}

.zynq-orders-lightbox {
  align-items: center;
  background: #071226;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 2147483000;
}

body.zynq-orders-lightbox-open {
  overflow: hidden;
}

body.zynq-orders-lightbox-open #tidio-chat-root {
  visibility: hidden !important;
}

.zynq-orders-lightbox__figure {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  max-height: 100%;
  max-width: 100%;
  width: 100%;
}

.zynq-orders-lightbox__image {
  background: #eef4ff;
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(2, 13, 43, 0.35);
  display: block;
  height: auto;
  max-height: calc(100vh - 48px);
  max-width: calc(100vw - 48px);
  object-fit: contain;
  width: auto;
}

.zynq-orders-lightbox__close {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(2, 13, 43, 0.12);
  border-radius: 999px;
  color: #020d2b;
  cursor: pointer;
  display: flex;
  font-size: 1.5rem;
  height: 44px;
  justify-content: center;
  position: fixed;
  right: 20px;
  top: 20px;
  width: 44px;
  z-index: 2147483001;
}

.zynq-orders-lightbox__close:focus-visible {
  outline: 3px solid #2186e8;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  main > div.py-20 > div.mx-auto.max-w-7xl > div.grid:has(img[src*="/img/screenshots/functions-20261123/"]) {
    gap: 2rem;
  }

  main > div.py-20 > div.mx-auto.max-w-7xl > div.grid:has(> div:first-child :is(.lucide-mail, .lucide-printer, .lucide-receipt, .lucide-file-output)) {
    gap: 2rem;
  }

  .zynq-orders-lightbox__close {
    right: 10px;
    top: 10px;
  }

  .zynq-orders-lightbox {
    padding: 12px;
  }

  .zynq-orders-lightbox__image {
    max-height: calc(100vh - 24px);
    max-width: calc(100vw - 24px);
  }
}
