/* ============================================
   HOMEPAGE: 3-column equal grid
   ============================================ */

/* 3-column grid — desktop only (float-based, works with Cargo lazy loading) */
@media (min-width: 768px) {
  div[thumbnails="columns"][grid-row] {
    display: block !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
  }
  div[thumbnails="columns"][grid-row] > .column {
    float: left !important;
    width: 33.333% !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
  div[thumbnails="columns"][grid-row] [thumbnails-pad] {
    padding: 0 !important;
  }
}

/* Consistent thumbnail height via 4:3 aspect-ratio */


/* ============================================
   MOBILE: single column, no rounded corners
   ============================================ */


body.mobile div[thumbnails="columns"][grid-row] [thumbnails-pad] {
  padding: 1rem !important;
}

/* ============================================
   GRID: seamless title labels
   ============================================ */

div[thumbnails="columns"][grid-row] .title {
  padding: 0.55rem 0.7rem 0.35rem !important;
  margin-top: 0 !important;
}

/* ============================================
   SCROLL HAND: homepage only (CSS fallback)
   ============================================ */

body:not(.homepage) #mm-scroll-hand,
body:not(.homepage) #mm-explosion {
  display: none !important;
}

/* ============================================
   NAV: INFO / SHOP / INSTAGRAM polygon shapes
   ============================================ */

/* Nav h1 → horizontal row, right-aligned */
[data-ce-model-id="7655785"] h1,
[local-style="7655785"] h1 {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
  line-height: 1 !important;
}

/* All nav links: octagon polygon background */
[data-ce-model-id="7655785"] h1 a,
[local-style="7655785"] h1 a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #222fe9 !important;
  color: #fff !important;
  border-bottom: none !important;
  padding: 0.55em 2.2em !important;
  clip-path: polygon(
    29.3% 0%, 70.7% 0%,
    100% 29.3%, 100% 70.7%,
    70.7% 100%, 29.3% 100%,
    0% 70.7%, 0% 29.3%
  ) !important;
  line-height: 1.2 !important;
  transition: opacity 0.2s !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  font-size: 1.1rem !important;
}

[data-ce-model-id="7655785"] h1 a:hover,
[local-style="7655785"] h1 a:hover {
  opacity: 0.75 !important;
}

/* Mobile nav adjustments */
body.mobile [data-ce-model-id="7655785"] h1 a,
body.mobile [local-style="7655785"] h1 a {
  font-size: 0.95rem !important;
  padding: 0.5em 1.8em !important;
}

/* No rounded corners anywhere */
* {
  border-radius: 0 !important;
}

/* ============================================
   HOMEPAGE: scroll indicator hand icon
   ============================================ */

/* Hide old hand glyph from nav */
[data-ce-model-id="7655785"] h1 > b:first-child,
[local-style="7655785"] h1 > b:first-child {
  display: none;
}

/* Scroll indicator container */
#mm-scroll-hand {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  font-size: 3rem;
  z-index: 999;
  pointer-events: none;
  opacity: 1;
  color: #222fe9;
  animation: mm-bounce 1.8s ease-in-out infinite;
  line-height: 1;
}

body.homepage.scrolled-far #mm-scroll-hand {
  opacity: 0;
  transition: opacity 0.3s;
}

@keyframes mm-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Explosion SVG element */
#mm-explosion {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) scale(0.1);
  width: 120px;
  height: auto;
  pointer-events: none;
  z-index: 998;
  opacity: 0;
}

#mm-explosion.boom {
  animation: mm-svg-burst 0.5s ease-out forwards;
}

@keyframes mm-svg-burst {
  0%   { transform: translateX(-50%) scale(0.1) rotate(-5deg); opacity: 0.7; }
  50%  { transform: translateX(-50%) scale(0.6) rotate(3deg); opacity: 0.5; }
  100% { transform: translateX(-50%) scale(0.9) rotate(-2deg); opacity: 0; }
}

/* ============================================
   CODA PAGE: photo grid layout
   ============================================ */

.mm-coda-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.mm-coda-photo-grid img {
  width: 100%;
  height: auto;
  display: block;
}

body.mobile .mm-coda-photo-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}

/* Responsive YouTube embed */
.mm-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-top: 2em;
}

.mm-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   POLISH: clean project page styling
   ============================================ */

/* Smooth image loading */
.thumbnails img {
  transition: opacity 0.3s ease;
}

/* Make thumbnails feel interactive */
.thumbnails .thumbnail a {
  display: block;
  overflow: hidden;
}

.thumbnails .thumb_image img {
  transition: transform 0.4s ease;
}

.thumbnails .thumbnail:hover .thumb_image img {
  transform: scale(1.03);
}

/* Cleaner title style under thumbnails */
.thumbnails .title {
  letter-spacing: 0.03em;
}

/* Blue gradient background — grid transparent, text white on blue */
div[thumbnails="columns"][grid-row] {
  background-color: transparent !important;
}

.thumbnails .title,
.thumbnail .title,
div[thumbnails="columns"] .title {
  color: #ffffff !important;
}

/* Cursor paint on backdrop — clip dots within video area */
.backdrop {
  overflow: hidden;
}


/* ============================================
   BUTTER YELLOW: all white text → #EDD98A
   ============================================ */

/* Nav octagon buttons */
[data-ce-model-id="7655785"] h1 a,
[local-style="7655785"] h1 a {
  color: #EDD98A !important;
}

/* Thumbnail titles on homepage */
.thumbnails .title,
.thumbnail .title,
div[thumbnails="columns"] .title {
  color: #EDD98A !important;
}

/* Site menu navigation links */
#site_menu .page-link a,
#site_menu .set-link > a,
#site_menu .close {
  color: #EDD98A !important;
}

/* Scroll hand indicator */



/* ============================================
   SHIRTS thumbnail fix — force bg image display
   ============================================ */
a.image-link[href="SHIRTS"] .thumb_image {
  background-image: url('https://freight.cargo.site/w/500/q/75/i/59007e12a166ce57152f208f66d058e92a8a586dbc3bb0e28af20944c15f9e99/cdiagram-shirt.jpg') !important;
  background-size: cover;
  background-position: center;
  height: 0 !important;
  padding-bottom: 100% !important;
}
a.image-link[href="SHIRTS"] .thumb_image img {
  display: none !important;
}

/* NL link fix */
a[href="Grafisch-ontwerper-Utrecht"] {
  font-size: 0 !important;
}
a[href="Grafisch-ontwerper-Utrecht"]::after {
  content: "NL";
  font-size: 1rem;
}

/* ============================================
   Task #7: Asset 3.svg — subtle scroll rotation
   ============================================ */
/* Show the starburst gently rotating instead of explosion burst */
#mm-explosion {
  opacity: 0.7 !important;
  transform: translateX(-50%) scale(0.25) !important;
  animation: mm-subtle-rotate 9s linear infinite !important;
  transition: opacity 0.4s;
}
#mm-explosion.boom {
  /* Override burst — use slow rotation instead */
  animation: mm-subtle-rotate 9s linear infinite !important;
}
body.scrolled-far #mm-explosion {
  opacity: 0 !important;
}
@keyframes mm-subtle-rotate {
  from { transform: translateX(-50%) scale(0.25) rotate(0deg); }
  to { transform: translateX(-50%) scale(0.25) rotate(360deg); }
}

/* ============================================
   FIX: disable Cargo scroll-fade on non-homepage pages
   ============================================ */
body:not(.homepage) .content .scroll-transition-fade,
body:not(.homepage) .content .scroll-transition-fade.below-viewport {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}