#references-container {
  padding: 124px 0px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#references-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
}

#reference-commentary {
  height: 272px;
  max-width: 700px;
  padding: 48px 96px 48px 96px;
  border: 4px solid #9747ff;
  border-radius: 35px;
}

#reference-img {
  width: 272px;
  height: 272px;
  border-radius: 50%;
  border: 4px solid #70e61c;
  object-fit: cover;
  margin-left: 48px;
}

#reference-seperator {
  width: 100px;
  height: 0;
  border: none;
  border-top: 4px solid #70e61c;
}

#commentary-name {
  display: flex;
  align-items: center;
  gap: 16px;
}

#reference-commentary {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#commentary span {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  line-height: 120%;
  font-weight: 400;
  white-space: normal;
  word-break: break-word;
}

#commentary-name-seperator {
  flex: 1 1 auto;
  height: 0;
  border: none;
  border-top: 4px solid #1cdae6;
  min-width: 8px;
}

#commentary-name span {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  line-height: 120%;
  font-weight: 400;
}

#reference-img {
  width: 272px;
  height: 272px;
  border-radius: 50%;
  border: 4px solid #70e61c;
  overflow: hidden;
  margin-left: 48px;
}

#reference-img img {
  display: block;
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translate(-0%, -0%);
  border-radius: 0;
}

#commentary-nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  height: 40px;
}

.active-point {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background-color: #9747ff;
}

.point {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background-color: #70e61c;
}

#arrow-back img,
#arrow-next img {
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 5px;
  box-sizing: border-box;
}

#arrow-back {
  cursor: pointer;
  margin-right: 20px;
}

#arrow-back img:hover,
#arrow-next img:hover {
  border: #70e61c solid 2px;
  border-radius: 50%;
  padding: 5px;
}

#arrow-next {
  cursor: pointer;
  margin-left: 20px;
}

@media (max-width: 1345px) {
  #reference-commentary {
    height: 272px;
    padding: 24px 48px 24px 48px;
    margin: 0 8px;
  }
}

@media (max-width: 1280px) {
  #references-container {
    display: grid;
    grid-template-columns: 1fr 272px 1fr;
    grid-template-rows: auto auto;
    column-gap: 4px;
    row-gap: 24px;
    align-items: center;
    width: 100%;
  }

  #reference-img {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
  }

  #reference-seperator {
    grid-column: 3;
    grid-row: 1;
    height: 4px;
    background-color: #70e61c;
    border: none;
    width: 100%;
    align-self: center;
  }

  #reference-commentary {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }
}

@media (max-width: 525px) {
  #references-container {
    grid-template-columns: 1fr 200px 1fr;
  }

  #reference-img {
    width: 200px;
    height: 200px;
  } 

  #reference-commentary {
    padding: 16px 24px 16px 24px;
  }
}
