﻿@media (max-width: 600px) {
    .hero {
      background-size: cover !important;
      background-position: center top !important;
      min-height: 60vw;
    }
  .hero-section {
    width: 100%;
    min-width: 0;
    min-height: 38vw;
    height: auto;
    padding-top: 7vw;
    overflow-x: hidden;
    position: relative;
    margin-top: 0;
  }
  .hero-logo-top-center {
    width: min(88vw, 260px);
    height: auto;
    min-width: 0;
    max-width: none;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 0;
  }
  .hero-4trucks-overlay,
  .hero-animation-wrapper,
  .hero-truck-animation {
    max-width: 100vw !important;
    min-width: 0 !important;
  }
  .hero-4trucks-overlay {
    width: 100vw;
    min-width: 60vw;
    max-width: 100vw;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
  }
  .hero-animation-wrapper {
    width: 100vw;
    min-width: 60vw;
    left: 0;
    top: 0;
    height: 100%;
    overflow-x: visible;
  }
  .hero-truck-animation {
    width: 64vw;
    min-width: 160px;
    max-width: 80vw;
    left: 0;
    bottom: calc(12vw + 3in);
    height: 32vw;
    min-height: 160px;
    max-height: 240px;
    object-fit: contain;
  }
  .hero-intro-overlay {
    min-height: 18vw !important;
    padding: 0.5rem 2vw 0.5rem 2vw !important;
  }
  .hero-intro-overlay > div {
    max-width: 98vw !important;
    padding: 0.7rem 2vw 0.7rem 2vw !important;
    font-size: 1rem !important;
  }
}
/* Top center logo in hero section */
.hero-logo-top-center {
  display: block;
  position: relative;
  width: min(6.5in, 88vw);
  height: auto;
  z-index: 20;
  pointer-events: none;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .hero-logo-top-center {
    width: min(84vw, 320px);
  }
}
/* Overlay 4trucks.png above hero section background */
.hero-4trucks-overlay {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  height: auto;
  .hero-truck-animation {
    width: 128vw;
    min-width: 320px;
    max-width: 160vw;
    left: 0;
    bottom: calc(12vw + 3in);
    height: 64vw;
    min-height: 320px;
    max-height: 480px;
    object-fit: contain;
  }
    opacity: 1;
  }
  100% {
    transform: translateX(-50%);
    opacity: 1;
  }
}
}
/* Simple road for hero section */
.hero-road {
  position: absolute;
  left: 0;
  width: 100vw;
  height: 36px;
  bottom: calc(30px + 2in - 18px + 0.25in);
  background: linear-gradient(to bottom, #444 70%, #222 100%);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 6px 18px 0 rgba(0,0,0,0.18);
  z-index: 10;
}
/* Animated truck driving across hero section */
/* Animation wrapper for truck and box */
.hero-animation-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 20;
}

/* Box animation: moves with truck, then stops in center */
.hero-box-animation {
  position: absolute;
  bottom: calc(30px + 3in);
  left: -300px;
  width: 180px;
  height: auto;
  z-index: 19;
  animation: box-drive 14s linear infinite;
}

@keyframes box-drive {
  0% {
    left: -300px;
    opacity: 0.7;
  }
  40% {
    left: calc(50vw - 90px);
    opacity: 1;
  }
  100% {
    left: calc(50vw - 90px);
    opacity: 1;
  }
}

/* Truck animation: drives all the way across */
.hero-truck-animation {
  position: absolute;
  bottom: calc(78px + 0.25in + 1in);
  left: -300px;
  width: 300px;
  height: auto;
  z-index: 20;
  animation: truck-drive 14s linear infinite;
}

/* Sequential truck animation delays */
.truck-seq-1 {
  animation-delay: 0s;
}
.truck-seq-2 {
  animation-delay: 3.5s;
}
.truck-seq-3 {
  animation-delay: 7s;
}
.truck-seq-4 {
  animation-delay: 10.5s;
}
}

@keyframes truck-drive {
  0% {
    left: -300px;
    opacity: 0.7;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 100vw;
    opacity: 0.7;
  }
}
h2.gradient-heading {
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
}
/* Clock-like hero thumbnails */
.hero-thumb {
  position: absolute;
  width: 2.5in;
  height: 2in;
  object-fit: contain;
  z-index: 5;
}
.thumb-top {
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.thumb-top-right {
  top: calc(25% + 1in);
  left: calc(80% - 2in);
  transform: translate(-50%, -50%);
}
.thumb-bottom-right {
  top: calc(75% + 0.25in);
  left: calc(80% - 4in);
  transform: translate(-50%, -50%);
}
.thumb-bottom-left {
  top: calc(75% + 0.25in);
  left: calc(20% + 4in);
  transform: translate(-50%, -50%);
}
.thumb-top-left {
  top: calc(25% + 1in);
  left: calc(20% + 2in);
  transform: translate(-50%, -50%);
}
/* Hero Section and Center Logo Styles */
.hero-section {
  position: relative;
  width: 100vw;
  min-height: 520px;
  height: auto;
  margin-top: -1in;
  margin-bottom: 0;
  overflow: hidden;
  background: transparent;
  outline: none;
  border: none;
}

}

