.inner-news-image {
  width: 100%;
  aspect-ratio: 20/7;
  max-height: 500px;
  min-height: 200px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 40px;
}

.inner-news-desc {
  /* font-size: var(--font-size-body-md); */
  font-weight: 400;
  line-height: 150%;
  /* text-align: justify; */
}

.date {
  font-size: var(--font-size-body-xs);
  font-weight: 300;
  color: var(--secondary);
  margin-bottom: 20px;
}

.news-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1350px;
  margin: 20px auto;
  padding: 20px 0;
}

.news-details-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.media-wrapper {
  position: relative;
  width: 100%;
}

.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.svg-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  fill: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 5px;
  cursor: pointer;
  z-index: 3;
}

.youtube-icon.svg-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
}

.lg-item {
  inset: 0;
}

@media (max-width: 767px) {
  .news-details-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .inner-news-image {
    width: 100%;
    height: auto;
    margin: auto;
    object-fit: cover;
    margin-bottom: 10px;
  }
  .date {
    margin-bottom: 10px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .news-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .inner-news-image {
    width: 100%;
    height: auto;
    margin: auto;
    object-fit: cover;
  }
}

/* YouTube Video Caption Styles */
.youtube-video-wrapper {
  position: relative;
  width: 100%;
}

.youtube-video-wrapper .media-wrapper {
  position: relative;
  display: block;
}

.youtube-video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
  color: #ffffff;
  padding: 15px 12px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 767px) {
  .youtube-video-caption {
    font-size: 12px;
    padding: 12px 10px 10px;
  }
}

/* Gallery Item Caption Styles */
.gallery-item-wrapper {
  position: relative;
  width: 100%;
}

.gallery-item-wrapper .media-wrapper {
  position: relative;
  display: block;
}

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
  color: #ffffff;
  padding: 15px 12px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 767px) {
  .gallery-item-caption {
    font-size: 12px;
    padding: 12px 10px 10px;
  }
}