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

@font-face {
  font-family: "Questrial";
  src: url("../fonts/Questrial-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/RobotoMono-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manufacturing Consent";
  src: url("../fonts/ManufacturingConsent-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-colour: black;
}

.logo {
  text-decoration: none;
  color: inherit;
}

span {
  font-family: Manufacturing Consent;
  font-size: 2rem;
  font-weight: 400;
}

body {
  font-family: Roboto Mono;
  color: var(--primary-colour);
}

.outter-wrapper {
  padding: 1.5rem;
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h1 {
  font-size: 1rem;
  font-weight: 400;
}

h3 {
  font-family: Questrial;
  font-size: 2rem;
  font-weight: 300;
}

p,
ul,
ol,
li {
  font-size: 0.875rem;
  line-height: 1.4;
}

ul,
ol {
  padding-left: 2.5rem;
  list-style-position: outside;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  display: block;
  height: auto;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover .overlay {
  opacity: 1;
}

.gallery-item p {
  font-size: 0.75rem;
}

.box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.box img {
  width: 100%;
  display: block;
  height: auto;
}

/* 
---------------------------------------------
---------------------------------------------
Header + Navigation 
---------------------------------------------
---------------------------------------------
*/

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: inherit;
  font-size: 0.875rem;
}

.main-nav a:hover,
.main-nav a:focus {
  text-decoration: underline;
}

.mobile-nav,
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.close-btn {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

@media (max-width: 600px) {
  .hamburger {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 6rem 2rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .close-btn {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .main-nav a {
    font-size: 1.5rem;
  }

  .menu-toggle:checked + .hamburger + .main-nav {
    transform: translateX(0);
  }
}
