.embed {
  width: unset;
  text-align: center;
  max-width: 800px;
  margin: 32px auto;
}

.embed > div {
  display: flex;
  justify-content: center;
}

.embed.embed-twitter .twitter-tweet-rendered {
  margin-left: auto;
  margin-right: auto;
}

.embed .embed-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
}

.embed .embed-placeholder > * {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
}

.embed .embed-placeholder picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.embed .embed-placeholder-play button {
  box-sizing: border-box;
  position: relative;
  display: block;
  transform: scale(3);
  width: 22px;
  height: 22px;
  border: 2px solid;
  border-radius: 20px;
  padding: 0;
}

.embed .embed-placeholder-play button::before {
  content: "";
  display: block;
  box-sizing: border-box;
  position: absolute;
  width: 0;
  height: 10px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid;
  top: 4px;
  left: 7px;
}

/* YouTube embed container styles */
.embed-youtube-container {
  left: 0;
  width: 100%;
  height: 0;
  position: relative;
  padding-bottom: 56.25%;
}

.embed-youtube-container iframe {
  border: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

/* YouTube Shorts container styles */
.embed-youtube-shorts-container {
  position: relative;
}

.embed-youtube-shorts-container iframe {
  border: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

/* Float positioning styles */
.embed-youtube-float-left {
  float: left;
  margin-right: 1rem;
}

.embed-youtube-float-right {
  float: right;
  margin-left: 1rem;
}

/* Media query for screens 1027px and smaller */
@media screen and (max-width: 1027px) {
  .embed-youtube-float-left,
  .embed-youtube-float-right {
    float: none;
    margin: 0 auto;
    text-align: center;
  }
}


