

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 20px;
      margin-top: 30px;
    }
    
    .gallery-item {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      transition: all 0.3s ease;
      cursor: pointer;
      aspect-ratio: 3/4;
      background: var(--bg-secondary);
    }
    
    .gallery-item:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }
    
    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    
    .gallery-item:hover img {
      transform: scale(1.1);
    }
    
    .gallery-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
      color: white;
      padding: 20px 15px 15px;
      font-size: 14px;
      transform: translateY(100%);
      transition: transform 0.3s ease;
    }
    
    .gallery-item:hover .gallery-caption {
      transform: translateY(0);
    }
    


    .article-footer {
      padding: 1rem 0 0 0.5rem;
      
    }
    .article-tags > span{
      margin-right: 0.5rem;
    }
    .modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.95);
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
    
    .modal.active {
      display: flex;
    }
    
    .modal-image {
      max-width: 90%;
      max-height: 80vh;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 0 30px rgba(0,0,0,0.5);
    }
    
    .modal-controls {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 100%;
      display: flex;
      justify-content: space-between;
      padding: 0 30px;
    }
    
    .modal-control {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: rgba(255,255,255,0.2);
      border: 2px solid white;
      color: white;
      font-size: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .modal-control:hover {
      background: white;
      color: black;
    }
    
    .modal-close {
      position: absolute;
      top: 20px;
      right: 30px;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: rgba(255,255,255,0.2);
      border: 2px solid white;
      color: white;
      font-size: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      z-index: 10000;
    }
    
    .modal-close:hover {
      background: white;
      color: black;
    }
    
    .thumbnail-container {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 20px;
      padding: 10px;
      overflow-x: auto;
      max-width: 90%;
    }
    
    .thumbnail {
      width: 80px;
      height: 80px;
      object-fit: cover;
      border-radius: 6px;
      cursor: pointer;
      opacity: 0.6;
      transition: all 0.3s ease;
      border: 2px solid transparent;
    }
    
    .thumbnail:hover,
    .thumbnail.active {
      opacity: 1;
      border-color: white;
    }
    
    .modal-counter {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      color: white;
      background: rgba(0,0,0,0.6);
      padding: 8px 20px;
      border-radius: 30px;
      font-size: 16px;
      font-weight: 500;
      backdrop-filter: blur(5px);
    }


    .modern-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  height: fit-content;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  animation: slideInLeft 0.6s ease-out;
  width: 100%;
  max-width: 400px;
  min-width: 280px;
}


.layout-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}


@media (min-width: 1600px) {
  .modern-sidebar {
    max-width: 400px;
  }
}


@media (max-width: 1400px) {
  .layout-grid {
    grid-template-columns: 450px 1fr;
    gap: 2rem;
  }
  
  .modern-sidebar {
    max-width: 450px;
    min-width: 320px;
  }
}


@media (max-width: 1200px) {
  .layout-grid {
    grid-template-columns: 400px 1fr;
    gap: 1.75rem;
  }
  
  .modern-sidebar {
    max-width: 400px;
    min-width: 300px;
    padding: 1.5rem;
  }
}


@media (max-width: 992px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .modern-sidebar {
    max-width: 100%;
    min-width: auto;
    position: static;
    margin: 0 auto;
    padding: 1.5rem;
  }
}


@media (max-width: 768px) {
  .modern-sidebar {
    padding: 1.5rem;
    max-width: 100%;
  }
}


@media (max-width: 576px) {
  .modern-sidebar {
    padding: 1.25rem;
  }
}


@media (max-width: 480px) {
  .modern-sidebar {
    padding: 1rem;
  }
}


@media (min-width: 769px) and (max-width: 992px) {
  .modern-sidebar {
    max-width: 550px;
  }
}