/**
 * Editor styles
 */

[data-predefined-style="true"] bodycopy {
	font-size: 2.2rem;
	font-weight: 350;
	color: #222fe9;
	font-family: "Favorit Variable", Icons;
	font-style: normal;
	line-height: 1.3;
	font-variation-settings: 'slnt' 0;
}

[data-predefined-style="true"] bodycopy a {
    border-bottom: 0.075em solid rgba(0, 0, 0, 0.75);
	color: #222fe9;
	padding-bottom: 0.1em;
	text-decoration: none;
}

bodycopy a.image-link,
bodycopy a.icon-link,
bodycopy a.image-link:hover,
bodycopy a.icon-link:hover {
	border-bottom: 0;
	padding-bottom: 0;
}

[data-predefined-style="true"] h1 {
	font-family: "Favorit Variable", Icons;
	padding: 0;
	margin: 0;
	font-size: 2rem;
	line-height: 0.9;
	color: #222fe9;
	font-style: normal;
	font-variation-settings: 'slnt' 0;
	font-weight: 700;
}

[data-predefined-style="true"] h1 a {
    border-bottom: 0em solid rgba(0, 0, 0, 0.75);
	color: #222fe9;
}

[data-predefined-style="true"] h2 {
	font-family: "Favorit Variable", Icons;
	font-style: normal;
	padding: 0;
	margin: 0;
	color: #222fe9;
	font-size: 1rem;
	line-height: 1.2;
	font-variation-settings: 'slnt' 0;
	font-weight: 400;
}

[data-predefined-style="true"] h2 a {
    border-bottom: 0em solid rgba(0, 0, 0, 0.75);
	color: #222fe9;
}

[data-predefined-style="true"] small {
    background: #ff0;
	display: inline-block;
	font-size: 1.4rem;
	line-height: 1.3;
	font-family: "Favorit Variable", Icons;
	font-style: normal;
	color: #222fe9;
	font-variation-settings: 'slnt' 0;
	font-weight: 300;
}

[data-predefined-style="true"] small a {
    border-bottom: 0em solid rgba(0, 0, 0, 0.75);
	color: #222fe9;
}

.thumbnails .title {
    margin-top: 1.7rem;
    margin-bottom: .3rem;
    font-size: 1.2rem;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.75);
	font-family: "Authentic Sans Condensed", Icons;
	font-style: normal;
	line-height: 1.1;
    text-align: left;
}

.thumbnails .tags {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.35);
	font-family: Quiosco, Icons;
	font-style: italic;
	line-height: 1.2;
    text-align: center;
}

html {
    cursor: url("https://freight.cargo.site/t/thumbnail/w/45/q/75/i/d2015246e5ac14f694d07b447ed81d185f04194e939145c59bb85585dfa16f7b/cursor.png"), auto !important;
}

.content img {
    cursor: url("https://freight.cargo.site/t/thumbnail/w/45/q/75/i/64f11ac94e0c2f74bacb98cb62d9b8bd73f120dd79cb9a3c1b66785828dd7f2b/cursor1.png"), auto !important;
}

/* ============================================
   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/600/q/80/i/ee39bbec28ead8a894e6b421da161308058c98bcb2fd0ae3432be3624aa96ea7/katoenclub-01.png') !important;
  background-size: cover;
  background-position: center top;
  height: 0 !important;
  padding-bottom: 125% !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;
}

@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;
}