*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #FEFAF6;
  background-image: url('background.gif');
  background-repeat: repeat;
  background-position: top left;
  background-size: 100vw auto;
  image-rendering: pixelated;
  font-family: Optima, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

header {
  text-align: left;
  padding: 2rem 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.social {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.social a {
  color: #7D7C7B;
  display: block;
  opacity: 0.7;
  transition: opacity .15s, color .15s;
}

.social a:hover {
  opacity: 1;
  color: #3A3938;
}

.social svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

header h1 {
  color: #7D7C7B;
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1.3;
}

header h1 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
  transition: color .15s;
}

header h1 a:hover {
  color: #3A3938;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.chop {
  height: 1em;
  vertical-align: middle;
  filter: brightness(0) invert(1) brightness(0.49);
}

/* Two sections side by side: glowing maps left, textiles right.
   Each section runs its own 2-column masonry, so 4 cols total. */
.sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 2000px;
  margin: 0 auto;
}

.section + .section {
  border-left: 1px solid #DDDAD6;
}

.section h2 {
  color: #7D7C7B;
  font-weight: normal;
  font-size: 1rem;
  line-height: 1.3;
  padding: 0 0 0.5rem;
}

.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  padding: 0 0 1rem;
}

.filters button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  color: #7D7C7B;
  cursor: pointer;
  padding: 0;
  opacity: 0.35;
  white-space: nowrap;
  transition: opacity .15s, color .15s;
}

.filters button:hover {
  opacity: 1;
  color: #3A3938;
}

.filters button.active {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
}

.gallery {
  column-count: 2;
  column-gap: 6px;
  padding: 3px 0;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 5px;
}

.gallery-item a {
  display: block;
  cursor: zoom-in;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  transition: filter .2s;
}

.gallery-item:hover img,
.gallery-item:hover video {
  filter: brightness(.8);
}

@media (max-width: 767px) {
  header {
    padding-left: 10px;
    padding-right: 10px;
  }
  .sections {
    padding: 0 10px;
  }
  .section:first-child {
    padding-right: 6px;
  }
  .section + .section {
    padding-left: 6px;
  }
  .filters {
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
  }
  .gallery {
    column-count: 1;
  }
}

@media (min-width: 768px) {
  header {
    padding-left: 50px;
    padding-right: 50px;
  }
  .sections {
    padding: 0 50px;
  }
  .section:first-child {
    padding-right: 12px;
  }
  .section + .section {
    padding-left: 12px;
  }
}
