/* ===================== Base / Reset ===================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

:root {
  --bg: #d6d2cd;          /* warm light gray/tan background */
  --ink: #2c3e50;         /* steel blue for text */
  --muted: #e9d5b5; /* slightly darker sand for section backgrounds */
  --card: #ffffff; /* white/light cards for clean contrast */
  --brand: #d35400;       /* burnt orange accent (sparks, welding glow) */
  --accent: #bdc3c7;      /* brushed silver highlight */
  --ring: rgba(211, 84, 0, 0.45); /* orange glow for hover focus */
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.container{ width:min(1120px, 92%); margin-inline:auto; }



/* ===================== Sections / Cards ===================== */
.section {
  background: var(--bg);
  color: var(--ink);
  padding: 2.5rem 0;         /* vertical spacing lives as padding */
}

.section > *:first-child { 
  margin-top: 0;             /* stop the margin from escaping */
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: #1a1b1b;
  
}

.section-title {
  margin: 0 0 .75rem;
}




/* ===================== Buttons ===================== */

.btn{
  display:inline-block; padding:.7rem 1rem; border:1px solid transparent; border-radius:.8rem;
  font-weight:600; transition: box-shadow .2s ease, transform .04s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background:var(--brand); color:#fff; }
.btn-primary:hover{ box-shadow:0 0 0 6px var(--ring); }
.btn-ghost{ border:1px solid var(--brand); color:var(--brand); }
.btn-ghost:hover{ 
  background: var(--brand);
  color:#fff;
 }


 /* ===================== Conveyor Gallery ===================== */
.conveyor{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.35);
  padding: 10px 0;
}

/* Pause the belt when user hovers anywhere over the conveyor */
.conveyor:hover .conveyor__track{
  animation-play-state: paused;
}

.conveyor__track{
  display: flex;
  gap: 14px;
  align-items: center;
  width: max-content;
  padding: 0 14px;

  /* The belt */
  animation: conveyorScroll 28s linear infinite;
  will-change: transform;
}

/* Small thumbnail look */
.conveyor__img{
  width: 130px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
  background: #fff;
}

/* Hover = pause already happens; this zooms the hovered image */
.conveyor__img:hover{
  transform: scale(1.9);
  z-index: 5;
  border-color: rgba(211,84,0,.7);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

/* Keep zoom from clipping vertically */
.conveyor{
  min-height: 120px;
}

/* Infinite scroll keyframes:
   Because you duplicated the set, we only need to translate half the track width. */
@keyframes conveyorScroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Respect accessibility: stop motion if user prefers reduced motion */
@media (prefers-reduced-motion: reduce){
  .conveyor__track{ animation: none; }
}


.lightbox{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  inset: auto !important;

  background: rgba(0,0,0,.85);
  display: grid;
  place-items: center;

  z-index: 2147483647;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.lightbox[hidden]{ display:none !important; }
.lightbox img { pointer-events: auto; }
.lightbox { cursor: zoom-out; }
.lightbox img { cursor: default; }



/* ===== Fullscreen Lightbox Image Fix ===== */
.lightbox img {
  max-width: 96vw;
  max-height: 96vh;
  width: auto;
  height: auto;

  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__close {
  position: fixed;
  top: 18px;
  right: 22px;
  font-size: 34px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 2;
}


/* ===== Lightbox (hard fullscreen) ===== */
#lightbox.lightbox{
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;

  display: grid !important;
  place-items: center !important;

  background: rgba(0,0,0,.90) !important;
  z-index: 999999 !important;
}

#lightbox.lightbox[hidden]{
  display: none !important;
}

#lightbox.lightbox img{
  width: auto !important;
  height: auto !important;
  max-width: 96vw !important;
  max-height: 92vh !important;
  object-fit: contain !important;
  border-radius: 10px !important;
}

#lightbox .lightbox__close{
  position: fixed !important;
  top: 16px !important;
  right: 18px !important;
  font-size: 38px !important;
  line-height: 1 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  cursor: pointer !important;
  z-index: 1000000 !important;
}
