.section__container {
  max-width: 1200px;
  margin: auto;
  padding: 5rem 1rem;
  margin-top: 2rem;
}

.section__subheader {
  position: relative;
  isolation: isolate;
  margin-bottom: 1rem;
  padding-left: 5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #e9c675;
}

.section__subheader::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 2px;
  width: 4rem;
  background-color: #e9c675;
}

.section__subheader::after {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-60%, -50%);
  font-size: 8rem;
  font-weight: 600;
  color: #000000;
  opacity: 0.1;
  z-index: -1;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 500;
  font-family: gilroy;
  color: #000000;
}

.btn:hover {
  background-color: rgba(10, 30, 39, 0.5);
}

a {
  text-decoration: none;
  transition: 0.3s;
}

html,
body {
  scroll-behavior: smooth;
}


.about {
  background-image: linear-gradient(to bottom, rgb(255, 255, 255), #ffffff 8rem);
  overflow: hidden;
}

.about__container {
  padding-top: 0;
  display: grid;
  gap: 8rem 2rem;
  overflow: hidden;
}

.about__image img {
  max-width: 100%;
  /* Scales with container */
  margin-inline: auto;
  border-radius: 5px;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.4);
  width: auto;
  /* Ensure the images don't overflow */
}


.about__content a:hover span {
  transform: translateX(10px);
}


/* Main Grid Layout for Larger Screens */
@media (min-width: 768px) {
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    /* 2-column layout */
    align-items: center;
    gap: 10rem 2rem;
    /* Adjust the gap between grid items */
  }

  /* Alternating grid order for the images and content */

  .about__image-1 {
    grid-area: 1/2/2/3;
    /* Image on the right */
  }

  .about__content-1 {
    grid-area: 1/1/2/2;
    /* Content on the left */
  }

  .about__image-2 {
    grid-area: 2/1/3/2;
    /* Image on the left */
  }

  .about__content-2 {
    grid-area: 2/2/3/3;
    /* Content on the right */
  }

  .about__image-3 {
    grid-area: 3/2/4/3;
    /* Image on the right */
  }

  .about__content-3 {
    grid-area: 3/1/4/2;
    /* Content on the left */
  }

  .about__image-4 {
    grid-area: 4/1/5/2;
    /* Image on the left */
  }

  .about__content-4 {
    grid-area: 4/2/5/3;
    /* Content on the right */
  }

  .about__image-5 {
    grid-area: 5/2/6/3;
    /* Image on the right */
  }

  .about__content-5 {
    grid-area: 5/1/6/2;
    /* Content on the left */
  }

  .about__image-6 {
    grid-area: 6/1/7/2;
    /* Image on the left */
  }

  .about__content-6 {
    grid-area: 6/2/7/3;
    /* Content on the right */
  }

  .about__image-7 {
    grid-area: 7/2/8/3;
    /* Image on the right */
  }

  .about__content-7 {
    grid-area: 7/1/8/2;
    /* Content on the left */
  }

}