.main-image {
  position: relative;
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  border: 0;
}

.main-image img {
  max-width: 100%;
  max-height: 100%;
  position: relative;
  top: 0;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  border: 0;
  margin: auto;
}

.thumbnail-scroll {
  white-space: nowrap;
  height: 64px;
  overflow: hidden;
  padding: 0 1px;
  position: relative;
}

.thumbnails {
  display: inline-block;
  width: 64px;
  height: 64px;
}

.thumbnail-info {
  bottom: 0;
  position: absolute;
  color: white;
  background-color: black;
  right: 0;
  padding: 1px 10px;
  font-size: 0.75rem;
}

.thumbnails img {
  width: calc(100% - 2px);
  height: calc(100% - 4px);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 2px 1px;
}

.caption-container {
  position: absolute;
  bottom: 0;
  z-index: 10;
  background: rgba(59,68,71,0.8);
  left: 0;
  right: 0;
  color: #f9f9f9;
  padding: 5px 10px;
  font-size: 80%;
}

.caption-text {
  white-space: nowrap;
  max-width: calc(100% - 15px);
  overflow: hidden;
  text-overflow: ellipsis;
}


.modal {
  display: none;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #000;
}

.modal-content {
  margin: auto;
  justify-content: center;
  align-items: center;
  padding: 20px;
  max-width: 60%;
  position: relative;
  height: 75%;
  border: 0;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 0;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  border: 0;
  margin: auto;
}

.modal-caption {
  background-color: rgba(0,0,0,0.45);
  bottom: 0;
  color: #EEE;
  font-size: 16px;
  left: 0;
  padding: 10px 40px;
  position: absolute;
  right: 0;
  text-align: center;
  z-index: 1080;
}

.img-copyright {
  font-size: 80%;
  opacity: 0.66;
}

.close {
    color: white;
    position: absolute;
    top: 200px;
    right: 30px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 99999;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.thumbnail-modal-scroll {
    margin-top: 20px;
    display: flex;
    position: absolute;
    z-index: 1080;
    width: 100%;
    bottom: 0;
    padding-left: 70px;
}

.thumbnail-modal-scroll .thumbnails-img {
    margin: 2px;
    border: 2px solid #fff;
    border-radius: 5px;
}

.thumbnail-modal-scroll .active {
  border: 2px solid #f00;
}

.thumbnail-modal-scroll .thumbnails-img img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
}


.carousel-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 65px;
}

.carousel-buttons button {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  font-size: 18px;
  border-radius: 50%;
  outline: none;
}

.carousel-buttons button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.carousel-buttons .prev:before {
  content: "\2190";
}

.carousel-buttons .next:before {
  content: "\2192";
}

.modal .play {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px;
  font-size: 18px;
  border-radius: 50%;
  position: absolute;
  top: 190px;
  right: 50px;
  z-index: 1;
  outline: none;
}

.modal .play:before {
  content: "\25B6";
}

.modal .play.paused:before {
  content: "\II"; 
}
