@media (max-width: 450px) {
  .float-image, .float-image.right {
    float: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
    display: block;
    shape-outside: none;
  }
}

@media (min-width: 576px) {
  .card-body p {
    display: block;
  }
}

@media (max-width: 576px) {
  .float-image.right {
    margin: 0 0 .8rem 1rem;
  }
}

@media (max-width: 576px) {
  .float-image, .float-image.right {
    width: 62%;
    min-width: 200px;
    margin: 0 1rem .8rem 0;
  }
}

@media (max-width: 768px) {
  .float-image {
    width: 55%;
    min-width: 240px;
    margin: 0 1rem .8rem 0;
  }
}

@media (max-width: 768px) {
  .float-image.right {
    margin: 0 0 .8rem 1rem;
  }
}

@media (min-width: 768px) {
  #swiper-1 {
    height: 16rem;
  }
}

@media (max-width: 768px) {
  .map-container iframe {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .thumbnail {
    height: 60px;
  }
}

@media (max-width: 768px) {
  #searchInput {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  #swiper-1 {
    height: 12rem;
  }
}

@media (min-width: 1200px) {
  .image-container .bg {
    max-width: 85%;
  }
}

@media (min-width: 1200px) {
  #snowCarousel .carousel-item {
    height: 34rem;
  }
}

@media (min-width: 1600px) {
  .image-container .bg {
    max-width: 75%;
  }
}

@media (min-width: 1600px) {
  #snowCarousel .carousel-item {
    height: 36rem;
  }
}

