/* AP Projects, project pages only (Evi 17 Nov, v1).
   1. Aside: two cards. The first (at a glance + our services) scrolls with the page; the second (Need help: phone, email,
      quote) stays in view beside the article on desktops. Nothing is sticky on tablets and phones.
   2. "Examples of ..." photo slider: native scroll-snap track (swipe on touch), prev/next buttons, equal 3:2 tiles. */

/* ---------- 1. aside ---------- */
body.single-project.ap-light #et-boc .et-l .apl-prose-row > .apl-aside.apl-aside--split {
  position: static !important; top: auto !important;
  background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0;
  display: flex; flex-direction: column; gap: 20px;
}
body.single-project.ap-light #et-boc .et-l .apl-aside--split > .apl-aside-card,
body.single-project.ap-light #et-boc .et-l .apl-aside--split > .apl-aside-help {
  width: 100%; margin: 0 !important;
  background: #fff; border: 1px solid var(--apl-line, #e2e8f0); border-radius: var(--apl-radius, 16px);
  box-shadow: var(--apl-shadow-sm, 0 1px 2px rgba(16, 24, 40, .05)); padding: 1.6rem 1.5rem 1.7rem;
}
body.single-project.ap-light #et-boc .et-l .apl-aside--split > .apl-aside-help { align-items: flex-start; }
body.single-project.ap-light #et-boc .et-l .apl-aside--split > .apl-aside-help .et_pb_module { margin: 0; }
body.single-project.ap-light #et-boc .et-l .apl-aside--split > .apl-aside-help .et_pb_button_module_wrapper { margin: 4px 0 0; width: auto; }
@media (min-width: 981px) {
  body.single-project.ap-light #et-boc .et-l .apl-prose-row:has(> .apl-aside--split) { align-items: stretch !important; }
  body.single-project.ap-light #et-boc .et-l .apl-prose-row > .apl-aside.apl-aside--split { align-self: stretch !important; }
}
/* only when the box fits comfortably under the fixed header */
@media (min-width: 981px) and (min-height: 560px) {
  body.single-project.ap-light #et-boc .et-l .apl-aside--split > .apl-aside-help { position: sticky; top: 116px; }
}

/* ---------- 2. photo slider ---------- */
body.ap-light #et-boc .et-l .app-slides__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
body.ap-light #et-boc .et-l .app-slides__head > h2 { margin: 0; padding: 0; font-size: clamp(1.4rem, .8vw + 1.05rem, 1.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; color: var(--app-ink); }
body.ap-light #et-boc .et-l .app-slides__nav { display: flex; gap: 10px; flex: none; }
body.ap-light #et-boc .et-l .app-slides__nav[hidden] { display: none; }
body.ap-light #et-boc .et-l .app-slides__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin: 0;
  border: 1px solid var(--app-line-strong, #c9d3e1); border-radius: 999px; background: #fff; color: var(--app-ink); cursor: pointer;
}
body.ap-light #et-boc .et-l .app-slides__btn svg { width: 20px; height: 20px; }
body.ap-light #et-boc .et-l .app-slides__btn[aria-disabled="true"] { opacity: .4; cursor: default; }
@media (hover: hover) { body.ap-light #et-boc .et-l .app-slides__btn:not([aria-disabled="true"]):hover { border-color: var(--apl-blue, #0a66f2); color: var(--apl-blue-strong, #0050c8); } }
body.ap-light #et-boc .et-l .app-slides__btn:focus-visible { outline: 3px solid var(--apl-blue, #0a66f2); outline-offset: 2px; }
body.ap-light #et-boc .et-l .app-slides__track {
  --gap: 20px; list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
body.ap-light #et-boc .et-l .app-slides__track::-webkit-scrollbar { display: none; }
body.ap-light #et-boc .et-l .app-slides__item { margin: 0; padding: 0; scroll-snap-align: start; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 16px; background: var(--app-tint-2); }
body.ap-light #et-boc .et-l .app-slides__item::before { content: none; }
body.ap-light #et-boc .et-l .app-slides__img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 980px) { body.ap-light #et-boc .et-l .app-slides__track { --gap: 16px; grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (max-width: 640px) { body.ap-light #et-boc .et-l .app-slides__track { --gap: 12px; grid-auto-columns: 86%; } }
@media (prefers-reduced-motion: no-preference) { body.ap-light #et-boc .et-l .app-slides__track { scroll-behavior: smooth; } }
