/* Gallery-specific styles */
    .gallery-hero {
     background: linear-gradient(135deg, #4a6bff 0%, #2a3f9d 100%); 
     color: #fff;
     padding: 40px 20px;
     text-align: center;
     background-size: cover;
     background-position: center;

    }

    .quote-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
      padding: 40px 20px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .quote-card {
      background: rgb(250, 250, 248);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      transition: transform 0.3s ease;
      display: flex;
      flex-direction: column;
    }

    .quote-card:hover {
      transform: translateY(-5px);
    }

    .quote-image {
      height: 200px;
      background-size: cover;
      background-position: center;
      background-color: #f0f2f5; /* Fallback color */
      position: relative;
    }

    .quote-image::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    }

    .quote-content {
      padding: 25px;
        display: flex;
       flex-direction: column;
    }

    .quote-text {
      font-size: 18px;
      line-height: 1.6;
      margin-bottom: 15px;
      font-style: italic;
      color: #333;
    }

.quote-author {
    font-weight: bold;
    color: #4a6bff;
    display: flex !important;
    align-items: center;
    margin-top: auto; /* This pushes it to the bottom */
    padding-top: 10px; /* Add some space above */
    border-top: 1px solid rgba(0,0,0,0.1); /* Optional separator */
    align-self: flex-start; /* Keep left alignment */
    opacity: 1 !important;
      visibility: visible !important; /* Force visibility */
}

    .quote-author i {
      margin-right: 8px;
      color: #4a6bff;
    }

    .category-filter {
      display: flex;
      justify-content: center;
      gap: 15px;
      padding: 20px 0;
      background: #b2b5b9;
      flex-wrap: wrap;
    }

    .filter-btn {
      padding: 8px 20px;
      border-radius: 20px;
      background: rgb(252, 252, 251);
      border: 1px solid #ddd;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 14px;
    }

    .filter-btn.active, .filter-btn:hover {
      background: #4a6bff;
      color: white;
      border-color: #4a6bff;
    }    

    @media (max-width: 768px) {
      .quote-grid {
        grid-template-columns: 1fr;
      }

      .gallery-hero {
        padding: 60px 20px;
      }
    }

.quote-card.swan-card {
  max-width: 700px;
  margin: 40px auto; /* centers horizontally */
  text-align: center;
  padding: 20px;
}

.swan-quotes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.quote-item:hover {
  transform: translateY(-5px);
}

.swan-card .quote-image {
  height: 335px;
  background-size: contain;
   background-position: center;
  background-repeat: no-repeat;
}
.jokes-card .quote-image {
  height: 335px;
  background-size: contain;
   background-position: center;
  background-repeat: no-repeat;
}

.quote-card.jokes-card {
  max-width: 700px;
  margin: 40px auto; /* centers horizontally */
  text-align: center;
  padding: 20px;
}

.quote-image {
    height: 250px; /* Increased from 200px */
    background-size: cover;
    background-position: center;
    background-color: #f0f2f5;
    position: relative;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.quote-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

.quote-content {
    padding: 20px; /* Reduced padding to give more space to image */
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 120px; /* Reduced min-height to compensate */
    flex-grow: 1; /* Allow content to grow */
}