.navbar .container {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

.custom-navbar {
  background-image: var(--bs-gradient)!important;
  --bs-bg-opacity: .90;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background-color: rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important;
}

.custom-navbar-ext {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background-color: rgba(33, 37, 41, 0.9);
  background-image: var(--bs-gradient-inv);
}

.custom-navbar .navbar-brand, .custom-navbar .nav-link, .custom-navbar .btn {
  opacity: 1;
  background-color: transparent !important;
}

/* Navigation icon states */

.nav-link.active img.active-icon.d-md-inline-block {
  display: inline-block !important;
}

.nav-link img.default-icon.d-md-inline-block {
  display: inline-block !important;
}

.nav-link.active img.default-icon {
  display: none !important;
}

.nav-link img.active-icon {
  display: none !important;
}

.nav-link img.d-none {
  display: none !important;
}

.nav-link:not(.active):hover img.default-icon {
  display: none !important;
}

.nav-link:not(.active):hover img.active-icon {
  display: inline-block !important;
}

.portfolio-item {
  padding: 1.25rem;
}

.navbar-nav {
  --bs-nav-link-padding-x: 0;
  --bs-nav-link-padding-y: 0.5rem;
  --bs-nav-link-color: var(--bs-navbar-color);
  --bs-nav-link-hover-color: var(--bs-navbar-hover-color);
  --bs-nav-link-disabled-color: var(--bs-navbar-disabled-color);
  display: flex;
  flex-direction: row;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-item span {
  display: flex;
  border: 1px outset var(--bs-body-bg);
  text-align: center;
  font-family: 'ADLaM Display', serif;
  font-size: 14px;
  color: var(--bs-body-bg);
  background-color: #091512;
}

.nav-item {
  text-align: center;
}

.help-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #6c757d;
  color: white;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  cursor: help;
  margin-left: 8px;
}

.help-icon:hover {
  background-color: #495057;
}

.image-container {
  position: relative;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container .bg {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.image-container .g40overlay {
  position: absolute;
  top: 28%;
  left: 23%;
  width: 28%;
  height: auto;
  max-width: 240px;
  min-width: 90px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.image-container .e85overlay {
  position: absolute;
  top: 68%;
  left: 74%;
  width: 35%;
  height: auto;
  max-width: 240px;
  min-width: 90px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.main-product-image {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.main-product-image:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.map-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 10px;
}

.thumbnail {
  height: 80px;
  object-fit: scale-down;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.thumbnail:hover {
  opacity: 1;
  border-color: #007bff;
  transform: scale(1.05);
}

.thumbnail.active {
  opacity: 1;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.gallery-nav {
  cursor: pointer;
  user-select: none;
  display: inline-block;
  transition: opacity 0.2s;
}

.gallery-nav:hover {
  opacity: 0.7;
}

.social {
  text-align: center;
}

/* Newsarticle Formatting */

.float-image {
  width: 34%;
  max-width: 100%;
  height: auto;
  float: left;
  margin: 0 1rem .8rem 0;
  shape-outside: inset(0 round 8px);
  clip-path: inset(0 round 8px);
  border-radius: 8px;
}

.float-image.right {
  float: right;
  margin: 0 0 .8rem 1rem;
  shape-outside: inset(0 round 8px);
  clip-path: inset(0 round 8px);
  border-radius: 8px;
}

.about-section::after {
  content: "";
  display: block;
  clear: both;
}

.cutout {
  shape-outside: polygon();
  clip-path: polygon();
}

/* end of Newsarticle Formatting */

.team-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
  justify-items: center;
}

.teamcard {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  max-width: 320px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teamcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.teamcard img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.teamcard h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.2rem;
}

.teamcard p {
  color: #666;
  font-size: 0.95rem;
}

.card-body p {
  display: none;
}

.bio card {
  width: min-content;
}

/* Apply to all card rows */

.row:has(.card) > .col {
  display: flex;
}

.row:has(.card) .col > a, .row .col > .card {
  display: flex;
  flex: 1;
  width: 100%;
}

.row .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.row .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* If you have lists in cards, push them to bottom */

.row .card-body ul {
  margin-top: auto;
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Breadcrumb styling */

.breadcrumb-item + .breadcrumb-item::before {
  color: #b1f5af;
}

.breadcrumb-item.active {
  color: #f0fff0;
}

.breadcrumb-item a {
  color: #b1f5af;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #a59a94;
  text-decoration: underline;
}

.bs-icon {
  --bs-icon-size: .75rem;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: var(--bs-icon-size);
  width: calc(var(--bs-icon-size) * 2);
  height: calc(var(--bs-icon-size) * 2);
  color: var(--bs-primary);
}

.bs-icon-xs {
  --bs-icon-size: 1rem;
  width: calc(var(--bs-icon-size) * 1.5);
  height: calc(var(--bs-icon-size) * 1.5);
}

.bs-icon-sm {
  --bs-icon-size: 1rem;
}

.bs-icon-md {
  --bs-icon-size: 1.5rem;
}

.bs-icon-lg {
  --bs-icon-size: 2rem;
}

.bs-icon-xl {
  --bs-icon-size: 2.5rem;
}

.bs-icon.bs-icon-primary {
  color: var(--bs-white);
  background: var(--bs-primary);
}

.bs-icon.bs-icon-primary-light {
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .2);
}

.bs-icon.bs-icon-semi-white {
  color: var(--bs-primary);
  background: rgba(255, 255, 255, .5);
}

.bs-icon.bs-icon-rounded {
  border-radius: .5rem;
}

.bs-icon.bs-icon-circle {
  border-radius: 50%;
}

.col > a {
  text-decoration: none;
}

#brandSrch {
  flex: 1 1 auto;
  max-width: 100%;
  padding-right: 0.5rem;
  overflow: hidden;
}

#navButt {
  flex: 0 0 auto;
  padding-left: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#defaultView .col {
  display: flex;
}

#defaultView .col > a {
  display: flex;
  flex: 1;
  width: 100%;
  text-decoration: none;
}

#defaultView .card {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

#defaultView .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#defaultView .card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  object-position: center;
}

#searchInput {
  min-width: 40px;
}

/* --- SNOW CAROUSEL FIX --- */

#snowCarousel {
  position: relative;
  overflow: hidden;
}

/* Set a consistent slide height */

#snowCarousel .carousel-item {
  height: 32vh;
  position: relative;
}

#snowCarousel .carousel-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

#snowCarousel .container {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#swiper-1 .swiper-slide {
  height: 100% !important;
}

/* Make sure images fill the slide */

#swiper-1 .swiper-slide img {
  height: 100% !important;
  object-fit: cover;
}

