﻿/* The Main is a function of Main.about-me */
main {
  margin-top: 0rem;
  margin-bottom: 0rem;
}

main.about-me {
  margin: 0;
  padding: 0;
}

.about-container {
  display: flex;                   /* Enables Flexbox layout */
  align-items: center;         /* Vertically centers items within the container */
  justify-content: center;     /* Horizontally centers items within the container */
  gap: 2rem;                     /* Adds 2rem spacing between flex items */
  max-width: 1200px;         /* Restricts container width to 1200px max */
  margin: .2rem auto;         /* Adds 1rem vertical margin, auto horizontal = centers container */
}

.about-image img {
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.about-text {
  flex: 1;
  color: #333;
}

.about-text h1 {
 font-size: 1.5rem;
  color: red;
  margin-bottom: .8rem;
}

.about-text h2 {
  font-size: 1.25rem;
  color: red;
  margin-bottom: .6rem;
  font-weight: 500;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: .8rem;
}

/* Responsive stack on mobile */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: left;
  }

  .about-image img {
    max-width: 100%;
  }
}