.center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6in;
  height: 4in;
  z-index: 10;
}
/* Custom grid placement for .move-me */
.move-me {
  grid-column: 1;
  grid-row: 4;
  justify-self: start;
  align-self: end;
}
/* Left-align and top-align the first image in the gallery grid */
.gallery-grid img:first-child {
  justify-self: start;
  align-self: start;
}
/* Hero logo centered in hero section, 5x5 inches, 0.5in margin from top */
.hero-section, .hero {
  position: relative;
}
.hero-logo {
  position: absolute;
  top: 0.5in;
  left: 0.5in;
  width: 320px;
  height: auto;
  z-index: 5;
  }
/* Set hero section height to 6 inches */

.hero-section {
  /* removed duplicate rule */
}
.hero-section, .hero {
  min-height: 600px;
  height: auto;
}
/* Center Start the Conversation button in navbar, make font smaller, stack words vertically */
.navbar .btn-success.btn-lg {
  margin-left: auto;
  margin-right: auto;
  display: block;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}
.navbar .btn-success.btn-lg .stacked-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Move Premium Valley Produce brand 1 inch to the left and decrease font size by 1pt */
/* Move Premium Valley Produce brand 1 inch to the left and decrease font size by 1pt */
.navbar-brand.site-title {
  position: static;
  font-size: 1.25rem;
}
/* Use flexbox for navbar container to prevent overlap and align items */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.hero-slide-img {
  width: 7in !important;
  height: 5in !important;
  max-width: 7in !important;
  max-height: 5in !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  position: static;
}
.hero-left,
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2in;
}
.hero-section {
  /* removed duplicate rule */
}
.hero-slide-img {
  width: 7in !important;
  height: 5in !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
/* Reset Bootstrap defaults */
.carousel-indicators button {
    all: unset;
    display: block;
    cursor: pointer;
}

/* Base thumbnail size */
.carousel-indicators.thumbnails button {
    width: 40px;      /* ← your small size */
    height: 28px;     /* ← your small size */
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin: 0 6px;

/* Hover animation */
.carousel-indicators.thumbnails button:hover {
    transform: scale(1.15) rotate(2deg);
    opacity: 1;
}

/* Active animation */
.carousel-indicators.thumbnails button.active {
    transform: scale(1.25) rotate(3deg);
    opacity: 1;
}
  /* Custom animation for row 1 pic 1 */
  .thumb-overlay-img.twice-rotate-down {
    animation: twiceRotateDown 1.2s cubic-bezier(0.4,0.2,0.2,1);
  }
  @keyframes twiceRotateDown {
    from {
      transform: translateY(-100%) rotate(0deg) scale(0.9);
      opacity: 0.2;
    }
    50% {
      transform: translateY(0) rotate(360deg) scale(1.05);
      opacity: 1;
    }
    to {
      transform: translateY(40%) rotate(720deg) scale(1);
      opacity: 1;
    }
  }
  /* Sweep-in animation for thumbnail overlay */
  .thumb-overlay {
    background: transparent !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 20;
    z-index: 20;
  }
  .thumb-overlay-img {
    width: 300%;
    max-width: none;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    position: relative;
    animation: rotateFade 5s cubic-bezier(0.4,0.2,0.2,1);
    @keyframes rotateFade {
      0% {
        opacity: 0;
        transform: scale(1.2) rotate(0deg);
      }
      40% {
        opacity: 1;
        transform: scale(2.5) rotate(30deg);
      }
      80% {
        opacity: 1;
        transform: scale(4) rotate(60deg);
      }
      100% {
        opacity: 0;
        transform: scale(4) rotate(360deg);
      }
    }
    transform-origin: center center;
  }
  @keyframes sweepInCenter {
    from {
      transform: translateX(100%) scale(0.9);
      opacity: 0.2;
    }
    to {
      transform: translateX(0) scale(1);
      opacity: 1;
    }
  }
  /* Thumbnail Overlay Animation */
  .thumb-overlay {
    background: transparent !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
  }
  /* Hero Section Split */
  .hero-flex {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
  }
  .hero-half {
    width: 50%;
    min-height: 68vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .hero-logo-half {
    background: transparent;
    position: relative;
    left: -2in; /* Move logo 2 inches left */
  }
  .hero-thumbnails-half {
      width: 50%;
      min-height: 68vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background: transparent;
      position: relative;
      right: 0;
  }
    #heroCarousel {
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      min-height: 340px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.18);
      border-radius: 16px;
      overflow: hidden;
    }
  #heroCarouselWrap {
    position: relative;
    top: 3in;
  }
  /* Removed duplicate .hero-logo rule for clarity */
  .hero-thumbnails {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-thumb-img {
    max-width: 180px;
    height: auto;
    margin: 0 8px 8px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  /* Hero Logo Placement */
  .hero-logo-wrapper {
     position: relative;
     top: 0;
     left: 0;
     z-index: 10;
  }

  /* Removed duplicate .hero-logo rule for clarity */
/* Fix orphaned CSS block: wrap in .carousel-indicators.thumbnails .centered-image */
.carousel-indicators.thumbnails .centered-image {
  position: absolute;
  top: 50%;
  left: 8vw;
  transform: translateY(-50%);
  z-index: 2;
}
/* Move carousel arrows inward and overlay images */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  z-index: 2;
  opacity: 0.85;
}
.carousel-control-prev {
  left: 50px;
}
.carousel-control-next {
  right: 50px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-size: 100% 100%;
}
/* GENERAL PAGE STYLING */
:root {
  --gallery-img-size: 192px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 10px 0;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
}
.gallery-grid img {
  /* cleaned up, see above */
}

:root {
  --header-height: 96px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f5f2;
  color: #333333;
  font-size: 1.0625rem;
  line-height: 1.7;
  padding-top: 96px;
  overflow-x: hidden;
}

h1 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
}

