/* --- Mobile overflow guard (home + about) --- */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    overscroll-behavior-y: auto;
  }

  #smooth-wrapper,
  #smooth-content,
  .tp-page-wrapper {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Off-canvas menu must not intercept page scroll when closed */
  .tp-offcanvas-area-2:not(.opened) {
    pointer-events: none;
  }

  .tp-hero-area,
  .tp-hero-bottom-text-wrapper,
  .tp-services-area,
  .tp-portfolio-area,
  .ab-hero__area {
    overflow: hidden;
  }

  .tp-hero-bottom-text,
  .tp-services-bg-text,
  .tp-portfolio-bg-text {
    animation: none !important;
    transform: none !important;
  }

  .ab-hero__right-box,
  .ab-hero__big-img {
    overflow: hidden;
    max-width: 100%;
  }

  .ab-hero__big-img img {
    width: 100% !important;
    max-width: 100%;
    height: auto;
  }

  .ab-hero__circle {
    max-width: 55vw;
  }

  .tp-hero-thumb img {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* --- Breadcrumb / footer nav theme colors --- */
html[tp-theme="tp-theme-dark"] .janigo-breadcrumb,
html[tp-theme="tp-theme-dark"] .janigo-breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
}

html[tp-theme="tp-theme-dark"] .janigo-breadcrumb a:hover {
  color: #7dd3fc;
}

html[tp-theme="tp-theme-dark"] .janigo-breadcrumb [aria-current="page"] {
  color: #e2e8f0;
}

html[tp-theme="tp-theme-dark"] .janigo-footer-nav a {
  color: rgba(255, 255, 255, 0.68);
}

html[tp-theme="tp-theme-dark"] .janigo-footer-nav a:hover {
  color: #7dd3fc;
}

html[tp-theme="tp-theme-light"] .janigo-breadcrumb,
html[tp-theme="tp-theme-light"] .janigo-breadcrumb a {
  color: rgba(15, 24, 62, 0.72);
}

html[tp-theme="tp-theme-light"] .janigo-breadcrumb a:hover,
html[tp-theme="tp-theme-light"] .janigo-breadcrumb [aria-current="page"] {
  color: #0f183e;
}

html[tp-theme="tp-theme-light"] .janigo-footer-nav a {
  color: rgba(15, 24, 62, 0.68);
}

html[tp-theme="tp-theme-light"] .janigo-footer-nav a:hover {
  color: #0f183e;
}

/* Offcanvas logo visibility on dark green panel */
.tp-offcanvas-logo-2 img.logo-white,
.tpoffcanvas__logo img.logo-white {
  max-width: 115px;
  height: auto;
  display: block;
}

.janigo-breadcrumb {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.janigo-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.janigo-breadcrumb li:not(:last-child)::after {
  content: "‹";
  margin-right: 0.5rem;
  opacity: 0.55;
}

.janigo-breadcrumb a {
  color: inherit;
  text-decoration: none;
  opacity: 0.78;
}

.janigo-breadcrumb a:hover {
  opacity: 1;
}

.janigo-breadcrumb [aria-current="page"] {
  opacity: 1;
}

.janigo-related-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 10px;
}

.janigo-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.janigo-footer-nav a {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
}

.janigo-footer-nav a:hover {
  opacity: 1;
}

.janigo-author-more a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Blog cover: show the full image instead of cropping it */
.blog-details__big-thumb {
  height: auto !important;
  overflow: hidden;
  border-radius: 30px;
}

.blog-details__big-thumb img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block;
  border-radius: 30px;
}

@media (max-width: 767px) {
  .blog-details__big-thumb {
    padding: 0 !important;
    border-radius: 16px;
  }

  .blog-details__big-thumb img {
    border-radius: 16px;
  }
}

/* Portfolio thumbs must stay visible (no parallax/contain clipping) */
.tp-portfolio-area {
  content-visibility: visible !important;
  contain: none !important;
}

.tp-portfolio-thumb.portfolio-masonry-thumb {
  height: 560px !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden;
}

@media (max-width: 767px) {
  .tp-portfolio-thumb.portfolio-masonry-thumb {
    height: 420px !important;
  }
}

.tp-portfolio-thumb img,
.portfolio-masonry-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transform: none !important;
  contain: none !important;
  content-visibility: visible !important;
  will-change: auto !important;
}

/* Marquee: don't fight Slick, don't clip the tilt */
.tp-marquee-area,
.tp-marquee-wrapper {
  overflow: visible;
}

.tp-marquee-slider-active.slick-initialized {
  animation: none !important;
}

/* Portfolio cards: stable layout when cover image is missing */
.tp-portfolio-item > a {
  display: block;
}

.tp-portfolio-item .tp-portfolio-content {
  position: relative;
  z-index: 2;
}

.tp-portfolio-thumb.portfolio-masonry-thumb:empty,
.tp-portfolio-thumb.portfolio-masonry-thumb:not(:has(img)) {
  min-height: 280px;
  background: linear-gradient(135deg, rgba(72, 160, 168, 0.18), rgba(5, 17, 27, 0.55));
}

.tp-portfolio-thumb.portfolio-masonry-thumb img[src=""],
.tp-portfolio-thumb.portfolio-masonry-thumb img.jg-img-fallback {
  object-fit: cover !important;
  background: linear-gradient(135deg, rgba(72, 160, 168, 0.18), rgba(5, 17, 27, 0.55));
}


