.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  .thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #ddd;
    height: 200px;
  }
  .thumbnail:hover {
    transform: scale(1.05);
  }
  .thumbnail-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    font-size: 14px;
    text-align: center;
  }
  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99990;
  }
  .content-wrapper {
    width: 90%;
    height: 90%;
    max-width: 1200px;
    background-color: white;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
  }
  .featured-image-container {
    width: 70%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #f0f0f0;
  }
  .featured-image {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
  }

.featured-image img{
	height: 100%;
	width: 100%;
	object-fit: contain;
}

  .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(128, 128, 128, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    z-index: 10;
  }
  .nav-button:hover {
    background-color: rgba(128, 128, 128, 0.8);
  }
  .nav-button.prev {
    left: 20px;
  }
  .nav-button.next {
    right: 20px;
  }
  .fullscreen-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(128, 128, 128, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
  }
  .fullscreen-button:hover {
    background-color: rgba(128, 128, 128, 0.8);
  }
  .post-content {
    width: 30%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
  }
  .post-info {
    margin-bottom: 20px;
  }
  .post-title {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .post-excerpt {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
  }
  .post-author {
    font-style: italic;
    color: #888;
    margin-bottom: 10px;
  }
  .read-more-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }
  .read-more {
    color: #666;
    text-decoration: none;
    font-weight: bold;
  }
  .read-more:hover {
    text-decoration: underline;
  }
  .share-dropdown {
    position: relative;
    display: inline-block;
  }
  .share-button {
    background-color: #666;
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }
  .share-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
  }
  .share-content a {
    color: #666;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  .share-content a:hover {
    background-color: #f1f1f1;
  }
  .share-dropdown:hover .share-content {
    display: block;
  }
  .comments-section {
    margin-top: 20px;
  }
  .comment {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
  }
  .comment-author {
    font-weight: bold;
  }
  .comment-date {
    color: #888;
    font-size: 0.8em;
  }
  .comment-form {
    margin-top: 20px;
  }
  .comment-form textarea {
    width: 98%;
    height: 100px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
  }
  .comment-form button {
    background-color: #666;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
  }
  .comment-form button:hover {
    background-color: #555;
  }
  .close-button {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1001;
  }
  .fullscreen-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
  }

.fullscreen-back{
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99991;
}

.fullscreen-wrapper{
	position: absolute;
    left: 0;
    top: 0;
    width: 100%;
	height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99992;
}

.fullscreen-wrapper img{
	height: 100%;
	width: 100%;
	object-fit: contain;
}

  .fullscreen-close {
    position: absolute;
    top: 50px;
    right: 50px;
    color: white;
    font-size: 30px;
    cursor: pointer;
	border: 1px solid gray;
    width: 30px;
	height: 30px;
	display: flex;
    justify-content: center;
    align-items: center;
	z-index: 99993
  }

  @media (max-width: 768px) {
    .content-wrapper {
      flex-direction: column;
    }
    .featured-image-container,
    .post-content {
      width: 100%;
      height: auto;
    }
    .featured-image {
      height: 50vh;
    }
    .nav-button {
      top: auto;
      bottom: 20px;
    }
	  
	  
  }