img,
iframe,
video {
  max-width: 100%;
}
.yt {
  position: relative;
  display: block;
  width: 100%; /* width of iframe wrapper */
  height: 0;
  margin: 20px auto;
  padding: 0% 0% 56.25%; /* 16:9 ratio */
  overflow: hidden;
}

.yt iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  border: 0;
  margin: 0;
}

.twitch {
  margin: 0px auto !important;
}

article img,
article video,
article iframe {
  display: block;
  margin: auto;
  max-width: 100%;
  // box-shadow: 0 -2px 3px -1px #000, -2px 0 4px -2px #28221f, 2px 0 4px -2px #28221f, 0 4px 3px -2px #646261;
  // border-bottom: 1px solid #222;
}

iframe.iframe-inset {
  max-width: 100%;
  box-shadow: 0 -2px 3px -1px #000, -2px 0 4px -2px #28221f,
    2px 0 4px -2px #28221f, 0 4px 3px -2px #646261;
  border-bottom: 1px solid #222;
  background-size: cover;
  background-position: center center;
}

.flex-space-evenly {
  display: flex;
  justify-content: space-evenly;
}

.m8,
div.m8 {
  margin-top: 8px;
  margin-bottom: 8px;
}

div.p8 {
  padding: 8px;
}

.gallery {
  /* Position the image container (needed to position the left and right arrows) */
  position: relative;
  /* Hide the images by default */
  .galleryItem {
    display: none;
  }
  /* Next & previous buttons */
  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    top: 40%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
  }

  /* Position the "next button" to the right */
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }

  /* On hover, add a black background color with a little bit see-through */
  .prev:hover,
  .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }

  /* Number text (1/3 etc) */
  .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }

  /* Container for image text */
  .caption {
    text-align: center;
    background-color: #222;
    padding: 2px 16px;
    color: white;
  }

  .row:after {
    content: "";
    display: table;
    clear: both;
  }

  .row {
    .column {
      float: left;
      width: 16.66%; // we can try to set it as 100/n where n is number of items displayed inn gallery. this will force galery previews to be shown in one linen
    }
    /* Add a transparency effect for thumnbail images */
    img {
      opacity: 0.6;
    }
    .active,
    img:hover {
      opacity: 1;
    }
  }
}