p, ul, ol {
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.35rem;
}

.lead {
  font-size: 1.0625rem;
  font-weight: 400;
}

section.container,
section.bg-light {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  width: min(92%, 1100px);
  margin: 0 auto;
}

/* NAVBAR */

.navbar {
  background-color: #f1efed !important;
  border-bottom: 1px solid #e3ddd5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1030;
}

/* Ensure collapsed navbar menu aligns right on mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    /* Reset to Bootstrap default for mobile, only style when .show is present */
    position: static !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0;
    max-width: 100vw;
    border-radius: 0;
    display: none;
    transition: none;
  }
  .navbar-collapse.show {
    position: absolute !important;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 92vw;
    max-width: 340px;
    background: #fff !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 2000;
    padding: 1.5rem 0 1.5rem 0;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 16px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: left 0.2s, transform 0.2s;
  }
  .navbar-nav {
    width: 100%;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem;
    margin: 0 !important;
    padding: 0 !important;
  }
  .navbar-nav .nav-item {
    width: 100%;
    text-align: center;
  }
  body {
    padding-top: var(--header-height);
  }
}

.navbar .container {
  height: 100%;
}

.navbar-brand,
.site-title {
  font-size: clamp(28px, 2.4vw, 36px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: 1px;
  color: #2c5aa0 !important;
  margin: 0 !important;
}

/* Homepage: logo-used carousel styles */
.hero-carousel-block {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 18px;
  margin-top: -1in;
}

.logo-used-carousel-wrap {
  width: min(82vw, 620px);
  margin: 0;
  padding: 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 18px;
  backdrop-filter: none;
  box-shadow: none;
  z-index: 21;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}

.logo-used-carousel-wrap .carousel-item {
  height: clamp(180px, 28vw, 320px);
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

.logo-used-carousel-wrap .carousel-item.active,
.logo-used-carousel-wrap .carousel-item-next,
.logo-used-carousel-wrap .carousel-item-prev {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-used-carousel-wrap .carousel-item img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.logo-used-carousel-wrap .carousel-control-prev-icon,
.logo-used-carousel-wrap .carousel-control-next-icon {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

@media (max-width: 768px) {
  .hero-carousel-block {
    display: none !important;
  }

  .hero-carousel-block {
    padding-top: 12px;
  }

  .logo-used-carousel-wrap {
    width: min(94vw, 480px);
  }
}

.navbar .nav-link {
  font-size: clamp(16px, 1.2vw, 18px) !important;
  font-weight: 500 !important;
  color: #555555 !important;
}

.navbar .nav-link:hover {
  color: #2c5aa0 !important;
}

/* HERO SECTION */
/* Make hero section 50% smaller */

/* --- User's latest hero section and logo styles --- */
.hero-section {
  /* removed duplicate rule */
}

/* LOGO POSITION */
.hero-logo {
  position: absolute;
  top: 0.5in;
  left: 0.5in;
  width: 300px;   /* adjust size here */
  height: auto;
}
/* Removed stray closing brace and orphaned block */
.hero-left-inner {
  padding: 1rem 0;
}
.hero-right .carousel {
  max-width: 340px;
  margin: 0 auto;
}
.carousel-inner .carousel-item:nth-child(4) .carousel-img {
  max-width: 340px !important;
  height: 220px !important;
  object-fit: contain !important;
}
.carousel-inner {
  min-height: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-inner .carousel-item:nth-child(4) .carousel-img,
.carousel-inner .carousel-item:nth-child(4) .carousel-img-large {
  max-width: 400px !important;
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.hero .carousel-inner {
  min-height: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .carousel-img,
.hero .carousel-img-large {
  width: 100%;
  max-width: 260px;
  height: 180px;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
  display: block;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.hero {
  background-image:
    linear-gradient(rgba(0,0,0,.30), rgba(0,0,0,.30)),
    url("images/hero/field.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 60px 0;
}

/* SECTION SPACING */

.section {
  padding: 60px 0;
}

/* PRODUCT CARDS */

.card {
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

/* FOOTER */

footer {
  background-color: #1f4e1f;
  color: #ffffff;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 18px 0 !important;
  font-size: 0.94rem;
  line-height: 1.45;
}

footer p {
  margin-bottom: 0.35rem !important;
}

footer .mb-0 {
  margin-bottom: 0 !important;
}

/* ACCENT COLORS */

.text-primary {
  color: #4fc3f7 !important;
}

.btn-primary {
  background-color: #4fc3f7;
  border-color: #4fc3f7;
}

.btn-primary:hover {
  background-color: #29b6f6;
  border-color: #29b6f6;
}

.bg-primary {
  background-color: #4fc3f7 !important;
}

.bg-light {
  background-color: #efeae3 !important;
}

.logo-soft-bg {
  display: inline-block;
  padding: 6px 12px;
}

.logo-soft-bg img {
  max-width: 850px;
  margin-left: 0;
  margin-right: 0;
}

/* PROGRAMS CAROUSEL */
.thumbnail-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.thumbnail-indicators button {
  width: 80px;
  object-fit: cover;
  margin-left: 0;
  margin-right: 0;
  display: block;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.carousel-item img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
}
.carousel-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-img-large {
  max-width: 400px !important;
}

.manual-carousel .carousel-inner {
  max-width: 380px;
  margin: 0 auto;
}

.pack-style-item {
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

.pack-style-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
  flex-shrink: 0;
}

/* GALLERY GRID */

.gallery-grid-4x4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.gallery-grid-4x4 img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.gallery-thumb {
  cursor: zoom-in;
}

.gallery-lightbox-img {
  max-height: 85vh;
  object-fit: contain;
  background: #000;
}

/* GALLERY LIGHTBOX CAROUSEL (single source of truth) */

#galleryCarousel {
  width: min(6in, calc(100vw - 2rem)) !important;
  height: 5in !important;
  margin: 0 auto !important;
  display: block !important;
}

#galleryCarousel .carousel-inner {
  width: 100% !important;
  height: 100% !important;
  background: #000 !important;
}

#galleryCarousel .carousel-item {
  width: 100% !important;
  height: 5in !important;
  background: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#galleryCarousel .carousel-item.active,
#galleryCarousel .carousel-item-next,
#galleryCarousel .carousel-item-prev {
  display: flex !important;
}

#galleryCarousel .carousel-item img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* Center carousel images and set max-height */
.carousel-item {
  height: 500px; /* set a consistent height */
  overflow: hidden;
}

.carousel-item img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* MOBILE */

@media (max-width: 768px) {
  .gallery-grid-4x4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CTA FIXED BOTTOM */

.cta-fixed-bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 1040;
  white-space: nowrap;
  display: inline-block;
}

/* Hero logo-used carousel: enforce centering despite global carousel rules */
#boxCarousel .carousel-inner {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
}

#boxCarousel .carousel-item {
  width: 100% !important;
  height: clamp(155px, 24vw, 280px) !important;
}

/* Hero section: flex column so logo and carousel stack naturally */
.hero-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding-top: 20px !important;
  padding-bottom: 30px !important;
  min-height: 520px !important;
  margin-top: 0 !important;
  position: relative;
  overflow: visible !important;
  width: 100%;
}

#boxCarousel .carousel-item.active,
#boxCarousel .carousel-item-next,
#boxCarousel .carousel-item-prev {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#boxCarousel .carousel-item img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
}

#boxCarousel .cncrisp-slide-img {
  max-width: 88% !important;
  max-height: 88% !important;
}

#boxCarousel .coolchoice-slide-img {
  transform: scale(1.14);
  transform-origin: center center;
}



/* GoDaddy stability override: prevent carousel wrapper from jumping to top */
.hero-section .hero-carousel-block .logo-used-carousel-wrap {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 auto !important;
}

/* BACK TO TOP */

.back-to-top {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: #198754 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  z-index: 9999 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
}

.back-to-top:hover {
  background: #157347 !important;
  color: #ffffff !important;
}

.site-footer p {
  font-size: 0.95rem;
  line-height: 1.4;
}
/* Added missing closing brace for end of file */


