  :root {
    --board-size: 600px;
    --gap: 5px;
  }

/*
  body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: #333333;
    margin: 20px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
  }
  */

  .gallery-wrap {
    display: grid;
    gap: 10px;
    align-items: start;
  }

  .gallery-title {
    text-align: center;
    font-weight: 600;
    color: #333;
  }

  .moodboard {
    width: var(--board-size);
    height: var(--board-size);
    background: transparent;
    /*border: 1px solid #ddd;*/
    display: grid;
    gap: var(--gap);
    overflow: hidden;
    position: relative;
	
  }

  .moodboard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*border-radius: 6px;*/
	padding:0px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: transform .28s ease, box-shadow .28s ease;
    display: block;
    cursor: pointer;
	
	
  }
  .moodboard img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    z-index: 5;
  }

  .color-tile, .filler {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: grid;
    gap: 0;
    cursor: pointer;
  }

  .color-tile-inner {
    display: grid;
    width: 100%;
    height: 100%;
  }

  .color-block {
    width: 100%;
    height: 100%;
  }

  .filler {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  }

  /* Popup (CSS-only via :target) */
  .popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
  }

  .popup:target {
    display: flex;
  }

  .popup .popup-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    position: relative;
  }

  .popup .color-square {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
  }

  .popup .popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    background: transparent;
    border: none;
    line-height: 1;
  }

  .color-tile-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  
    .color-palette {
  display: flex;
  justify-content: center;
  margin: 0px 0;
  gap: 4px;
  margin-bottom:5em;
}
.color-box {
  width: 40px;
  height: 40px;
  border: 1px solid #ccc;
}

  /* small screens */
  @media (max-width: 780px) {
    :root { --board-size: 420px; }
	.color-box {
		width:20px;
		height:20px;
	}
	
  }
  @media (max-width: 480px) {
    :root { --board-size: 320px; }
  }
  