.container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  overflow: hidden; }

.thumbnails {
  overflow-x: scroll;
  width: 100%;
  display: flex;
  list-style-type: none;
  justify-content: space-between; }
  .thumbnails li {
    border: 1px solid #c2c2c2;
    margin-top: 20px;
    margin-left: 5px;
    margin-right: 5px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    cursor: pointer; }
  .thumbnails img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center; }

.slides {
  overflow: hidden;
  width: 300px;
  height: 300px;
  box-sizing: border-box;
  text-align: center; }
  .slides li {
    overflow: hidden;
    list-style-type: none;
    width: 300px;
    height: 300px;
    position: absolute;
    z-index: 1;
    box-sizing: border-box;
    display: none;
    text-align: center;
    align-items: center;
    justify-content: center;
    border: 1px solid #8f8f8f; }
  .slides img {
    width: 300px;
    height: 300px;
    height: auto;
    overflow: hidden;
    object-fit: cover;
    object-position: top; }

@media Screen and (min-width: 768px) {
  .container {
    margin: 50px auto;
    height: 400px;
    justify-content: space-around; }

  .thumbnails {
    flex-wrap: wrap;
    width: 48%;
    overflow: scroll; }
    .thumbnails li {
      width: 120px;
      height: 120px;
      margin-bottom: 15px;
      overflow: hidden;
      margin-top: 0; }
    .thumbnails img {
      width: 120px;
      height: 120px; }

  .slides {
    width: 420px; }
    .slides li {
      text-align: left;
      height: 420px;
      width: auto;
      align-items: left;
      justify-content: left; }
    .slides img {
      height: 100%;
      width: auto; } }
