.pfg-gallery-wrapper {
  padding: 1rem;
  font-family: Arial, sans-serif;
}

.pfg-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  align-items: flex-end;
  background: #f9f9f9;
  padding: 16px;
  border-radius: 8px;
}

.pfg-input,
.pfg-select {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  min-width: 180px;
  flex: 1 1 auto;
  max-width: 220px;
  transition: border-color 0.3s ease;
}

.pfg-input:focus,
.pfg-select:focus {
  border-color: #0073aa;
  outline: none;
}

.pfg-reset-button {
  background-color: #0073aa;
  color: #fff;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: 42px;
  width: 100%;
  max-width: 120px;
}

.pfg-reset-button:hover {
  background-color: #005b8a;
}

.pfg-card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr); /* 3 columns per row */
  position: relative;
}

.pfg-card-grid:empty {
  display: none;
}

.pfg-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pfg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.pfg-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background-color: #f2f2f2;
}

.pfg-content {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pfg-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #BF1922;
}

.pfg-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.pfg-excerpt {
  font-size: 14px;
  color: #333;
  flex-grow: 1;
}

.pfg-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #444;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .pfg-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pfg-card-grid {
    grid-template-columns: 1fr;
  }

  .pfg-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .pfg-input,
  .pfg-select,
  .pfg-reset-button {
    max-width: 100%;
  }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.pfg-animated-title {
  font-size: 48px;
  font-weight: 700;
  font-style: normal;
  line-height: 58px;
  color: #1D1D1E;
  margin-bottom: 20px;
  animation: fadeSlideUp 0.6s ease-out both;
}

/* Override Swiper navigation buttons */
.pfg-swiper .swiper-button-next,
.pfg-swiper .swiper-button-prev {
  color: #ccc !important;
  transition: color 0.3s ease;
}

.pfg-swiper .swiper-button-next:hover,
.pfg-swiper .swiper-button-prev:hover {
  color: #999 !important;
}

/* Override pagination bullets */
.pfg-swiper .swiper-pagination-bullet {
  background-color: #ccc !important;
  opacity: 1 !important;
}

.pfg-swiper .swiper-pagination-bullet-active {
  background-color: #999 !important;
}

/* Override Swiper nav button colors globally for .pfg-swiper */
.pfg-swiper {
  --swiper-navigation-color: #ccc;
  --swiper-theme-color: #ccc;
}

