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

:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --page-padding: 10px;
  --grid-gap: 6px;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}


/* =========================
   HEADER / LOGO
   ========================= */

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 34px 20px 40px;
}

.logo {
  display: block;
  width: min(260px, 60vw);
  height: auto;

  /* Remove this if your logo file is already white */
  filter: brightness(0) invert(1);
}


/* =========================
   IMAGE GRID
   ========================= */

.grid {
  width: 100%;
  padding: 0 var(--page-padding) 30px;

  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.grid-item {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  aspect-ratio: 1 / 1;

  overflow: hidden;
  text-decoration: none;
}

.grid-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;

  will-change: transform;
}


/* =========================
   HOVER
   ========================= */

.grid-item:hover img,
.grid-item:focus-visible img {
  transform: scale(0.94);
  opacity: 0.82;
}

.grid-item:active img {
  transform: scale(0.91);
}

.grid-item:focus-visible {
  outline: 1px solid rgba(255,255,255,0.8);
  outline-offset: 2px;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  :root {
    --page-padding: 7px;
    --grid-gap: 5px;
  }

  .header {
    padding: 28px 14px 32px;
  }

  .logo {
    width: min(220px, 65vw);
  }

  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
