.filter-buttons {
  text-align: center;
  display: flex;
  margin: 0 auto;
  gap: 30px;
  padding-bottom: 20px;
}

.filter-buttons div {
  color: #ffffff;
  cursor: pointer;
}

.filter-buttons div.active {
  color: #d4af37;
  border-top: 1px solid #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.item {
  height: 300px;
  overflow: hidden;
  border-radius: 5px;
  position: relative;
  transition: transform 0.3s ease;
}

.item.large {
  grid-column: span 1;
  grid-row: span 2;
  height: 614px;
}

.image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 5px;
}

.image-wrapper:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  margin: 0;
  font-size: 1.2rem;
}

.overlay p {
  margin: 5px 0 0;
  font-size: 0.9rem;
}

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

.ishot-item {
  transition: transform 0.3s;
  display: flex;
  justify-content: center;
}

.ishot-item:hover {
  transform: translateY(-10px);
}

.heading-title {
  text-align: center;
  padding-top: 8rem;
}

.heading-title h1 {
  font-size: 2rem;
}

/*Related post Css*/
.related-posts-main-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 10rem;
  flex-wrap: wrap;
}

.related-posts-item {
  display: flex;
  width: 48%;
  padding: 10px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
}

.related-posts-left {
  width: 48%;
  display: flex;
  justify-content: center;
  align-items: end;
}

.related-posts-left img {
  width: 100%;
  height: auto;
}

.related-posts-right,
.related-posts-left {
  flex-direction: column;
}

.related-post-arrow {
  font-size: 24px;
  font-weight: bold;
  color: #deb887;
  margin-bottom: 8px;
}

.related-post-title a {
  font-weight: bold;
  font-size: 16px;
  color: #deb887;
  text-decoration: none;
  text-align: center;
}

.related-post-title a:hover {
  text-decoration: underline;
}

.related-post-placeholder {
  width: 100%;
  height: 120px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .related-posts-main-container {
    flex-direction: column;
    gap: 20px;
  }

  .related-posts-item {
    width: 100%;
    flex-direction: column;
    text-align: center;
  }

  .related-posts-left,
  .related-posts-right {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .related-posts-left img,
  .related-posts-right img {
    width: 80%;
    max-width: 300px;
  }

  .related-post-arrow {
    font-size: 20px;
  }

  .related-post-title a {
    font-size: 14px;
  }

  .masonry-ishot {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/*End*/
.image-wrapper:hover img {
  transform: scale(1);
}

.image-wrapper img {
  transition: all .5s ease;
  transform: scale(1.2);
}

.ishot-item img,
.ishot-item video {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  /* Force uniform box shape */
  object-fit: cover;
}

.related-posts-right img {
  width: 250px;
  height: 250px;
}

.related-posts-left img {
  width: 250px;
  height: 250px;
}

/*Latest Page Css*/

.lp_custom-post-list {
  display: flex;
  color: white;
  min-height: 500px;
}

.lp_post-items {
  width: 40%;
  padding: 40px;
}

.lp_post-item {
  margin-bottom: 25px;
  cursor: pointer;
}

.lp_post-date {
  font-size: 0.85rem;
  color: #aaa;
}

.lp_post-title {
  font-weight: bold;
  font-size: 1rem;
  color: white;
}

.lp_post-preview {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lp_post-preview img {
  max-width: 100%;
  max-height: 100%;
  display: none;
  object-fit: contain;
}

.lp_post-preview-wrapper {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
}

#lp_post-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
  display: block;
}

@media only screen and (max-width: 768px) {
  .lp_custom-post-list {
    flex-direction: column;
    gap: 10px;
  }

  .lp_post-items {
    width: 100%;
  }

  .lp_post-preview {
    width: 100%;
  }
}

.image-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.seemore {
  text-align: center;
  padding: 50px;
}

.seemore a {
  background-color: #f8f8f8;
  padding: 10px 25px;
  border-radius: 18px;
  color: #000000;
}

/*End latest page*/