.gril {
  font-family: Termina, sans-serif;
  color: #111;
  background: #eee;
  overflow-x: hidden;
}



.gril .col {
  flex: 1 1 33% !important; /* three columns on desktop */
}

@media (max-width: 768px) {
  .gril .gallery {
    flex-wrap: wrap;
    position: relative;
    height: auto;
  }
 .gril .col {
  flex: none !important; /* prevent flex grow/shrink */
  width: 100%; /* full width column */}
  .gril .image img {
  
    width: 100%;
    height: auto;
  }
}


.gril section {
  padding: 10vw;
  height: 100%;
  min-height: 500vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: visible;
}

.gril .credit {
  text-align: center;
  z-index: 999;
  font-size: 0.8rem;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.credit a {
  color: #fff;
}

* {
  box-sizing: border-box;
}

.gril h1 {
  font-weight: 800;
  margin: 2rem auto;
  font-size: clamp(3vw, 2rem, 4rem);
  text-align: center;
  z-index: 999;
  max-width: 800px;
  mix-blend-mode: difference;
  pointer-events: none;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
}

.gril .gallery {
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    /* height: auto or unset so it only takes needed height */
    position: relative;  /* or just remove this line */
    margin: 0 auto;
    background: {$bg_color} !important;
}

@media (max-width: 768px) {
  .gril .gallery {
    width: 160%;
  }
}

.gril .col {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  align-self: flex-start;
  justify-self: flex-start;
}

.gril .col:nth-child(2) {
  align-self: flex-end;
  justify-self: flex-end;
}

.gril .image {
  width: 100%;
  filter: saturate(0);
  padding: 1rem;
}

.gril .image:hover {
  z-index: 99999999999 !important;
  filter: saturate(1);
}

.gril img {
  transition: 0.3s ease-out;
  overflow: hidden;
  box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.034), 0 6.7px 5.3px rgba(0, 0, 0, 0.048), 0 12.5px 10px rgba(0, 0, 0, 0.06), 0 22.3px 17.9px rgba(0, 0, 0, 0.072), 0 41.8px 33.4px rgba(0, 0, 0, 0.086), 0 100px 80px rgba(0, 0, 0, 0.12);
  width: 100%;
}