body,
html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100%;
}

.sidebar {
  width: 200px;
  padding: 20px;
  background-color: white;
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  height: 100%;
  box-sizing: border-box;
}

.sidebar h1 {
  font-size: 24px;
  margin: 0;
}

.sidebar nav {
  margin-top: 20px;
}

.sidebar nav a {
  display: block;
  color: black;
  text-decoration: none;
  margin-bottom: 10px;
}

.social-links {
  margin-top: auto;
}

.social-links a {
  color: black;
  text-decoration: none;
  margin-right: 10px;
  font-size: 24px;
}

.main-content {
  margin-left: 200px;
  flex-grow: 1;
  overflow-y: auto;
  height: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: 0;
  width: 100%;
}

.grid::before {
  content: '';
  width: 0;
  padding-bottom: 100%;
  grid-row: 1 / 1;
  grid-column: 1 / 1;
}

.grid>*:first-child {
  grid-row: 1 / 1;
  grid-column: 1 / 1;
}

.grid-item {
  position: relative;
  overflow: hidden;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid-item:hover img {
  transform: scale(1.1);
}

.grid-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-item:hover .grid-item-overlay {
  opacity: 1;
}

.about-text {
  max-width: 800px;
  line-height: 1.6;
  padding: 20px;
}

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

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

@media (max-width: 800px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 10px;
  }

  .sidebar h1 {
    font-size: 20px;
  }

  .sidebar nav {
    margin-top: 10px;
    display: flex;
    justify-content: space-around;
  }

  .sidebar nav a {
    margin-bottom: 0;
  }

  .social-links {
    margin-top: 10px;
  }

  .main-content {
    margin-left: 0;
    height: calc(100% - 100px);
    /* Adjust based on your header height */
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
