/* Native Elementor portfolio. Its shared template supplies all instance styles. */
.ibp-gallery {
  --ibp-ink: #152b4f;
  --ibp-accent: #2c52b8;
  /* Portfolio imagery is editorial: the screenshot is the object, not a
     card wrapped in a decorative browser frame. */
  --ibp-frame: transparent;
  --ibp-radius: 0;
  --ibp-grid-ratio: 2.055;
  --ibp-carousel-ratio: 2.055;
  color: var(--ibp-ink);
  width: 100%; min-width: 0;
  font-family: inherit;
}
.ibp-gallery.ibp-mode-carousel { padding-block: 112px; background: #edf4fc; overflow: hidden; }
.ibp-gallery.ibp-mode-grid { padding-bottom: 90px; }
.ibp-gallery .ibp-inner { width: min(1440px, calc(100% - 112px)); margin-inline: auto; }
.ibp-gallery, .ibp-gallery * { box-sizing: border-box; }
.ibp-gallery .ibp-gallery-heading {
  font-family: inherit; font-weight: 400; color: var(--ibp-ink);
  font-size: clamp(34px, 4vw, 62px); line-height: 1.1; letter-spacing: -.045em;
  max-width: 1000px; margin: 0 0 42px; padding: 0; text-wrap: balance;
}
.ibp-gallery .ibp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 25px; }
.ibp-gallery .ibp-item { min-width: 0; margin: 0; padding: 0; }
.ibp-gallery .ibp-project-link { display: block; color: inherit; text-decoration: none; border: 0; border-radius: var(--ibp-radius); background: transparent; box-shadow: none; }
.ibp-gallery .ibp-grid-photo { width: 100%; aspect-ratio: auto; overflow: visible; padding: 0; background: transparent; border: 0; border-radius: 0; }
.ibp-gallery .ibp-image, .ibp-gallery .ibp-placeholder { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; object-position: center; margin: 0; }
.ibp-gallery .ibp-placeholder { display: grid; min-height: 240px; place-items: center; background: linear-gradient(135deg, #edf4ff, #dbe7f8); color: #5e779b; padding: 24px; text-align: center; font-size: 18px; overflow-wrap: anywhere; }
.ibp-gallery .ibp-grid-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; }
.ibp-gallery .ibp-caption { font: inherit; font-size: 20px; font-weight: 400; line-height: 1.4; letter-spacing: -.015em; color: var(--ibp-ink); margin: 0; padding: 0; overflow-wrap: anywhere; }
.ibp-gallery .ibp-grid-caption svg { flex-shrink: 0; color: var(--ibp-accent); transition: transform .2s; }
.ibp-gallery .ibp-project-link:hover .ibp-grid-caption svg { transform: translate(2px, -2px); }
.ibp-gallery .ibp-project-link:hover .ibp-caption { color: var(--ibp-accent); }
.ibp-gallery .ibp-project-link:focus-visible { outline: 2px solid var(--ibp-accent); outline-offset: 6px; }
.ibp-gallery .ibp-stage { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; perspective: none; touch-action: pan-y; overflow: visible; outline-offset: -4px; }
.ibp-gallery .ibp-panel { position: absolute; left: 19%; top: 0; width: 62%; height: auto; aspect-ratio: auto; background: transparent; border: 0; border-radius: 0; overflow: visible; box-shadow: none; transition: transform .55s cubic-bezier(.22,.68,.16,1), opacity .45s; transform-style: flat; }
.ibp-gallery .ibp-panel .ibp-image, .ibp-gallery .ibp-panel .ibp-placeholder { width: 100%; height: auto; max-height: none; object-fit: contain; object-position: center; }
.ibp-gallery .ibp-panel.ibp-active { position: relative; transform: translateX(0) scale(1); opacity: 1; z-index: 3; }
.ibp-gallery .ibp-panel.ibp-before { transform: translateX(-102%) scale(.78); opacity: .45; z-index: 1; }
.ibp-gallery .ibp-panel.ibp-after { transform: translateX(102%) scale(.78); opacity: .45; z-index: 1; }
.ibp-gallery .ibp-carousel-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 58px; padding: 0; margin: 20px auto 0; max-width: 900px; border: 0; }
.ibp-gallery .ibp-carousel-meta .ibp-caption { font-size: 18px; }
.ibp-gallery .ibp-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ibp-gallery .ibp-count { font-size: 12px; font-variant-numeric: tabular-nums; color: #5d7597; margin-right: 15px; white-space: nowrap; }
.ibp-gallery .ibp-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 0; margin: 0; border: 1px solid #b8cde8; border-radius: 50%; color: var(--ibp-accent); background: transparent; box-shadow: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.ibp-gallery .ibp-arrow:hover, .ibp-gallery .ibp-arrow:active { border-color: var(--ibp-accent); color: white; background: var(--ibp-accent); }
.ibp-gallery .ibp-arrow:focus-visible, .ibp-gallery .ibp-stage:focus-visible { outline: 2px solid var(--ibp-accent); outline-offset: 4px; }
.ibp-gallery .ibp-arrow svg { width: 20px; height: 20px; pointer-events: none; }
.ibp-gallery .ibp-empty { margin: 0; padding: 35px; background: #edf3fc; color: #5e7595; text-align: center; }
.ibp-gallery .ibp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1200px) { .ibp-gallery .ibp-inner { width: calc(100% - 72px); } }
@media (max-width: 900px) {
  .ibp-gallery .ibp-inner { width: calc(100% - 48px); }
  .ibp-gallery.ibp-mode-carousel { padding-block: 80px; }
  .ibp-gallery .ibp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .ibp-gallery .ibp-panel { width: 63%; left: 18.5%; }
}
@media (max-width: 600px) {
  .ibp-gallery .ibp-inner { width: calc(100% - 40px); }
  .ibp-gallery.ibp-mode-carousel { padding-block: 66px; }
  .ibp-gallery.ibp-mode-grid { padding-bottom: 60px; }
  .ibp-gallery .ibp-gallery-heading { font-size: clamp(30px, 8.5vw, 42px); margin-bottom: 28px; }
  .ibp-gallery .ibp-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ibp-gallery .ibp-panel { left: 11%; top: 0; width: 78%; }
  .ibp-gallery .ibp-panel.ibp-before { transform: translateX(-74%) scale(.73); opacity: .35; }
  .ibp-gallery .ibp-panel.ibp-after { transform: translateX(74%) scale(.73); opacity: .35; }
  .ibp-gallery .ibp-carousel-meta { gap: 12px; }
  .ibp-gallery .ibp-carousel-meta .ibp-caption { font-size: 16px; }
  .ibp-gallery .ibp-controls { gap: 7px; }
  .ibp-gallery .ibp-count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ibp-gallery .ibp-panel, .ibp-gallery .ibp-arrow, .ibp-gallery .ibp-grid-caption svg { transition: none; } }

.ibp-gallery .ib-heading-accent {color: var(--ibp-accent);}

.ibp-gallery#selected-work { scroll-margin-top: 120px; }
.ibp-gallery .ibp-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
.ibp-gallery .ibp-heading-row .ibp-gallery-heading { flex: 1; margin-bottom: 0; }
.ibp-gallery .ibp-all-projects { display: inline-flex; align-items: center; justify-content: center; gap: 20px; flex-shrink: 0; padding: 17px 22px; margin-top: 6px; color: #fff; background: var(--ibp-accent); border: 1px solid var(--ibp-accent); border-radius: 3px; box-shadow: none; font-size: 15px; line-height: 1.5; text-decoration: none; }
.ibp-gallery .ibp-all-projects:hover { color: #fff; background: #183c96; border-color: #183c96; }
.ibp-gallery .ibp-all-projects:focus-visible { outline: 2px solid var(--ibp-accent); outline-offset: 4px; }
.ibp-gallery .ibp-arrow:disabled, .ibp-gallery .ibp-arrow:disabled:hover { opacity: .35; cursor: default; color: var(--ibp-accent); background: transparent; border-color: #b8cde8; }
.ibp-gallery .ibp-more { margin: 48px 0 0; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.4; letter-spacing: -.025em; color: var(--ibp-accent); }
@media (max-width: 900px) { .ibp-gallery .ibp-heading-row { flex-direction: column; gap: 22px; } .ibp-gallery .ibp-all-projects { margin-top: 0; } }
