body, p, a, li, span, strong, em, blockquote, input, textarea, button {
  font-family: 'IBM Plex Mono', monospace !important;
 
  line-height: 1.6 !important;
  color: #333 !important;
}


/* Super specific rule for page titles, excluding site title */
html body h1:not(.site-title), 
html body h2, 
html body h3, 
html body h4, 
html body h5, 
html body h6 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 14px !important; /* Force page titles to 14px */
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  position: relative !important;
  transition: all 0.2s ease-in-out !important;
  color: #333 !important;
}

/* Ensure site title and menu stay at 18px */
nav, .menu, .menu-item, .nav-menu, .site-title, .site-description {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 18px !important;
  color: #333 !important;
}

/* ----- 2. DESKTOP GRID LAYOUT ----- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 10px;
  padding: 20px;
}

.grid-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.grid-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.grid-item:nth-child(3) { grid-column: span 3; grid-row: span 2; }
.grid-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.grid-item:nth-child(5) { grid-column: span 1; grid-row: span 2; }
.grid-item:nth-child(6) { grid-column: span 3; grid-row: span 1; }
.grid-item:nth-child(7) { grid-column: span 2; grid-row: span 2; }
.grid-item:nth-child(8) { grid-column: span 1; grid-row: span 1; }

.grid-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.grid-item:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* 📱 MOBILE GRID */
@media (max-width: 480px) {
  .grid-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding: 10px;
  }

  .grid-item {
    width: 100% !important;
    height: auto !important;
  }

  .grid-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    transform: translateY(10px);
    opacity: 1;
    transition: transform 0.5s ease-out;
  }

  .grid-item img.scrolled {
    transform: translateY(0px) !important;
  }
}

/* 📌 WORKS PAGE STYLING */
/* Existing code up to the WORKS PAGE STYLING section stays the same */
.page-id-542 .works-container {
  width: 100%;
  padding: 50px 5vw;
}

.page-id-542 .collection {
  margin-bottom: 50px;
  transition: transform 0.5s ease-in-out;
  position: relative;
  padding-left: 20px;
  margin-bottom: 30px;
}

.page-id-542 .collection-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #333 !important;
  white-space: nowrap !important;
  position: relative !important;
  display: block !important;
  margin-bottom: 10px !important;
  padding: 5px 0 !important;
  text-align: left !important;
  z-index: 10;
}

/* Modified image-row to mix images */
.page-id-542 .image-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  overflow: visible !important;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: relative; /* Added for layering */
}

.page-id-542 .image-row::-webkit-scrollbar {
  display: none;
}

.page-id-542 .image-row img {
  width: auto;
  height: 120px;
  object-fit: contain;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Added opacity transition */
  position: relative; /* Allow layering */
  z-index: 1; /* Base layer */
  opacity: 0.8; /* Slight transparency for mixing */
}

/* Mix effect: Overlap and shift on hover */
@media (min-width: 769px) {
  .page-id-542 .image-row img:hover {
    transform: scale(2) translateX(-10px); /* Shift slightly left */
    opacity: 1; /* Full opacity on hover */
    z-index: 3; /* Bring to front */
    position: relative;
  }

  .page-id-542 .image-row img:hover + img {
    transform: translateX(20px); /* Push next image right */
    opacity: 0.6; /* Fade it a bit */
    z-index: 2; /* Layer behind hovered image */
  }

  .page-id-542 .image-row img:not(:hover) {
    transform: translateX(0); /* Reset non-hovered images */
    opacity: 0.8; /* Keep them slightly mixed */
  }
}

/* Rest of your mobile and collection-title styling stays unchanged */
@media (max-width: 768px) {
  .page-id-542 {
    overflow-x: hidden !important;
  }

  .page-id-542 .collection-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 10px !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.85) !important;
    z-index: 20 !important;
    padding: 5px 10px !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
    margin-bottom: 10px !important;
    text-align: left !important;
  }

  .page-id-542 .collection {
    overflow: visible !important;
    width: 100% !important;
    padding-top: 20px !important;
  }

  .page-id-542 .image-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    white-space: nowrap !important;
    padding-top: 30px !important;
    width: 100% !important;
    min-width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .page-id-542 .image-row::-webkit-scrollbar {
    display: none;
  }

  .page-id-542 .image-row img {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 120px !important;
    object-fit: contain !important;
    margin-right: 10px !important;
    transition: none !important; /* No hover effects on mobile */
    opacity: 1 !important; /* Full opacity on mobile */
  }
}

/* 📌 FORCE COLLECTION TITLES TO A SMALLER SIZE */
.page-id-542 .collection-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #333 !important;
  white-space: nowrap !important;
  display: block !important;
  margin-bottom: 10px !important;
  padding: 5px 0 !important;
  text-align: left !important;
  z-index: 10 !important;
}

/* 📌 MAKE SURE NO OTHER STYLE OVERRIDES IT */
.page-id-542 .collection-title h2,
.page-id-542 .collection-title h3,
.page-id-542 .collection-title span {
  font-size: 8px !important;
}

/* 📌 FORCE SMALLER SIZE ON MOBILE */
@media (max-width: 768px) {
  .page-id-542 .collection-title {
    font-size: 10px !important;
  }
}