/* Propelus – smooth scroll motion */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Scroll progress bar */
.sm-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #F26522, #ff8a4c);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 2000;
  pointer-events: none;
}

/* Reveal states – only applied when JS is running */
.sm-js .sm-reveal {
  opacity: 0;
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--sm-delay, 0ms);
  will-change: opacity, transform;
}

.sm-js .sm-up    { transform: translate3d(0, 36px, 0); }
.sm-js .sm-left  { transform: translate3d(-48px, 0, 0); }
.sm-js .sm-right { transform: translate3d(48px, 0, 0); }
.sm-js .sm-zoom  { transform: translate3d(0, 24px, 0) scale(0.96); }

.sm-js .sm-reveal.sm-in {
  opacity: 1;
  transform: none;
}

/* Keep horizontal slide-ins from causing sideways scroll */
main, footer {
  overflow-x: clip;
}

/* =========================================================
   Inner-page banner – same height & design on every page
   ========================================================= */
.page-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 380px;
  padding: 90px 0;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.page-banner__bg {
  position: absolute;
  inset: -4% 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: pbZoom 14s ease-out forwards;
  z-index: -2;
}

@keyframes pbZoom {
  to { transform: scale(1); }
}

.page-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 25, 60, 0.94) 0%, rgba(14, 35, 85, 0.82) 42%, rgba(14, 35, 85, 0.35) 75%, rgba(242, 101, 34, 0.45) 100%),
    linear-gradient(0deg, rgba(5, 12, 30, 0.55) 0%, rgba(5, 12, 30, 0) 45%);
}

.page-banner__inner {
  max-width: 760px;
  animation: pbIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pbIn {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: none; }
}

.page-banner__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 6px 16px;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: fit-content;
}

.page-banner__crumbs li {
  display: inline-flex;
  align-items: center;
  color: #F26522;
}

.page-banner__crumbs li + li::before {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.6rem;
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.55);
}

.page-banner__crumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-banner__crumbs a:hover {
  color: #fff;
}

.page-banner__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.page-banner__subtitle {
  margin: 14px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
}

.page-banner__accent {
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 22px;
  border-radius: 4px;
  background: linear-gradient(90deg, #F26522, #ffb08a);
}

@media (max-width: 767.98px) {
  .page-banner {
    min-height: 280px;
    padding: 64px 0;
  }
  .page-banner__overlay {
    background: linear-gradient(180deg, rgba(10, 25, 60, 0.75) 0%, rgba(14, 35, 85, 0.92) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-banner__bg, .page-banner__inner { animation: none; transform: none; }
}

/* =========================================================
   Gallery lightbox with prev / next arrows
   ========================================================= */
.pl-lock, .pl-lock body { overflow: hidden; }

.pl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pl-lightbox[hidden] { display: none; }
.pl-lightbox.is-open { opacity: 1; }

.pl-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 34, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.pl-lightbox__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pl-lightbox__close {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.3rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pl-lightbox__close:hover { background: #F26522; transform: rotate(90deg); }

.pl-lightbox__stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1200px, calc(100vw - 180px));
  text-align: center;
}

.pl-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 210px);
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate3d(calc(var(--pl-dir, 0) * 40px), 0, 0) scale(0.97);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pl-lightbox__img.is-in { opacity: 1; transform: none; }

.pl-lightbox__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #F26522;
  border-radius: 50%;
  animation: plSpin 0.8s linear infinite;
  opacity: 0;
  pointer-events: none;
}

.pl-lightbox.is-loading .pl-lightbox__spinner { opacity: 1; }

@keyframes plSpin { to { transform: rotate(360deg); } }

.pl-lightbox__caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  color: #fff;
}

.pl-lightbox__cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F26522;
}

.pl-lightbox__title { font-size: 1.1rem; }
.pl-lightbox__text  { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }

.pl-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  margin-top: -29px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pl-lightbox__nav:hover,
.pl-lightbox__nav:focus-visible {
  background: #F26522;
  border-color: #F26522;
  outline: none;
}

.pl-lightbox__nav--prev { left: 28px; }
.pl-lightbox__nav--next { right: 28px; }
.pl-lightbox__nav--prev:hover { transform: translateX(-3px); }
.pl-lightbox__nav--next:hover { transform: translateX(3px); }
.pl-lightbox.is-single .pl-lightbox__nav { display: none; }

@media (max-width: 767.98px) {
  .pl-lightbox__stage { max-width: calc(100vw - 24px); }
  .pl-lightbox__img { max-height: calc(100vh - 260px); }
  .pl-lightbox__nav {
    top: auto;
    bottom: 22px;
    margin-top: 0;
    width: 50px;
    height: 50px;
  }
  .pl-lightbox__nav--prev { left: calc(50% - 62px); }
  .pl-lightbox__nav--next { right: calc(50% - 62px); }
}

/* Gallery cards – active filter style */
.filter-btn.active {
  background-color: #F26522 !important;
  border-color: #F26522 !important;
  color: #fff !important;
}

/* Home "Expert Works" slider – equal photo height on every card */
#expert-works .expert-card-img {
  aspect-ratio: 4 / 3;
  height: auto !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
}
