body {
  min-height: 100vh;
  display: grid;
  place-content: start center;
  background: linear-gradient(#fff, #aaa, #fff);
}

body h1{
  font-style: italic;
}
article {
  position: absolute;
  top: 20vh;
  left: 30vw;
  width: 40vw;
  color: #333;
}
article h1,
article p {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}
article h1 {
  font-size: larger;
  color: grey;
}
article p {
  font-size: large;
  line-height: 1.4;
}

article a {
  color: blue;
}


.g {
  width: auto;
  height: 5vh;
  display: grid;
  grid-auto-flow: column;
  grid-auto-rows: 10vh;
  place-content: start center;
  z-index: 1;
  transition: all 1s;
  position: relative;
  top: 5vh;
}
.g:hover {
  background: linear-gradient(transparent, hsla(0, 0%, 100%, 0.5), transparent);
  height: 95vh;
  width: 50vw;
}
.g a {
  font-size: larger;
  position: static;
  display: block;
  width: 5ch;
  height: 5ch;
  display: grid;
  place-content: center;
  background: hsla(0, 0%, 100%, 0.5);
  color: #333;
  text-decoration: none;
  border-bottom: thin solid black;
  box-sizing: border-box;
}
.g a img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 85vh;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  -webkit-clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%, 50% 0, 50% 0, 50% 100%, 50% 100%);
          clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%, 50% 0, 50% 0, 50% 100%, 50% 100%);
  transition: -webkit-clip-path 0.3s ease-in;
  transition: clip-path 0.3s ease-in;
  transition: clip-path 0.3s ease-in, -webkit-clip-path 0.3s ease-in;
}
.g a:hover img,
.g a img:hover {
  -webkit-clip-path: polygon(50% 0, 0 0, 0 100%, 50% 100%, 50% 0, 100% 0, 100% 100%, 50% 100%);
          clip-path: polygon(50% 0, 0 0, 0 100%, 50% 100%, 50% 0, 100% 0, 100% 100%, 50% 100%);
}
article {
  transition: filter 0.5s;
}
.g:hover + article {
  filter: blur(3px);
}


nav .container{
  align-items: center;
}
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@600&display=swap');


#header .title {
  font-family: 'Bebas Neue', sans-serif;
  font-family: 'Oswald', sans-serif;
  margin-left: -15rem;
}

#header {
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: 2rem;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--body-color);
  width: 100%;
}

#header.scroll {
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.15);
}

/* Header Logo */
.header-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-family: 'Oswald', sans-serif;
  font-style: italic;
  font-size: 40px;
  color: black; /* First letter color */
}

.header-logo span {
  color: grey; /* Second letter color */
}


/* Base styles for mobile-first approach */
.g a {
  display: block;
  margin: 5px;
  width: calc(100% - 10px);
  box-sizing: border-box;
}


/* Styles for tablets */
@media (min-width: 768px) {
  .g a {
    width: calc(50% - 10px);
    float: left;
  }
}

/* Styles for desktop */
@media (min-width: 992px) {
  .g a {
    width: calc(33.333% - 10px);
  }
}

/* Clearfix for floated elements */
.g::after {
  content: "";
  display: table;
  clear: both;
}
.g a img {
  height: 400px;
  width: 400px;
  margin-left: -5.9rem;
}

/* Desktop styles */
@media (min-width: 800px) { /* Adjust this breakpoint as needed */
  .g a img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 85vh;
    margin-left: 0; /* Reset the margin for desktop */
  }
}
/* About section styles */
article {
  margin: 20px;
  padding: 20px;
}

article h1 {
  font-size: 30px;
  margin-left: -7rem;
  margin-top: 9px;
}

article p {
  line-height: 1.5;
  margin-left: -7rem;
}

/* Ensure text is readable on small devices */
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
}

@media (min-width: 769px) {
  body {
    font-size: 18px;
  }
}
