:root {
  --avatar-size: 5rem;
  /* change this value anything, e.g., 100px, 10rem, etc. */
}

.page-content {
  scroll-behavior: smooth;
}

/* home page slider */
.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.slider-content {
  display: flex;
  /*min-height: 100%;*/
  height: calc(100% - 35px);
  align-items: start;
  width: 100%;
}

.slide {
  padding: 0;
  box-sizing: border-box;
  text-align: center;
  height: 100%;
  width: 100%;
  /* border: solid 1px #e0f8ff; */
  position: relative;
}

.hide {
  display: none;
}

.grid-of-one .grid-container {
  display: grid;
  grid-template-columns: 1fr;
  /* Changed from repeat(2, 1fr) to 1fr */
  grid-gap: 3px;
}

.grid-of-four .grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 3px;
}

[id^="image-grid-1"] .gi-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

[id^="image-grid-2"] .grid-item .gi-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

[id^="image-grid-2"] .grid-item .gi-loading-overlay .gi-loading-animation,
[id^="image-grid-1"] .gi-loading-overlay .gi-loading-animation {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

[id^="image-grid-2"] .grid-item .gi-loading-overlay .gi-loading-animation:before,
[id^="image-grid-1"] .gi-loading-overlay .gi-loading-animation:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(173, 181, 189, 0.2),
      rgba(255, 255, 255, 0.5),
      rgba(173, 181, 189, 0.6));
  animation: loading 1.5s linear infinite;
}

[id^="image-grid-2"] .grid-item .gi-image {
  width: 100%;
  height: auto;
}

[id^="image-grid-2"] .grid-item.placeholder {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[id^="image-grid-2"] .grid-item.glide-2-0 {
  opacity: 0;
  /* Set initial opacity to 0 */
  animation: glide-from-left 0.5s ease-in forwards;
  /* Apply animation */
}

[id^="image-grid-2"] .grid-item.glide-2-2 {
  opacity: 0;
  /* Set initial opacity to 0 */
  animation: glide-from-left 0.5s ease-in forwards;
  /* Apply animation */
}

[id^="image-grid-2"] .grid-item.glide-2-1 {
  opacity: 0;
  /* Set initial opacity to 0 */
  animation: glide-from-right 0.5s ease-in forwards;
  /* Apply animation */
}

[id^="image-grid-2"] .grid-item.glide-2-3 {
  opacity: 0;
  /* Set initial opacity to 0 */
  animation: glide-from-right 0.5s ease-in forwards;
  /* Apply animation */
}

.slide>.media {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: start;
}

.slide2 {
  position: relative;
}

.slide2>.view-more.disabled {
  background-color: #99cccc !important;
  cursor: not-allowed;
}

.slide2>.view-more {
  width: 100%;
  position: absolute;
  bottom: -30px;
  right: 30px;
  background-color: #339999;
  color: white;
  padding: 10px;
  transition: right 0.3s ease-in;
  visibility: hidden;
  appearance: none;
  border: none;
  outline: none;
  border-radius: 0 0 13px 13px;
}

.view-more:active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: #eeeeee14;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.view-more:active::after {
  opacity: 1;
}

.slide2>.view-more.glide-2 {
  right: 0;
  visibility: visible;
}

/* Slide titles */
.slide-2-text .slide-2-title {
  font-size: 1em;
  font-weight: 600;
  color: #1b354e;
  margin: 0;
  display: inline;
}

.slide-2-text .slide-2-description {
  color: #333;
  font-size: 0.8em;
  margin: 0;
  display: inline;
}

.slide-2-text {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #d6d6d66f;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.15);
  padding: 7.5px 0 7.5px 15px;
  text-align: left;
}

.slide-1-text {
  position: relative;
}

[id^="image-grid-1"] {
  position: relative;
}

