/* Blog Gallery Enhancements - More specific selectors */
#blog .gallery__item {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

#blog .gallery__item:hover {
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent, #007bff);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Make entire card clickable */
#blog .gallery__item a {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  width: 100%;
}

#blog .gallery__item a:hover {
  text-decoration: none;
  color: inherit;
}

/* Enhanced tag styling - override existing styles */
#blog .gallery__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

#blog .gallery__tags .rounded-tag {
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: var(--base);
  color: var(--t-bright);
}

#blog .gallery__tags .rounded-tag:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
}

#blog .gallery__tags .rounded-tag.opposite {
  background-color: var(--base-opp);
  color: var(--t-opp-bright);
}

/* Fix meta text colors */
#blog .gallery__meta {
  color: var(--t-muted);
}

#blog .gallery__meta .gallery__date,
#blog .gallery__meta .gallery__read-time {
  color: var(--t-muted);
}

#blog .gallery__item:hover .gallery__meta,
#blog .gallery__item:hover .gallery__meta .gallery__date,
#blog .gallery__item:hover .gallery__meta .gallery__read-time {
  color: var(--t-muted);
}

/* Improved spacing between blog posts */
#blog .inner__gallery {
  gap: 3rem !important;
}

#blog .gallery__item {
  margin-bottom: 2rem;
}

#blog .gallery__caption {
  padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  #blog .inner__gallery {
    gap: 2rem !important;
  }
  
  #blog .gallery__caption {
    padding: 1.5rem;
  }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  #blog .gallery__item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  #blog .gallery__item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent, #007bff);
  }
  
  #blog .gallery__tags .rounded-tag {
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  #blog .gallery__tags .rounded-tag:hover {
    border-color: rgba(255, 255, 255, 0.2);
  }
}

/* Full-width image in blog posts - extends to edges of col-lg-10 with parallax */
.post-content .full-width-image {
  width: calc(100% + 30px);
  margin-left: -15px !important;
  margin-right: -15px !important;
  margin-top: 4rem !important;
  margin-bottom: 5rem !important;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.post-content .full-width-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: 120% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

@media (max-width: 768px) {
  .post-content .full-width-image {
    margin-top: 3rem !important;
    margin-bottom: 4rem !important;
    height: 300px;
  }
}