.tweets {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  grid-column-gap: 0;
  grid-row-gap: 0;
  padding: 20px 0px;
  border-radius: 5px;
}

.tweets-title, .related-category-title {
  width: 100%;
  display: flex;
  align-items: center;
}

.tweets-title i{
  margin-right: 1rem;
}

.tweets-title p{
  margin: 0
}

.tweets-title span {
  color: #aaa
}

.tweet {
  display: flex;
  padding: 1rem;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  position: relative;
  text-decoration: none;
  color: unset;
}

.logo-twitter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #00acee;
}

.tweet:hover {
  background-color: #f5f8fa;
}

.tweet-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tweet-content-text {
  font-size: 0.8rem;
  line-height: 1.5;
}

.tweet-content-text span {
	color: #00acee;
}

.tweet-content-date {
  font-size: 0.7rem;
  color: #aaa;
  margin: 0;
}

.tweet-author {
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 4px;
  margin: 0 !important;
}

.tweet-username {
  line-height: 18px;
  font-weight: 300;
  padding-right: 4px;
  font-size: 13px;
  line-height: 18px;
  color: #657786;
  margin-bottom: 0.3rem;
}

.tweet img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 50px;
}

/* LIST TYPE DISPLAY */

.list-type.related-category-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.list-type .related-post {
  width: 100%;
  display: flex;
  margin: 10px 0;
}

.list-type .related-post:first-child {
  margin-top: 0;
}

.list-type .related-post:last-child {
  margin-bottom: 0;
}

.list-type .related-img-container {
  position: relative;
  min-width: 100px;
  max-width: 100px;
  aspect-ratio: 16/9;
  overflow:hidden;
}

.list-type.related-category-container a {
  width: 100%;
  color: black;
}

.list-type .related-img-container:hover img {
  transform: scale(1.1);
}

.list-type.related-category-container img {
  transition: all 0.3s ease-in-out;
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: center;
}

.list-type .related-post-title {
  color: var( --e-global-color-primary );
  font-family: "Roboto", Sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.list-type .related-post-content {
  margin-left: 10px;
}

.list-type .related-post-date {
  line-height: 1.3em;
  font-size: 12px;
  margin-bottom: 13px;
  color: #adadad;
}

/* GRID TYPE DISPLAY */

.grid-type.related-category-container {
  width: 100%;
  display: grid;
  grid-column-gap: var(--grid-column-gap);
  grid-row-gap: var(--grid-row-gap);
  grid-template-columns: repeat(2,1fr);
  --grid-column-gap: 30px;
  --grid-row-gap: 35px;
}

.grid-type .related-post {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-type .related-post:first-child {
  margin-top: 0;
}

.grid-type .related-post:last-child {
  margin-bottom: 0;
}

.grid-type .related-img-container {
  position: relative;
  min-width: 100px;
  width: 100%;
  aspect-ratio: 1/1;
  overflow:hidden;
  margin-bottom: 7px;
}

.grid-type.related-category-container a {
  width: 100%;
  color: black;
}

.grid-type .related-img-container:hover img {
  transform: scale(1.1);
}

.grid-type.related-category-container img {
  transition: all 0.3s ease-in-out;
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: center;
}

.grid-type .related-post-title {
  color: var( --e-global-color-8d747ed );
  font-family: "Roboto", Sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.grid-type .related-post-content {
  margin-left: 10px;
}

.grid-type .related-post-date {
  display: none;
}