[id^="image-grid-1"] .upcoming {
  background: linear-gradient(to right, rgba(244, 162, 97, 0.8), #33669938);
  padding: 10px 15px;
  border-radius: 15px;
  width: 70px;
  position: absolute;
  top: 5px;
  left: 20%;
  transform: translateX(-50%);
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
  transition: left 0.3s ease-in, opacity 0.3s ease-in;
  opacity: 0;
}

[id^="image-grid-1"] .upcoming.glide-1 {
  left: 50%;
  opacity: 1;
}

[id^="image-grid-1"] .slide-1-title {
  font-size: 0.75em;
  color: #1b354e;
  padding: 10px 0;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: linear-gradient(to bottom, #33669976, #fff);
}

[id^="image-grid-1"] .slide-1-title h2 {
  padding: 0 100px;
}

[id^="image-grid-1"] .grid-item {
  width: 100%;
  object-fit: cover;
  text-align: center;
  border-radius: 13px;
}

[id^="post-content-"] {
  border-radius: 13px;
  overflow: hidden;
}

[id^="image-grid-2"] .grid-item {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  border: solid thin #e4e4e4;
  overflow: hidden;
}

[id^="image-grid-2"] .grid-item:first-of-type {
  border-radius: 13px 0 0 0;
}

[id^="image-grid-2"] .grid-item:nth-of-type(2) {
  border-radius: 0 13px 0 0;
}

[id^="image-grid-1"] .grid-item,
[id^="image-grid-2"] .grid-item img {
  background-color: #999;
  transition: filter 500ms, transform 500ms;
}

[id^="image-grid-1"] .grid-item.placeholder,
[id^="image-grid-1"].placeholder {
  background-color: #999;
  position: relative;
  filter: blur(20px);
  border-radius: 13px;
  clip-path: inset(0 0 0 0 round 13px);
}

[id^="image-grid-1"] .grid-item.placeholder {
  z-index: 2;
}

[id^="image-grid-1"].placeholder {
  z-index: 1;
}

[id^="image-grid-2"] .grid-item.placeholder img {
  filter: blur(20px);
}

[id^="image-grid-1"] .grid-item:hover,
[id^="image-grid-2"] .grid-item:hover img {
  transform: scale(1.05);
}

[id^="image-grid-1"] .grid-item.glide-1 {
  animation: glide-from-bottom 0.5s ease-in forwards;
}

[id^="slide-2-"] {
  background-color: #eee;
  position: relative;
}

/* post */

.home-post-list {
  margin: 0 auto;
  width: 85%;
}

.post {
  margin: 20px auto;
  padding: 20px;
  width: 100%;
  border-radius: 7px;
  background-color: #eee;
  /* box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25); */
}

.post>.posted-by {
  display: flex;
}

.post>.posted-by>.author-avatar,
.post>.posted-by>.author-id-date {
  align-self: center;
}

.post>.posted-by>.author-avatar {
  background-color: #cc66667c;
  border-radius: 50%;
  text-align: center;
  height: var(--avatar-size);
  width: var(--avatar-size);
}

.post>.posted-by>.author-avatar>.initials {
  font-size: calc(var(--avatar-size) / 2);
  line-height: 1;
  position: relative;
  top: calc(var(--avatar-size) / 5);
  color: #fff;
}

.post>.posted-by>.author-id-date {
  padding: 16px;
}

.post>.posted-by>.author-id-date>.date-time {
  font-size: smaller;
}

.post>.post-content>.post-description.loading {
  color: transparent;
  position: relative;
  overflow: hidden;
  width: 150px;
  height: 25px;
  background-color: #fff;
}

.post>.post-content>.post-description.loading::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(to right, rgba(238, 241, 245, 0.2), rgba(255, 255, 255, 0.5), rgba(211, 219, 228, 0.6));
    animation: loading 1s linear infinite; */
  background: linear-gradient(90deg,
      rgba(173, 181, 189, 0.35) 0%,
      rgba(173, 181, 189, 0.5) 50%,
      rgba(173, 181, 189, 0.65) 100%);
  animation: pulsate 0.5s infinite;
}

.post>.post-content>.post-description {
  color: #33336691;
  margin: 10px;
  border-radius: 7px;
}

.post>.post-content>.post-action-buttons {
  width: 100%;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.post>.post-content>.post-remarks {
  color: #1d1d2c;
  font-size: small;
}

.post>.post-content>.post-container {
  position: relative;
  width: 100%;
  height: 35px;
  padding-bottom: 56.25%;

  /* background-color: rgba(51, 51, 51, 0.527);*/
  /* border-radius: 7px; */
}

.post-action-buttons .go-to-post {
  color: #fff;
  padding: 10px;
  border-radius: 7px;
  background-color: #33336691;
  width: 120px;
  text-align: center;
  font-size: small;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  -ms-text-overflow: ellipsis;
  float: left;
}

.post>.padding {
  color: transparent;
  visibility: hidden;
}

@keyframes glide-from-left {
  0% {
    transform: translateX(-100%);
    /* Start from the left */
    opacity: 0;
    /* Fade in from transparent */
  }

  100% {
    transform: translateX(0%);
    /* Move to the center */
    opacity: 1;
    /* Fully visible */
  }
}

@keyframes glide-from-right {
  0% {
    transform: translateX(100%);
    /* Start from the left */
    opacity: 0;
    /* Fade in from transparent */
  }

  100% {
    transform: translateX(0%);
    /* Move to the center */
    opacity: 1;
    /* Fully visible */
  }
}

@keyframes glide-from-bottom {
  0% {
    transform: translateY(25%);
    /* Start from the bottom */
    opacity: 0;
    /* Fade in from transparent */
  }

  100% {
    transform: translateY(0%);
    /* Move to the center */
    opacity: 1;
    /* Fully visible */
  }
}

/* Media queries */

/* Styles for screen sizes less than 400px */
@media screen and (max-width: 399px) {

  /* Your styles here */
  .page-content {
    margin: 50px 6% 0 -3.2%;
    padding-bottom: 250px;
  }

  body {
    width: 399px;
    overflow-x: auto !important;
  }
}

/* Styles for screen sizes between 400px and 600px */
@media screen and (min-width: 400px) and (max-width: 599px) {

  /* Your styles here */
  .page-content {
    margin: 90px 5.5% 0 -3.2%;
    padding-bottom: 250px;
  }
}

/* Styles for screen sizes between 600px and 800px */
@media screen and (min-width: 600px) and (max-width: 799px) {

  /* Your styles here */
  .page-content {
    margin: 90px 2.5% 0 -2.5%;
    padding-bottom: 250px;
  }
}

/* Styles for screen sizes between 800px and 1000px */
@media screen and (min-width: 800px) and (max-width: 999px) {

  /* Your styles here */
  .page-content {
    margin: 90px 1.5% 0 -1%;
    padding-bottom: 150px;
  }
}

/* Styles for screen sizes between 1000px and 1200px */
@media screen and (min-width: 1000px) and (max-width: 1199px) {

  /* Your styles here */
  .page-content {
    margin: 90px 2% 0 -1%;
    padding-bottom: 150px;
  }
}

/* Styles for screen sizes between 1200px and 1400px */
@media screen and (min-width: 1200px) and (max-width: 1399px) {

  /* Your styles here */
  .page-content {
    margin: 90px 10% 0 10%;
    padding-bottom: 150px;
  }
}

/* Styles for screen sizes greater than 1400px */
@media screen and (min-width: 1400px) {

  /* Your styles here */
  .page-content {
    margin: 90px 20% 0 20%;
    padding-bottom: 150px;
  }
}

/* Dark Mode */
body.dark-mode .page-content .post {
  background-color: rgba(0, 0, 0, 0.2);
  color: #eee;
}


body.dark-mode .page-content .post>.post-content>.post-description {
  color: #fff;
}

body.dark-mode .page-content .post .post-content .slider .slider-content [id^="slide-2-"] {
  background-color: rgba(0, 0, 0, 0.2);
}

body.dark-mode .page-content .post>.post-content>.post-description.loading {
  background-color: rgba(0, 0, 0, 0.2);
  color: transparent;
}

body.dark-mode .page-content .post>.post-content>.post-description.loading::before {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(173, 181, 189, 0.5) 50%,
      rgba(173, 181, 189, 0.65) 100%);
}