
body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;

  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;

  color: #171A1C;
  background-color: #ECE8E3;
}

@media (max-width: 749px) {
  body  {
    padding: 2rem 1rem;
  }
}

h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 4rem;
  line-height: 1rem;
}

.sub-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: -1rem;
}

.sub-header p {
  color: #999;
}

.social-buttons a {
  text-decoration: none;
}

.social-buttons svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #999;
  margin-right: 1rem;
}

@media (min-width: 750px) {
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    background-color: #ECE8E3;
  }

  .content-wrapper {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem; /* space between photo and text */
    justify-content: space-between;
    margin: 2rem 0;
  }

  .text-content {
    flex: 1 1 300px; /* flexible width, minimum 300px */
    min-width: 280px;
  }

  .photo-content {
    flex: 0 0 400px; /* fixed width for photo container */
    max-width: 100%;
  }

  .photo-content {
    margin: -2rem 0 0 2rem;

    position: sticky;
    top: 0;
    z-index: 100;
    padding: 2rem 0;
    background-color: #ECE8E3;
  }
}


@media (max-width: 749px) {
  .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .photo-content {
    margin-top: 2rem;
  }

  .text-content {
    margin-top: -1rem;
  }

  p {
    line-height: 2rem;
  }

  .caption {
    line-height: 1.5rem;
  }
}

.photo-hover-container {
  cursor: wait;
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1; /* maintain square */
  margin: 0 auto;
}

.photo-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.hover-image {
  opacity: 0;
}

.photo-hover-container:hover .hover-image {
  opacity: 1;
}

.photo-hover-container:hover .base-image {
  opacity: 0;
}

footer, .caption {
  color: #999;
  font-size: 0.75rem;
}

.caption {
  font-style: italic;
}

.hover-caption {
  display: none;
}

.photo-hover-container:hover + .base-caption {
  display: none;
}

.photo-hover-container:hover + .base-caption + .hover-caption {
  display: block;
}
