body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

#loadingOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(255, 255, 255);
  color: rgb(20, 20, 20);
  font-size: 24px;
  z-index: 200;
}

#loadingOverlay img {
  width: 10%;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  justify-content: center;
  align-items: center;
}


#videoModal {
  width: 100%;
  height: 100%;
}

.most-recent-video {
  background-blend-mode: multiply;
  background-color: #1e1e1ede;
  padding: 95px 35px;
  background-size: cover;
  background-position: center;
}

.most-recent-info, .most-recent-image {
  width: 50%;
  display: inline-block;
  vertical-align: top;
  padding: 20px;
  box-sizing: border-box;
  color: #FFFFFF;
}

span#mostRecent {
  font-style: italic;
}

h2#mostRecentTitle {
  font-size: 1.5rem;
}

#mostRecentMeta {
  display: flex;
  justify-content: space-between;
}

#mostRecentDate {
  text-align: end;
}

#mostRecentScriptures {
  margin-top: 5px;
}

#mostRecentScripture a:link, #mostRecentScripture a:visited {
  color: #282828;
  border-radius: 5px;
  padding: 2px 5px 2px 5px;
  text-decoration: none;
  background-color: #ffffff;
  font-weight: normal;
  margin-right: 5px;
}

#mostRecentScripture a:hover {
  color: #ffffff;
  border-radius: 5px;
  padding: 1px 5px 1px 5px;
  text-decoration: none;
  background-color: #686868;
}

.most-recent-image {
  text-align: center;
  position: relative;
  display: flex; /* Use flexbox to align children vertically */
  flex-direction: column; /* Stack children vertically */
  align-items: center; /* Center children vertically */
  justify-content: center;
}

.most-recent-thumb-container {
  position: relative;
  overflow: hidden;
  display: flex;
  
}

.most-recent-thumbnail {
  width: 100%;
  cursor: pointer;
  border-radius: 10px;
  transition: filter 0.3s;
}

#videoListContainer {
  margin: 20px 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.list-item {
  width: calc(33% - 15px);
  margin-bottom: 20px;
}

.list-item-thumbnail  {
  position: relative;
  margin: auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.list-item-thumbnail-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.list-item-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.list-item-title {
  line-height: 1.5em;
  font-weight: bold;
  margin-top: 10px;
  width: 100%;
}


.list-item-date {
width: calc(50% - 10px);
}

.list-item-speaker {
  width: calc(50% - 10px);
  text-align: right;
}

.list-item-scriptures {
  width: 100%;
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.list-item-scripture {
  margin-top: 5px;
}

.list-item-scripture a:link, .list-item-scripture a:visited {
  color: #ffffff;
  border-radius: 5px;
  padding: 2px 5px 2px 5px;
  text-decoration: none;
  background-color: #282828;
  margin-right: 5px;
}

.list-item-scripture a:hover {
  color: #ffffff;
  border-radius: 5px;
  padding: 1px 5px 1px 5px;
  text-decoration: none;
  background-color: #686868;
}

.list-item-play-icon {
  width: 25%;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.play-icon {
  width: 25%;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.view-more-videos {
  height: 50px;
  display: flex;
  justify-content: center;
  margin: 20px 0 20px 0;
}
.view-more-videos button {
  background-color: #282828;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 15px;
  text-transform: uppercase;
}
.view-more-videos button:hover {
  background-color: #686868;
  color: #ffffff;
  cursor: pointer;
}

@media (max-width: 767px) {
  .most-recent-video {
    flex-direction: column-reverse; /* Reverse the order of video-object and video-info */
    padding: 0;
  }
  #loadingOverlay img {
    width: 25%;
  }
  .most-recent-info, .most-recent-image {
    width: 100%;
  }

  .most-recent-thumbnail {
    margin: auto;
  }
  #videoListContainer {
    gap:0;
    margin: 20px 0px;
  }

  #videoListContainer h3 {
    font-size: 1.1em;
  }

  .list-item {
    width: calc(50% - 10px);
  }

  .list-item-date, .list-item-speaker {
    width: 100%;
  }
  .list-item-speaker {
    text-align: left;
  }
}